Skip to navigation

api-keys

Read, create, and revoke the API keys of your AI Agent. An API key authenticates requests to the Ada APIs.

Commands

CommandWhat it does
api-keys listLists the API keys: ID, name, prefix, and expiry.
api-keys createCreates 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:

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

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

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

Find the ID of a key, then revoke it:

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.

  • team: manage the team members and their roles.
  • snapshot: export and import the configuration without an API key.