Skip to main content
POST
Issue a leased token

Authorizations

Authorization
string
header
required

Pass an API key (marfa_k1_...) or OAuth access token (marfa_at_...)

Path Parameters

id
string
required

Body

application/json
capability_id
string
required
Minimum string length: 1
ttl_seconds
integer
Required range: 1 <= x <= 3600
scopes
string[]

Response

Lease issued. The lease_token field is returned ONCE; subsequent reads omit it.

id
string
required
connection_id
string
required
tenant_id
string | null
required
capability_id
string
required
scopes
string[]
required
expires_at
string
required
revoked_at
string | null
required
created_at
string
required
lease_token
string
required