Enable or disable an API key. Disabled keys will be rejected for authentication.
cURL
curl --request PATCH \ --url https://your-domain.com/api/me/api-keys/{key_id}/active \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "is_active": false } '
{ "id": "<string>", "name": "<string>", "key_prefix": "<string>", "scopes": "<string>", "is_active": true, "expires_at": "2023-11-07T05:31:56Z", "last_used_at": "2023-11-07T05:31:56Z", "total_requests": 123, "created_at": "2023-11-07T05:31:56Z" }
API Key (fim_xxx) or JWT token
Key status updated
First 8 characters of the key (fim_****)
Comma-separated scopes (chat, agents, kb, connectors, admin)