> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.ada.cx/llms.txt.

# api-keys

Read, create, and revoke the [API keys](/reference/introduction/authentication) of your AI Agent. An API key authenticates requests to the Ada APIs.

## Commands

| Command                | What it does                                      |
| ---------------------- | ------------------------------------------------- |
| `api-keys list`        | Lists the API keys: ID, name, prefix, and expiry. |
| `api-keys create`      | Creates an API key and shows the key one time.    |
| `api-keys revoke <id>` | Revokes an API key.                               |

## Examples

Create an API key with a name:

```bash
adacli acme api-keys create --name "Data export job"
```

Create an API key and save only the key value in an environment variable:

```bash
export ADA_API_KEY=$(adacli acme api-keys create --name "Reporting job" --key-only)
```

Find the ID of a key, then revoke it:

```bash
adacli acme api-keys list
adacli acme api-keys revoke <id>
```

## Details

* You need the Admin or Owner role to list, create, or revoke API keys.
* adacli shows the key value one time only, when it creates the key. Save it at once.
* Without `--name`, the key gets the name `migration-tooling`.
* `revoke` revokes the key at once. It does not ask first. An integration that uses the key stops working.

For every option of a command, run it with `--help`, for example `adacli acme api-keys create --help`.

## Related commands

* [`team`](/adacli/commands/team): manage the team members and their roles.
* [`snapshot`](/adacli/commands/snapshot): export and import the configuration without an API key.

---

Have any questions? Contact your Ada team, or email us at [](mailto:help@ada.cx?subject=Help%20Docs%20inquiry).