Skip to content
GET /session-token/me

Describes the credential this request authenticated with. The envelope is deliberately token-kind-agnostic: type discriminates and scope is the per-type part, so an API token and a dashboard session get back the common fields only, while a session token also gets its scope, its clock, and its resolved capabilities.

Returning capabilities here is what keeps the embedded widget honest: the same resolved configuration backs every server-side gate, so a button the widget renders and the check that permits it cannot disagree.

It reports counts, never values, for anything sensitive. There is no allowed_origins array — echoing that list back into a browser would hand an attacker the exact string to spoof — only allowed_origins_count, which is the count of the list this session declares (its own narrowing if it narrowed, otherwise the environment's). The token itself is never echoed either.

This is always a point read, so a revoked session reads as gone immediately rather than lingering in an index.

Response Body

allowed_origins_countinteger

Session tokens only. How many origins this session declares. The list itself is never returned. Framing is always governed by the environment's list.

Example: 1
capabilitiesobject

Session tokens only. The environment's resolved connections configuration — the same answer every server-side gate uses.

allow_configureboolean

Whether the widget may reopen an existing connection's post-connect form via POST /integrated-account/form-token.

allow_connectboolean

Whether the widget may start a new connection.

allow_deleteboolean

Whether the widget may remove a connection.

allow_multiple_per_integrationboolean

Whether one tenant may hold more than one account per integration.

allow_reauthboolean

Whether the widget may reconnect an existing account.

allow_refreshboolean

Whether the widget may refresh an account's credentials.

show_error_detailsboolean

Whether raw upstream error details are included in the widget's connection reads.

expires_atstring · date-time

Session tokens only. Moves forward on every renewal.

Example: 2026-07-28T11:45:00.000Z
idstring

The subject the credential resolves to — the tenant id when type is tenant, otherwise the API token id or the user id.

Example: acme-1
is_refreshableboolean

Session tokens only. Whether POST /session-token/renew will work.

Example: true
issued_atstring · date-time

Session tokens only. When the session was minted.

Example: 2026-07-28T11:30:00.000Z
issuerobject

Session tokens only. The credential that minted this session.

idstring · uuid
Example: 1ba1f401-7183-47c5-9e39-e8e257e3c795
typestring
Example: api_token
Possible values:
api_tokensession
layoutobject

Session tokens only. The environment's presentation defaults for the catalog. Not a security boundary — the SDK may override them per embed and the end user may change them in the widget's own toolbar — but they belong to the environment, so they arrive with the session rather than being guessed client-side.

default_group_bystring

How the catalog is grouped when it opens.

Possible values:
nonecategorystatus
default_viewstring

Which catalog layout the widget opens in.

Possible values:
cardslist
show_searchboolean

Whether the catalog's search box is shown. A catalog small enough not to need it hides the toolbar anyway.

max_lifetime_atstring · date-time

Session tokens only. Fixed at mint time.

Example: 2026-07-28T23:30:00.000Z
scopeobject

Session tokens only. What this session is confined to.

environment_idstring · uuid
Example: 8a2b104d-74a6-47f2-b93e-c6b611e82391
tenant_idstring
Example: acme-1
team_namestring

Session tokens only. The name of the team that owns the environment — what the connect flow falls back to when the Link UI has no brand_name, so the widget can name the same party when it tells an end user who to contact.

Example: Acme Corp
typestring

Which kind of credential this is. tenant is a session token minted by POST /session-token — the credential this resource is named for. api_token is an admin API key, and session is a signed-in dashboard user, neither of which is a session token in the sense used here. An integrated-account token never appears: it cannot reach this route at all (see the 403 below).

Example: tenant
Possible values:
tenantapi_tokensession

Errors

StatusDescription
401No credential, or one that has expired or been revoked.
403An integrated-account token was used — that credential is confined to its own routes.
curl -X GET 'https://api.truto.one/session-token/me' \
  -H 'Authorization: Bearer <your_api_token>' \
  -H 'Content-Type: application/json'
const response = await fetch('https://api.truto.one/session-token/me', {
  method: 'GET',
  headers: {
    'Authorization': 'Bearer <your_api_token>',
    'Content-Type': 'application/json',
  },
});

const data = await response.json();
console.log(data);
import requests

url = "https://api.truto.one/session-token/me"
headers = {
    "Authorization": "Bearer <your_api_token>",
    "Content-Type": "application/json",
}
params = {
}

response = requests.get(url, headers=headers, params=params)
print(response.json())