Skip to content
You're viewing documentation for v2026.11.8-beta. It may be out of date.Go to latest
TimescaleDB Enterprise
Esc
↑↓navigate↵open⌘Jpreview

Get your session identity

Get the current session identity.

GET/api/v1/auth/me
Authorization
tse_sessionAPI key · cookierequired
Responses
200

OK

actorstringrequired

Name of the session owner, as the audit log shows it

methodstringrequired

Login method

Allowed:tokenoidcpasswordinternal
namestringrequired
rolestringrequired

The default role. none: the session sees only the database services of the grants

Allowed:nonevieweroperatoradmin
service_grantsAuthMeServiceGrant[]required

The roles of a local or OIDC user on single database services

Show properties
Array of AuthMeServiceGrant
rolestringrequired
Allowed:vieweroperator
service_idstringrequired
stepstringrequired

A step the session must finish before other operations, or empty

Allowed:password_changesecond_factorenrol_second_factor
substringrequired
default

Error

codestring

Stable code of the refusal, when the route has codes

detailsstring[]

Additional detail, e.g. per-field validation failures

errorstringrequired

Human-readable error message

Request
curl -X GET 'https://console.example.com/api/v1/auth/me' \
  -H 'Cookie: tse_session=YOUR_API_KEY' \
  -H 'Accept: application/json'
Response
{
  "actor": "string",
  "method": "token",
  "name": "string",
  "role": "none",
  "service_grants": [
    {
      "role": "viewer",
      "service_id": "string"
    }
  ],
  "step": "",
  "sub": "string"
}