Skip to main content
The ax api-keys commands are currently in BETA. The API may change without notice. A one-time warning is emitted on first use.
The ax api-keys commands let you create and manage API keys for accessing the Arize platform programmatically.

ax api-keys list

List API keys for the authenticated user.
Examples:

ax api-keys create

Create a new user API key. The key authenticates as you with your full permissions. To create a space-scoped service key, use create-service-key instead.
The raw key value is displayed once after creation. Save it securely — it will not be shown again.
Examples:

ax api-keys create-service-key

Create a new service API key with org and space assignments. Service keys are backed by a dedicated bot user scoped to one or more organizations, each containing one or more spaces. Assignments are supplied as a JSON array via --assignments. When no role is specified for a space or org, the server applies its defaults (space=MEMBER, org=READ_ONLY, account=MEMBER).
Assignments JSON format: Each entry describes an org and its spaces. role is optional at both levels (omit to use server defaults). Custom roles use {"type": "CUSTOM", "id": "<role-id>"}. Obtain org IDs with ax organizations list --output json.
The raw key value is displayed once after creation. Save it securely — it will not be shown again.
Examples:

ax api-keys revoke

Revoke an API key. The key’s status is set to revoked and it stops working immediately. This operation is irreversible. Revoking an already-revoked key is a no-op and still succeeds.
Examples:

ax api-keys refresh

Atomically revoke an existing key and issue a replacement with the same name, description, type, and scope. Use this to rotate credentials without updating metadata.
The new raw key value is displayed once after refresh. Save it securely — it will not be shown again.
Examples: