API Keys API
Create, list, update, and delete API keys programmatically.
List API keys
GET
$ GET https://api.alltoken.ai/api-account/user/api-keysCreate API key
POST
$ POST https://api.alltoken.ai/api-account/user/api-keysRequest body: {"name": "My Key"}. Returns the full key value (shown only once).
Update API key
PATCH
$ PATCH https://api.alltoken.ai/api-account/user/api-keys/{id}Update a key's name or routing settings.
Delete API key
DELETE
$ DELETE https://api.alltoken.ai/api-account/user/api-keys/{id}Permanently revokes the API key. This cannot be undone.
Set default models
PUT
$ PUT https://api.alltoken.ai/api-account/user/api-keys/{id}/default-modelsConfigure default model routing for a specific API key.