Skip to content
Product Docs

Delete Api Key

DELETE/api/v1/beta/api-keys/{api_key_id}

Revoke an API key.

Revoking a project key takes access away from everyone using it, so it needs key-management permission on that project. Your own unscoped keys need only that you own them. A project-scoped key revokes only within its own project, unscoped keys included.

Path ParametersExpand Collapse
api_key_id: string
Cookie ParametersExpand Collapse
session: optional string
ReturnsExpand Collapse
cache_ttl_seconds: number

Maximum seconds until cached information expires

minimum0
success: boolean

Whether the resource was deleted

Delete Api Key

curl https://api.cloud.llamaindex.ai/api/v1/beta/api-keys/$API_KEY_ID \
    -X DELETE \
    -H "Authorization: Bearer $LLAMA_CLOUD_API_KEY"
{
  "cache_ttl_seconds": 0,
  "success": true
}
Returns Examples
{
  "cache_ttl_seconds": 0,
  "success": true
}