# 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="https://296040630-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fu15pukNExHWOsjYrdZrh%2Fuploads%2F7ZbnJJT2XORpxbN3Co6B%2Fimage.png?alt=media&#x26;token=557d4acb-c886-4280-a530-5ebc3ef9a8fb" 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
