GET
/
api
/
sessions
/
current
curl --request GET \
  --url http://localhost/api/sessions/current \
  --header 'Authorization: Bearer <token>'
{
  "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "expiresAt": "2023-11-07T05:31:56Z",
  "refreshExpiresAt": "2023-11-07T05:31:56Z",
  "userId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "userAgent": "<string>",
  "createdAt": "2023-11-07T05:31:56Z",
  "modifiedAt": "2023-11-07T05:31:56Z"
}

Authorizations

Authorization
string
header
required

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

Response

200
*/*
Current session successfully retrieved
id
string
expiresAt
string
refreshExpiresAt
string
userId
string
userAgent
string
createdAt
string
modifiedAt
string