Skip to main content
POST
Create new API key
Create a new API key for your organization. The API key will be created with the specified name and monthly limit. By default, the new key is created alongside the management API key making the request, in the same group or service account. Set group_id or service_account_id to create it somewhere else. OAuth callers must set one of them.
The API key string is only returned once upon creation. Make sure to save it securely as it cannot be retrieved later.

Authorizations

Authorization
string
header
required

API key for authentication

Body

application/json
name
string
required
monthly_limit
number<decimal>
expires_at
string<date-time>

When the new API key expires, in RFC 3339 format. Must be in the future. Overrides the organization's default key expiry. Omit it to use the default.

Example:

"2026-12-31T23:59:59Z"

permissions
object
service_account_id
string<uuid>

ID of a service account in your organization. The new key is created under that service account instead of the caller. Only organization admins can set it; a management API key always qualifies. Cannot be combined with group_id. Returns 404 if the service account does not exist in your organization.

Example:

"3fa85f64-5717-4562-b3fc-2c963f66afa6"

Response

API key created successfully

api_key_id
string<uuid>
required
api_key
string
required
Last modified on December 2, 2026