API Keys
Create API Key
Create a new API key with optional resource permissions
POST
Overview
Creates a new API key for the authenticated user. The plaintext key is returned only once in this response — store it securely. Optionally restrict the key to specific services, tools, or spending limits using thepermissions field.
Auth: Requires JWT token (Authorization: Bearer <token>).
Body Parameters
Display name for the API key (e.g., “Production”, “Agent Key”)
Optional resource-based permissions. If omitted or null, the key has unrestricted access.
Response
API key UUID
The plaintext API key (shown once only — store securely)
First 8 characters of the key (for identification)
Display name
ISO 8601 creation timestamp
Last usage timestamp (null on creation)
Resource permissions (null = unrestricted)
