Atlas
Sessions

List current user's sessions

Returns all sessions for the authenticated user. Requires managed auth mode and an internal database.

GET
/api/v1/sessions

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

curl -X GET "http://localhost:3001/api/v1/sessions"
{
  "sessions": [
    {
      "id": "string",
      "createdAt": "string",
      "updatedAt": "string",
      "expiresAt": "string",
      "ipAddress": "string",
      "userAgent": "string"
    }
  ]
}
{
  "property1": null,
  "property2": null
}
{
  "property1": null,
  "property2": null
}
{
  "error": "string",
  "message": "string",
  "requestId": "string"
}
{
  "property1": null,
  "property2": null
}
{
  "error": "string",
  "message": "string",
  "requestId": "string"
}