|docs
Start Trial

List a user's delegations

Get a list of OAuth delegations for a specific user.

This endpoint replaces the deprecated /users/{id}/sessions endpoint.

Required OAuth Scope: For Scoped OAuth requests, this operation requires the oauth_delegations.read scope.

Scoped OAuth requires: oauth_delegations.read

Authorization<token>

The API Key with format Token token=<API_KEY>

In: header

Path Parameters

id*string

The ID of the resource.

Query Parameters

delegation_type?string

The type of OAuth delegations to filter on. Allowed values are 'mobile', 'web', and 'integration'. You can pass one or more types in, separated by commas (e.g., type=web,mobile).

Value in

  • "mobile"
  • "web"
  • "integration"
status?string

The status of the delegations to return. Allowed values are 'issued' and 'revoked'. You can pass one or more statuses in, separated by commas (e.g., status=issued,revoked).

Value in

  • "issued"
  • "revoked"
limit?integer

The minimum of the limit parameter used in the request or the maximum request size of the API.

cursor?string

Optional parameter used to request the "next" set of results from an API. The value provided here is most commonly obtained from the next_cursor field of the previous request. When no value is provided, the request starts at the beginning of the result set.

Header Parameters

Accept*string

The Accept header is used as a versioning header.

Default"application/vnd.pagerduty+json;version=2"
Content-Type*"application/json"
Default"application/json"

Value in

  • "application/json"

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json