Skip to main content
POST
Create org API key

Authorizations

__Host-omnara_session
string
cookie
required

Browser session cookie. HTTPS deployments use __Host-omnara_session; local HTTP development uses omnara_session.

X-Omnara-Csrf
string
header
required

CSRF token header required for browser-session mutations. The value must match the session's CSRF cookie.

Path Parameters

orgID
string
required
Pattern: ^org_[a-z2-7]{26}$

Body

application/json
name
string
required

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

Required string length: 1 - 64
org_role
enum<string>
required

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

Available options:
admin,
member

Response

Org API key created.

token
string
required

Opaque bearer credential.

Minimum string length: 1
api_key
object
required