POST
Create API key
/v1/api-keysScope 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)
namestringRequiredscopesarray of stringexpires_in_daysintegerexpires_atstring (date-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.