Retrieve a user session
Retrieves detailed information about a specific session for the specified user.
Access to user session management endpoints requires an active Pro plan subscription.
API-KeyX-API-KEY<token>MonoCloud APIs require authentication with an API key. Retrieve your key from the Tenant Settings section of the MonoCloud dashboard and include it in the request header as: X-API-Key: <your_api_key>
The unique identifier of the user.
The unique identifier of the user session.
Response Body
application/json
The user session was retrieved successfully
TypeScript Definitions
Use the response body type in TypeScript.
User Session: Represents an authentication session for a user.
Errors
curl -X GET "https://your-domain.us.monocloud.com/api/users/WUgDGqaqzqkRmsgd3PFAT/sessions/F8B7C57ACB5BEE57AC582D96CAF46D4D" \ -H "X-API-KEY: <token>"{ "session_id": "string", "client_ids": [ "string" ], "initiated_at": 0, "expires_at": 0, "last_updated": 0, "last_metadata": { "city": null, "country": null, "region": null, "latitude": null, "longitude": null, "ip_address": null, "user_agent": null }}List user sessions GET
Retrieves a paginated list of all active sessions for the specified user. Optional query parameters allow searching, filtering, and sorting the results.
Revoke a session DELETE
Revokes the specified user session, immediately terminating it and preventing further sign-in activity under that session.