Create a new API key. The full key is returned only at creation time — store it securely.
cURL
curl --request POST \ --url https://your-domain.com/api/me/api-keys \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "name": "Production Integration", "scopes": "chat,agents,kb", "expires_at": "2025-12-31T23:59:59Z" } '
{ "id": "<string>", "name": "<string>", "key": "<string>", "key_prefix": "<string>", "scopes": "<string>", "expires_at": "2023-11-07T05:31:56Z", "created_at": "2023-11-07T05:31:56Z" }
API Key (fim_xxx) or JWT token
Key name (1-100 characters)
Comma-separated scopes (optional)
Expiration date (optional)
API key created successfully
Full API key — only returned at creation time