Skip to content

What the credential you present is worth

OpenAPI JSON
GET
/v1/me
curl --request GET \
--url https://api.eu.apigami.com/v1/me \
--header 'Authorization: Bearer <token>'

One route for every Apigami credential, because the question is always the same. A user session, a personal token or an agent token answers with the account and its team; an API key with the application it runs; the run token a hosted application is handed answers with the invocation it is serving — which application, which action or page, which version and whether that version serves production. A page’s token is refused, with the same 401, when the request comes from another origin than its page’s. Everything the token was worth when it was minted is re-read: its life, its parents, the team, the authorisation that allowed the call, and, for an invocation with a browser, that the user has not disconnected it. Any of those gone is a 401. There is nothing to send: the answer is derived from the credential, so it can only ever describe that credential. It never returns a browser identifier.

path
string
<= 1024 characters

For the token of a page full page at its application’s own address, the path the page sits on: the answer then names that page in page_id and page_kind. apigami.js sends it for you.

What the credential is worth. subject says which shape it is.

Media typeapplication/json
One of:
object
subject
required
string
Allowed values: user
user_id
required
string format: uuid
group_id
required
string format: uuid
email
required
string | null
Example
{
"subject": "user"
}

No credential, or one that is no longer worth anything.

Media typeapplication/json
object
error
required
string
consentPending

Present and true when the approval window is open and the user has not answered within 45 s.

boolean
Example
{
"error": "bad run token"
}