For AI agents: A markdown version of this page is available at https://dnd37xeb23o8n.cloudfront.net/jen.gilbert/astro-base/es/api/latest/on-call/get-on-call-responders-for-a-schedule.md. A documentation index is available at /llms.txt.
Language
Datadog site
PRECAUCIÓNEste producto no es compatible con el sitio Datadog seleccionado. (US2-FED).

Get on-call responders for a schedule

GEThttps://api.datadoghq.com/api/v2/on-call/schedules/{schedule_id}/respondershttps://api.us3.datadoghq.com/api/v2/on-call/schedules/{schedule_id}/respondershttps://api.us5.datadoghq.com/api/v2/on-call/schedules/{schedule_id}/respondershttps://api.datadoghq.eu/api/v2/on-call/schedules/{schedule_id}/respondershttps://api.ap1.datadoghq.com/api/v2/on-call/schedules/{schedule_id}/respondershttps://api.ap2.datadoghq.com/api/v2/on-call/schedules/{schedule_id}/respondershttps://api.uk1.datadoghq.com/api/v2/on-call/schedules/{schedule_id}/respondershttps://api.ddog-gov.com/api/v2/on-call/schedules/{schedule_id}/respondershttps://api.us2.ddog-gov.com/api/v2/on-call/schedules/{schedule_id}/responders

Descripción general

Retrieves the on-call responders for the specified schedule, grouped by position (previous, current, next), at a given time. Supports schedules with multiple concurrent on-call responders at a position, by returning a list of shifts per position.

This endpoint requires the on_call_read permission.

Argumentos

Parámetros de ruta

Nombre
Type
Descripción
schedule_id [required]
string

The ID of the schedule.

Cadenas de consulta

Nombre
Type
Descripción
include
string

Comma-separated list of included relationships to be returned. Allowed values: schedule, responders, responders.shifts, responders.shifts.user.

filter[position]
string

Comma-separated list of positions to retrieve. Allowed values: previous, current, next. Defaults to current if omitted.

filter[at_ts]
string

Retrieves the on-call responders at the given timestamp in RFC3339 format (for example, 2025-05-07T02:53:01Z or 2025-05-07T02:53:01+00:00). If you use a time zone offset with +, URL-encode the + as %2B. Defaults to the current time if omitted.

Respuesta

OK

Root object representing a schedule's on-call responders, grouped by position (previous, current, next), for a given point in time.

Campo
Type
Descripción
data
object

The main data object representing a schedule's on-call responders lookup, including relationships and metadata.

included
[<oneOf>]

Related resources referenced in the responder groups' relationships, such as shifts, schedules, and users.

Ejemplo de código

Get on-call responders for a schedule
# Path parameters
export schedule_id="3653d3c6-0c75-11ea-ad28-fb5701eabc7d"

# Set your Datadog site and credentials
export DD_SITE="datadoghq.com"
# Use a Personal Access Token or Service Access Token
export DD_BEARER_TOKEN="<PERSONAL_ACCESS_TOKEN OR SERVICE_ACCESS_TOKEN>"

curl -X GET "https://api.${DD_SITE}/api/v2/on-call/schedules/${schedule_id}/responders" \
-H "Accept: application/json" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}"
# Path parameters
export schedule_id="3653d3c6-0c75-11ea-ad28-fb5701eabc7d"

# Set your Datadog site and credentials
export DD_SITE="us3.datadoghq.com"
# Use a Personal Access Token or Service Access Token
export DD_BEARER_TOKEN="<PERSONAL_ACCESS_TOKEN OR SERVICE_ACCESS_TOKEN>"

curl -X GET "https://api.${DD_SITE}/api/v2/on-call/schedules/${schedule_id}/responders" \
-H "Accept: application/json" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}"
# Path parameters
export schedule_id="3653d3c6-0c75-11ea-ad28-fb5701eabc7d"

# Set your Datadog site and credentials
export DD_SITE="us5.datadoghq.com"
# Use a Personal Access Token or Service Access Token
export DD_BEARER_TOKEN="<PERSONAL_ACCESS_TOKEN OR SERVICE_ACCESS_TOKEN>"

curl -X GET "https://api.${DD_SITE}/api/v2/on-call/schedules/${schedule_id}/responders" \
-H "Accept: application/json" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}"
# Path parameters
export schedule_id="3653d3c6-0c75-11ea-ad28-fb5701eabc7d"

# Set your Datadog site and credentials
export DD_SITE="datadoghq.eu"
# Use a Personal Access Token or Service Access Token
export DD_BEARER_TOKEN="<PERSONAL_ACCESS_TOKEN OR SERVICE_ACCESS_TOKEN>"

curl -X GET "https://api.${DD_SITE}/api/v2/on-call/schedules/${schedule_id}/responders" \
-H "Accept: application/json" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}"
# Path parameters
export schedule_id="3653d3c6-0c75-11ea-ad28-fb5701eabc7d"

# Set your Datadog site and credentials
export DD_SITE="ap1.datadoghq.com"
# Use a Personal Access Token or Service Access Token
export DD_BEARER_TOKEN="<PERSONAL_ACCESS_TOKEN OR SERVICE_ACCESS_TOKEN>"

curl -X GET "https://api.${DD_SITE}/api/v2/on-call/schedules/${schedule_id}/responders" \
-H "Accept: application/json" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}"
# Path parameters
export schedule_id="3653d3c6-0c75-11ea-ad28-fb5701eabc7d"

# Set your Datadog site and credentials
export DD_SITE="ap2.datadoghq.com"
# Use a Personal Access Token or Service Access Token
export DD_BEARER_TOKEN="<PERSONAL_ACCESS_TOKEN OR SERVICE_ACCESS_TOKEN>"

curl -X GET "https://api.${DD_SITE}/api/v2/on-call/schedules/${schedule_id}/responders" \
-H "Accept: application/json" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}"
# Path parameters
export schedule_id="3653d3c6-0c75-11ea-ad28-fb5701eabc7d"

# Set your Datadog site and credentials
export DD_SITE="uk1.datadoghq.com"
# Use a Personal Access Token or Service Access Token
export DD_BEARER_TOKEN="<PERSONAL_ACCESS_TOKEN OR SERVICE_ACCESS_TOKEN>"

curl -X GET "https://api.${DD_SITE}/api/v2/on-call/schedules/${schedule_id}/responders" \
-H "Accept: application/json" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}"
# Path parameters
export schedule_id="3653d3c6-0c75-11ea-ad28-fb5701eabc7d"

# Set your Datadog site and credentials
export DD_SITE="ddog-gov.com"
# Use a Personal Access Token or Service Access Token
export DD_BEARER_TOKEN="<PERSONAL_ACCESS_TOKEN OR SERVICE_ACCESS_TOKEN>"

curl -X GET "https://api.${DD_SITE}/api/v2/on-call/schedules/${schedule_id}/responders" \
-H "Accept: application/json" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}"
# Path parameters
export schedule_id="3653d3c6-0c75-11ea-ad28-fb5701eabc7d"

# Set your Datadog site and credentials
export DD_SITE="us2.ddog-gov.com"
# Use a Personal Access Token or Service Access Token
export DD_BEARER_TOKEN="<PERSONAL_ACCESS_TOKEN OR SERVICE_ACCESS_TOKEN>"

curl -X GET "https://api.${DD_SITE}/api/v2/on-call/schedules/${schedule_id}/responders" \
-H "Accept: application/json" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}"