Skip to main content
Version: 1.4.0

Retrieve sessions for a user in a realm

GET 

https://demo.openremote.io/api/master/user/:realm/userSessions/:userId

Retrieve sessions for a user in a realm

Request

Path Parameters

    realm stringrequired
    userId stringrequired

Header Parameters

    Authorization string
    X-Forwarded-Proto string
    X-Forwarded-Host string

Responses

default response

Schema
  • Array [
  • IDstring
    usernamestring
    startTimeMillisint64
    remoteAddressstring
  • ]

Authorization: oauth2

name: openidtype: oauth2flows: {
  "clientCredentials": {
    "tokenUrl": "/auth/realms/master/protocol/openid-connect/token",
    "refreshUrl": "/auth/realms/master/protocol/openid-connect/token",
    "scopes": {
      "profile": "profile"
    }
  },
  "authorizationCode": {
    "authorizationUrl": "/auth/realms/master/protocol/openid-connect/auth",
    "tokenUrl": "/auth/realms/master/protocol/openid-connect/token",
    "refreshUrl": "/auth/realms/master/protocol/openid-connect/token",
    "scopes": {
      "profile": "profile"
    }
  }
}
curl -L 'https://demo.openremote.io/api/master/user/:realm/userSessions/:userId' \
-H 'Authorization: Bearer <token>'
Request Collapse all
Base URL
https://demo.openremote.io/api/master
Auth
Parameters
— pathrequired
— pathrequired
— header
— header
— header
ResponseClear

Click the Send API Request button above and see the response here!