v1

latestOpenAPI 3.0.22026-07-144652931.4 MB
Users

Get a user's session

<!-- theme: warning -->

Deprecated

This endpoint is deprecated, please use the Get OAuth Delegation endpoint instead. Get details about a user's session.

Beginning November 2021, user 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/{type}/{session_id}

Path parameters

idstring required

The ID of the resource.

typestring required

The session type for the user session ID.

session_idstring required

The session ID for the user.

Headers

Acceptstring required

The Accept header is used as a versioning header.

Content-Type'application/json' required

Response

The user's session requested.

Example response

{
  "user_session": {
    "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"
  }
}