v1

latestOpenAPI 3.0.22026-07-144652931.4 MB
Users

List a user's active sessions

<!-- theme: warning -->

Deprecated

This endpoint is deprecated, please use the List OAuth Delegations endpoint instead.

List active sessions of a PagerDuty user.

Beginning November 2021, active sessions no longer includes newly issued OAuth tokens.

Users are members of a PagerDuty account that have the ability to interact with Incidents and other data on the account.

For more information see the API Concepts Document

Scoped OAuth requires: users:sessions.read

get/users/{id}/sessions

Path parameters

idstring required

The ID of the resource.

Headers

Acceptstring required

The Accept header is used as a versioning header.

Content-Type'application/json' required

Response

A list of the user's active sessions.

Example response

{
  "user_sessions": [
    {
      "id": "PXPGF42",
      "user_id": "PXPGF42",
      "created_at": "2018-10-06T21:30:42Z",
      "summary": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/74.0.3729.131 Safari/537.36",
      "type": "browser"
    }
  ]
}