Create API Key

Create a new API key for authenticating API requests. API keys provide a simpler alternative to OAuth for programmatic access. Each key: - Is tied to the creating user and inherits their permissions - Can be used to authenticate requests to any project endpoint - Has a descriptive name for easy management - Can be revoked at any time The API key is only shown once at creation time and cannot be retrieved later. **Security Notes**: - Store API keys securely (use environment variables, not hardcode) - Rotate keys regularly - Each key inherits the user's project permissions - Revoke compromised keys immediately

Authentication

AuthorizationBearer

Bearer token authentication using JWT tokens from Ory Kratos/Hydra

Path Parameters

org_idstringRequiredformat: "uuid"
The unique identifier of the organization.
project_idstringRequiredformat: "uuid"
The unique identifier of the project.

Request

This endpoint expects an object.
namestringRequired

Response

Successful Response
namestring
idstringformat: "uuid"
keystring
oauth_client_idstringformat: "uuid"
createdstringformat: "date-time"
revokedboolean
last_usedstring or nullformat: "date-time"

Errors