Substy Developers
Account and agency

List account sessions

List the authenticated user’s sign-in sessions with status, last activity, browser, device and location. Supports offset and limit, up to 100 sessions per call; returns totalCount. To revoke a session, pass its ID to request_account_action with kind revoke_session.

GET/v1/agencies/{agencyId}/account/sessions

List the authenticated user’s sign-in sessions with status, last activity, browser, device and location. Supports offset and limit, up to 100 sessions per call; returns totalCount. To revoke a session, pass its ID to request_account_action with kind revoke_session.

Authorization

bearerAuth
AuthorizationBearer <token>

In: header

Path Parameters

agencyId*string
Length1 <= length

Query Parameters

offset?integer
Range0 <= value <= 9007199254740991
Default0
limit?integer
Range1 <= value <= 100
Default20

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

curl -X GET "https://example.com/v1/agencies/string/account/sessions" \  -H "Authorization: Bearer YOUR_API_KEY"
{  "data": {    "totalCount": 0,    "sessions": [      {        "id": "string",        "status": "string",        "lastActiveAt": "string",        "browserName": null,        "deviceType": null,        "city": null,        "country": null      }    ]  },  "meta": {    "requestId": "string"  }}