v1

latestOpenAPI 3.1.02026-07-2618690613.4 KB
API Tokens

Enable or disable API token

<Note> This endpoint requires **Organization Admin** permissions. </Note>

Disable or re-enable an API token. To permanently revoke a token, use the Delete API token endpoint.

This operation is idempotent: calling it twice with the same body produces the same result.

put/v1/api-keys/{id}

Path parameters

idstring uuid required

UUID of the API token. The token must exist in the authenticating user's organization.

Request body

enabledboolean required

Determines if the API token is enabled: false to disable the token, true to re-enable it.

Response

Token updated successfully. Returns the current state of the token, or the same state if already in the requested state.

idstring uuid

Unique ID for the token.

namestring

Token name.

type'organization' | 'personal' | 'mcp'

Token type.

enabledboolean

Whether the token is enabled.

createdAtstring date-time

ISO 8601 timestamp of when the token was created.

membershipIdstring uuid nullable

Membership ID of the user who owns the token. null for Organization API keys.