POST
/
sessions
/
validate
curl --request POST \
  --url https://{tenant_id}.hanko.io/sessions/validate \
  --header 'Content-Type: application/json' \
  --data '{
  "session_token": "<string>"
}'
{
  "is_valid": true,
  "expiration_time": "2023-11-07T05:31:56Z",
  "user_id": "<string>"
}

Body

application/json
session_token
string
required

The session token (JWT) to validate

Response

200
application/json
Session validation response
is_valid
boolean

Indicates whether the session is valid or not

expiration_time
string

Date-time indicating the expiration of the session

user_id
string

The ID of the user the session is associated with