Skip to main content
GET
/
session
cURL
curl --request GET \
  --url https://our-secret-api-url.com/session \
  --header 'Authorization: Bearer <token>'
{
  "id": "<string>",
  "expiresAt": "2023-11-07T05:31:56Z",
  "fresh": true,
  "userId": 123
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Response

Session successfully retrieved

id
string
required

Session ID (token)

expiresAt
string<date-time>
required

Session expiration time

fresh
boolean
required

Indicates if the session is fresh

userId
integer
required

User ID