# Retrieving Schedule Id for Datadog

### ⚙️ How Pagerly Uses Datadog Schedule ID

In Pagerly:

* You provide the **Datadog Schedule ID**
* Pagerly fetches:
  * Current on-call user
  * Rotation info
* Then Pagerly can:
  * Mention/tag on Slack
  * Route incidents
  * Sync on-call info

***

### 🔍 How to Find Schedule ID in Datadog

#### Step-by-step:

#### 1. Go to Datadog On-Call

* Login to your Datadog account
* Navigate to:\
  👉 **On-Call → Schedules**

***

#### 2. View All Schedules

* You’ll see a list of all schedules
* Each schedule represents a rotation

***

#### 3. Open the Schedule

* Click on the schedule you want to configure

***

#### 4. Copy Schedule ID from URL

<figure><img src="/files/UFxQg3PV30AC98LgMLuK" alt=""><figcaption></figcaption></figure>

The URL will look like:

```
https://app.datadoghq.com/on-call/schedules/<SCHEDULE_ID>
```

👉 Example:

```
https://app.datadoghq.com/on-call/schedules/f96168be-1fc6-4103-90d4-294655e7dd2b
```

* The last part is your **Schedule ID**
* Copy this value

***

### 🧩 Add in Pagerly

* Go to **Pagerly → Add Team Configuration**
* Paste the Schedule ID
* Save / Create Team

***

### ✅ Done

* Pagerly will now:
  * Fetch current on-call from Datadog
  * Enable Slack tagging (`@oncall`)
  * Power incident routing


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.pagerly.io/how-to-work-with-pagerly/sync-team-schedule-from-tools-pagerduty-opsgenie-etc/retrieving-schedule-id-for-datadog.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
