v2

latestOpenAPI 3.0.0raw.githubusercontent.com2026-02-16143114179.4 KB
Tenants

Create a new API key

Generate a new API key with specified scopes. The full key is returned only once in the response — store it securely.

post/api/tenants/me/api-keys

Request body

namestring required
scopesstring[] required
expiresAtstring

Example request

{
  "name": "Production API Key",
  "scopes": [
    "read",
    "write"
  ]
}

Response

API key created. The key value is shown only once.

idstring required
keystring required
namestring required
scopesstring[] required
lastUsedstring
expiresAtstring
createdAtstring required

Example response

{
  "id": "clx1234567890",
  "key": "sk_live_abc123...",
  "name": "Production API Key",
  "scopes": [
    "read",
    "write"
  ]
}