For the complete documentation index, see llms.txt. This page is also available as Markdown.

API Keys

API key management

List API keys

get

List all API keys scoped to the specified organization.

Authorizations
x-api-keystringRequired

API key in the format: cc_xxx_yyy (for customer API routes)

Query parameters
organizationIdstring · uuidRequired

Organization ID — only keys belonging to this organization are returned. Example: 550e8400-e29b-41d4-a716-446655440000

Responses
200

Default Response

application/json
get/v3/api-keys

Create API key

post

Create a new API key for the specified organization. The key authenticates requests as a member of that organization.

Authorizations
x-api-keystringRequired

API key in the format: cc_xxx_yyy (for customer API routes)

Body
organizationIdstring · uuidRequired

The organization this API key belongs to. Requests authenticated with this key will be made as a member of this organization. Example: 550e8400-e29b-41d4-a716-446655440000

namestring · max: 255Required

Name for the API key

expiresInDaysnumberOptional

Number of days until the key expires

Responses
201

Default Response

application/json
idstring · uuidRequiredExample: 550e8400-e29b-41d4-a716-446655440000
organizationIdstring · uuidRequiredExample: 550e8400-e29b-41d4-a716-446655440000
keyPrefixstringRequiredExample: cc_abc123
namestringRequired
fullKeystringRequired

Full API key. Only returned once at creation — save it immediately.

expiresAtstring · date-time · nullableOptionalExample: 2025-01-15T10:30:00Z
createdAtstring · date-timeRequiredExample: 2025-01-15T10:30:00Z
messagestringRequired
post/v3/api-keys

Revoke an API key

delete

Revoke an API key. The organization is derived from the key itself.

Authorizations
x-api-keystringRequired

API key in the format: cc_xxx_yyy (for customer API routes)

Path parameters
apiKeyIdstringRequired
Responses
200

Default Response

application/json
successbooleanRequired
messagestringRequired
delete/v3/api-keys/{apiKeyId}

Last updated

Was this helpful?