Sessions

Download OpenAPI specification:Download

Manage user sessions that are created upon successful 'frontend' authentication. This does not apply to the methods implemented via a backend-to-backend integration (under 'Backend Authentication').

Get user sessions

Retrieves all active sessions for a specified user

SecurityOAuth2: ClientAccessToken
Request
path Parameters
user_id
required
string

ID of the user to get active sessions for

Responses
200
400
get/v1/sessions/{user_id}
Request samples
Response samples
application/json
[
  • {
    }
]

Revoke sessions

Revokes all refresh tokens and logs out of all sessions for a specified user

SecurityOAuth2: ClientAccessToken
Request
path Parameters
user_id
required
string

ID of the user to revoke sessions for

Responses
200
400
delete/v1/sessions/{user_id}
Request samples
Response samples
application/json
{
  • "result": {
    }
}