v1
latestOpenAPI 3.1.02026-08-0413468163.9 KBv1-api-keys
Create New Api Key
Create a new API key for the organization.
Requires 'api_keys.create' permission.
⚠️ IMPORTANT: The secret key is only shown ONCE upon creation. Store it securely - you won't be able to retrieve it again!
The API key will be granted a role assignment with the specified role_id. The role determines what permissions the API key has access to.
Common role IDs:
- role_org_viewer: Read-only access
- role_org_member: Create and modify resources
- role_org_admin: Full administrative access (except deleting org)
- role_org_owner: Full control over organization
Args: org_id: Organization ID body: API key details (name, role_id, scopes, expiration)
Returns: API key details INCLUDING the secret key (only time it's shown)
post/v1/orgs/{org_id}/api-keys
Path parameters
org_idstring required
Request body
Response
The created key, including the secret — shown only this once.