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/v1/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

The request was refused because it lacks valid authentication credentials. This can happen if the Authorization header was missing, or if it contained an invalid session ID.

Obtain a new session ID and retry the request, or make an unauthenticated request without the Authorization header.

"Invalid session ID"

440

The request was refused because the session ID has expired. Obtain a new session ID from /api/v1/sessions.

"Login Timeout"

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