Skip to content
  • Type to search every guide, endpoint and MCP tool.
POST

Create API key

/v1/api-keys

Scope org_manage

Create an API key for the caller's organisation with the given name, scopes and optional expiry. The full secret is returned only in this response; store it securely. API and MCP access come with the Enterprise plan: 403 PLAN_REQUIRED on any other plan.

Request body (JSON)

namestringRequired
A label that helps you recognise the key.
scopesarray of string
The permissions this key is limited to; leave out for a key with full access.
expires_in_daysinteger
Number of days until the key expires; use this or expires_at.
expires_atstring (date-time)
When the key expires, as an ISO 8601 date and time.

Responses

201Successful Response
422The request did not validate.
401The key is missing, unknown, revoked or expired.
403The key lacks the scope this call needs, or the organisation is not on Enterprise.
429Over the request rate. Wait for Retry-After seconds.