younifyd
Menu

List On Calls

List all of the on-calls

GET/oncalls

Use it in a workflow

  1. Add a step and choose the PagerDuty connector.
  2. Pick the List On Calls action (under On-Calls).
  3. Fill in the fields below, then reference the result from later steps as {{listOnCalls.response.data}}.

Request

Query parameters

time_zonestring (tzinfo)

Time zone in which results will be rendered. This will default to the account time zone.

limitinteger

The number of results per page.

offsetinteger

Offset to start pagination search results.

totalboolean

By default the `total` field in pagination responses is set to `null` to provide the fastest possible response times. Set `total` to `true` for this field to be populated. See our [Pagination Docs](https://developer.pagerduty.com/docs/rest-api-v2/pagination/) for more information.

Default false

include[]string

Array of additional details to include.

One ofescalation_policiesusersschedules

user_ids[]array<string>

Filters the results, showing only on-calls for the specified user IDs.

escalation_policy_ids[]array<string>

Filters the results, showing only on-calls for the specified escalation policy IDs.

schedule_ids[]array<string>

Filters the results, showing only on-calls for the specified schedule IDs. If `null` is provided in the array, it includes permanent on-calls due to direct user escalation targets.

sincestring (date-time)

The start of the time range over which you want to search. If an on-call period overlaps with the range, it will be included in the result. Defaults to current time. On-call shifts are limited to 90 days in the future.

untilstring (date-time)

The end of the time range over which you want to search. If an on-call period overlaps with the range, it will be included in the result. Defaults to current time. On-call shifts are limited to 90 days in the future, and the `until` time cannot be before the `since` time.

earliestboolean

This will filter on-calls such that only the earliest on-call for each combination of escalation policy, escalation level, and user is returned. This is useful for determining when the "next" on-calls are for a given set of filters.

Headers

Acceptstringrequired

The `Accept` header is used as a versioning header.

Default "application/vnd.pagerduty+json;version=2"

Content-Typestringrequired

One ofapplication/jsonDefault "application/json"

Response

Returns 200 with a any. Read it in later steps with {{listOnCalls.response.data.<field>}}.

Need more? See the PagerDuty guide for connection setup and behaviour shared by every action.