GET Sessions Current

GET Sessions Current

Retrieve user ID and TTL (time to live) for the current session.

Request
URI
GET
https://{api_host}/api/v2/sessions/current
COPY
Authentication
This operation uses the following authentication methods.
Responses
200

User ID and TTL (time to live) for the current session.

Returns sessions.current.get.response of type(s) application/json
{
    "userId": "cc251b9f-b4d0-437d-86de-8ac560d45e55",
    "ttl": 1800
}

401
Operation doesn't return any data structure

440
Operation doesn't return any data structure

Code Samples
COPY
                    curl -H 'Authorization: <value>' https://{api_host}/api/v2/sessions/current