Users and API Keys

Revoke an org API key

Changed on

Terminally revokes the key, removes its org and project roles, and cancels pending invitations it sent. Idempotent.

post/orgs/{orgID}/api-keys/{keyID}/revoke

Request

  • Base URL
    https://api.omnara.com/v1
  • Auth
    API key in cookie __Host-omnara_session and API key in header X-Omnara-Csrf

Path parameters

orgID, string required

Organization ID (org_...).

keyID, string required

Org API key ID (oak_...).

Response

The revoked org API key.

OrgAPIKey required
id, string required
org_id, string required
name, string required

Human-readable name. Spaces and punctuation are allowed; leading or trailing whitespace and invisible or control characters are not.

token_id, string required

Stable non-secret display identifier. It is not embedded in the bearer token.

org_role, string required

The key's org role (admin or member). Empty for revoked keys.

created_by_user_id, string required
created_at, string date-time required
updated_at, string date-time required
last_used_at, string date-time nullable required
revoked_at, string date-time nullable required

Changes

    • info

      added the optional property current_digest to the response with the status

    • info

      added the optional property current_digest to the response with the status

    • info

      added the optional property current_digest to the response with the status

    133 more changes in this revision