Skip to main content
This endpoint generates a new API key for the authenticated user. Unlike the login endpoint which creates a session token, this creates a persistent API key that can be used for long-term API access.
This endpoint requires authentication. Use your existing API key or session token to create additional API keys.

Request Body

name string required A name/label for the API key (e.g., “Production”, “Development”, “My App”)

Response

message string Success message api_key object The created API key details api_key properties name string The name/label of the API key token string The API key token. Store this securely - it will only be shown once. created_at string ISO 8601 timestamp of when the API key was created
201 Created
422 Validation Error

Example Request

The API key token is only returned once. Make sure to store it securely. If you lose it, you’ll need to create a new one.

Managing API Keys

  • GET /user/api-keys - List all API keys for the authenticated user
  • DELETE /user/api-keys/{id} - Delete a specific API key