Skip to content

Issuer's token in, ours out. `?tenant=` picks which membership it acts for.

POST
/console/token
curl --request POST \
--url https://api.canopyhq.dev/console/token \
--header 'Authorization: Bearer <token>'
tenant
string

Which membership the token acts for; the first, absent.

A console token for the tenant named.

Media typeapplication/json
object
expires
required
integer format: int64
name
required
string
role
required

What a user may do in a tenant. An owner consents on its behalf.

string
Allowed values: Owner Member
tenant
required

The organization that consented. Comes from the console’s identity.

string
token
required
string
Example
{
"role": "Owner"
}

The query string did not parse.

No issuer token, or one this deployment does not trust.

No membership of the user answers this login.