Chuyển đến nội dung chính
GET
https://api-gw.verolabs.co/api/authen
/
sessions
/
whoami
Lấy session hiện tại hoặc JWT session
curl --request GET \
  --url https://api-gw.verolabs.co/api/authen/sessions/whoami \
  --header 'X-Session-Token: <api-key>'
{
  "id": "<string>",
  "active": true,
  "identity": {
    "id": "<string>",
    "traits": {}
  },
  "tokenized": "<string>"
}

Documentation Index

Fetch the complete documentation index at: https://docs.oms.verolabs.co/llms.txt

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

Ủy quyền

X-Session-Token
string
header
bắt buộc

Ory session token returned by login or recovery flows.

Tham số truy vấn

tokenize_as
string

When set to jwt_template_1, response should include tokenized JWT used as app bearer token.

Ví dụ:

"jwt_template_1"

Phản hồi

Ory session object with identity and optional tokenized JWT.

id
string
active
boolean
identity
object
tokenized
string

JWT returned when tokenize_as=jwt_template_1 is requested.