# Retrieving Schedule Id for OpsGenie

In OpsGenie, every team has lots of services. Each service has an escalation policy. Each escalation policy has an oncall schedule rotation associated with it.

In Pagerly, the schedule id is the id of this rotation schedule for which you want to manage the oncalls. Pagerly would fetch the current oncall from this schedule so that use mention/tag this current oncall anywhere on Slack

Your schedule Id can be found on the schedule page URL

https\://\<company>.app.opsgenie.com/settings/schedule/detail/\<scheduleId>

\
You can fetch the schedule id as follows

1. Go to your OpsGenie account and go to the Who is on-call tab ([https://\<company>.app.opsgenie.com/schedule/whoIsOnCall](https://pagerly-2.app.opsgenie.com/schedule/whoIsOnCall))\ <br>

   <figure><img src="/files/mKR4Xjn9PLXGM2QNAQoW" alt=""><figcaption></figcaption></figure>
2. Select the schedule you want to configure.
3. Check the URL of the schedule.\
   The last part of the URL would be Schedule Id. Copy that and add in the team configuration as the Schedule Id.

For example, in the account below :point\_down: , the Schedule Id for the "payments\_schedule" Rotation is eb4109a3-75e4-443d-8efa-427dd3a9513f

<br>

<figure><img src="/files/8Xdv3Ray2SetMCiXObeq" alt=""><figcaption></figcaption></figure>

Copy that Schedule Id and Paste it into the Schedule Id section of the Add Team Configuration.

**Click on Create Team and Your Team setup is completed** :checkered\_flag::checkered\_flag:

**We are now ready to test and play with Pagerly for this team**


---

# 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-opsgenie.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.
