Users

Get user active sessions

Changed on

Retrieve all non-expired sessions for the user, including session metadata and interaction details when available.

get/api/users/{userId}/sessions

Request

  • Base URL: https://[tenant_id].logto.app
  • URL: https://[tenant_id].logto.app/api/users/{userId}/sessions
  • Auth: OAuth 2 (client credentials, token URL /oidc/token, scopes: all)

Path parameters

userIdstring required

The unique identifier of the user.

Response

Return a list of non-expired sessions of the user.

Changes

    • breaking

      added subschema #2 subschema #3 subschema #4 subschema #5 to the //// response property oneOf list for the response status

    • info

      removed subschema #2 subschema #3 subschema #4 subschema #5 from the //// response property oneOf list for the response status