ZITADEL Docs
APIsCore ResourcesV1Authenticated User

ListMyUserSessions

POST
/users/me/sessions/_search

Request Body

application/json

[key: string]?never

Response Body

application/json

application/json

curl -X POST "https://loading/users/me/sessions/_search" \  -H "Content-Type: application/json" \  -d '{}'
{
  "result": [
    {
      "sessionId": "string",
      "agentId": "string",
      "authState": "SESSION_STATE_UNSPECIFIED",
      "userId": "string",
      "userName": "string",
      "loginName": "string",
      "displayName": "string",
      "details": {
        "sequence": 0,
        "creationDate": "1s",
        "changeDate": "1s",
        "resourceOwner": "string"
      },
      "avatarUrl": "string"
    }
  ]
}
{
  "code": "not_found",
  "message": "string",
  "detail": {
    "type": "string",
    "value": "string",
    "debug": {}
  }
}

Was this page helpful?