Users

Get user active session

Changed on

Retrieve a non-expired session for the user by session ID, including session metadata and interaction details when available.

get/api/users/{userId}/sessions/{sessionId}

Request

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

Path parameters

userIdstring required

The unique identifier of the user.

sessionIdstring required

The unique identifier of the session.

Response

Return a non-expired session of the user.

clientIdstring nullable required
accountIdstring nullable required
expiresAtnumber required

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