Resources
Create API Key
Create a new API key for programmatic access.
POST
Create API Key
Create a new API key. The full key is only returned once at creation time.
Team-shared key (targets a specific org):
Authentication
Requires a Bearer token. See Authentication.Request Body
Human-readable label (e.g.,
"Production Server", "Development").Permission scopes for the key (e.g.,
["completions", "skills"]). Defaults to all scopes.Declares whether the new key is a personal credential (visible only to you) or a team credential (shared with every member of the owning organization).
"personal"— creates a personal key.org_idmust not be provided. The server will never auto-attach your active team, even if you have permission to manage its keys."org"— creates a team-shared key. Provideorg_idto target a specific org, or omit it to fall back to your active team context.
scope is omitted, the server infers the value: "org" if org_id is present, otherwise "personal".Organization UUID to scope the key to. Required when
scope is "org" and the caller has no active team context. Forbidden when scope is "personal". The caller must hold the manageApiKeys permission on the target organization.Request Examples
Personal key (explicit):Response
Returns the created key object. The full API key string is only included in this response — store it securely.Endpoint
POST /api/v1/keys
Requires authentication via Bearer token. See Authentication.Create API Key
