Users and API Keys

Create org API key

Changed on

Mints an org API key. The plaintext token is returned once and never stored.

post/orgs/{orgID}/api-keys

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

Request body

CreateOrgAPIKeyRequest required
name, string required

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

org_role, 'admin' | 'member' required

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

Response

Org API key created.

CreateOrgAPIKeyResponse required
token, string required

Opaque bearer credential.

api_key, OrgAPIKey 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