Skip to main content
POST
Create personal access token

Authorizations

Authorization
string
header
required

Company API key (mwk_) or personal access token (mel_). A PAT requires X-Workspace-ID on company-scoped routes. An API key implies its own company.

Headers

X-Workspace-ID
string<uuid>

Company UUID for a personal token on company-scoped operations. A company API key already binds its company.

Body

application/json
name
string
expires_in_days
integer | null

Response

PersonalAccessTokenResponse plus one-time token:string.

id
string
required
name
string
required
token_prefix
string
required
expires_at
string | null
required
last_used_at
string | null
required
created_at
string
required
token
string
required