Users and API Keys

Update an org API key

Changed on

Renames the key and/or changes its org role. Revoked keys cannot be updated.

patch/orgs/{orgID}/api-keys/{keyID}

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_...).

Request body

UpdateOrgAPIKeyRequest required
name, string

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

org_role, 'admin' | 'member'

The key's org role. Org API keys can never hold the owner role.

Response

The updated 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

    156 more changes in this revision