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_id
The unique identifier of the organization.
project_id
The unique identifier of the project.
Request
This endpoint expects an object.
name
Response
Successful Response
name
id
key
oauth_client_id
created
revoked
last_used
