Skip to main content
POST
CreateTokenAPI mints a new API token for the caller. The raw token is returned

Authorizations

Authorization
string
header
required

An Erdo API key (erdo_api_...) or scoped token (erdo_token_...).

Body

application/json
expires_in_days
integer<int64>

0 defaults to 30 days — the REST surface intentionally does not expose no-expiry tokens to prevent callers accidentally minting eternal credentials with a minimal payload like {"name": "ci"}.

name
string
organization_id
string

to the caller's currently-active org. Must be an org the caller belongs to.

Response

Success response

default_org
object
expires_at
string
hint
string
id
string
token
string