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 }
Retrieve the current session
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
Session successfully retrieved
Session ID (token)
Session expiration time
Indicates if the session is fresh
User ID