Skip to main content
POST
/
connections
/
{id}
/
lease-token
Issue a leased token
curl --request POST \
  --url https://api.example.com/connections/{id}/lease-token \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "capability_id": "<string>",
  "ttl_seconds": 1800,
  "scopes": [
    "<string>"
  ]
}
'
{
  "id": "<string>",
  "connection_id": "<string>",
  "tenant_id": "<string>",
  "capability_id": "<string>",
  "scopes": [
    "<string>"
  ],
  "expires_at": "<string>",
  "revoked_at": "<string>",
  "created_at": "<string>",
  "lease_token": "<string>"
}

Documentation Index

Fetch the complete documentation index at: https://docs.myme.so/llms.txt

Use this file to discover all available pages before exploring further.

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