v2
latestOpenAPI 3.1.02026-08-05267431678.1 KBapi-keys
Create Api Key
Create a new API key for the authenticated user.
Only JWT-authenticated (browser session) requests are permitted — API key creation via an existing API key is blocked to prevent credential chaining.
Args: request: The incoming FastAPI request (used by SlowAPI rate limiter). body: The API key creation request payload. auth: The authenticated user context.
Returns: CreateAPIKeyResponse with the secret key (shown only once).
Raises: HTTPException: 403 if called via API key or the active team's plan does not include API keys, 409 if the team API-key cap is reached, 500 for unexpected failures.
post/create-api-key
Request body
Response
Successful Response