Connecting PagerDuty to Bicycle
Learn how to authorize PagerDuty with OAuth or an API key and connect your PagerDuty account to Bicycle.
Requirements
To follow the steps in this guide, you'll need:
- Permission to create connectors in Bicycle
- A PagerDuty account
- For OAuth: permission to authorize the Bicycle app in PagerDuty
- For API key: permission to create a User API token in PagerDuty
Connect with OAuth (recommended)
Open Connectors and select PagerDuty
In Bicycle, go to Connectors. Find PagerDuty and click + Connect.
Choose OAuth
Enter a connection name that identifies the environment, such as PagerDuty Production. Select OAuth as the Connector method, then click Next.
Authorize in PagerDuty
After you click Next, Bicycle opens a popup to PagerDuty's authorization page. The main window shows Waiting for authorization... while you complete sign-in in the popup.
Sign in to PagerDuty and authorize the application.
The following scopes are requested automatically during OAuth:
openid— OpenID Connect authenticationread— General read access (required for MCP)write— General write accessincidents.read— Read incidentsincidents.write— Manage incidentsservices.read— Read servicesteams.read— Read teamsusers.read— Read usersoncalls.read— Read on-call schedulesschedules.read— Read schedulesescalation_policies.read— Read escalation policies
Confirm the connection
When authorization completes, the popup shows Connected Successfully! and closes automatically. Bicycle shows Connection successfully added! with the connection name, ID, and method (OAuth). Click Close to return to the Connectors page.
Connect with API key
Use this path if your organization prefers token-based access.
In PagerDuty
Create a User API token
- Log in to your PagerDuty account.
- Open My Profile > User Settings > API Access.
- Create a new User API token or copy an existing one.
Use a token with the permissions Bicycle needs in your organization.
In Bicycle
Open Connectors and select PagerDuty
In Bicycle, go to Connectors. Find PagerDuty and click + Connect.
Choose API key
Enter a connection name that identifies the environment, such as PagerDuty Production. Select API key as the Connector method, then click Next.
Configure MCP
On the Configure MCP step, paste your PagerDuty User API token.
API TokenRequiredUser API token from PagerDuty My Profile > User Settings > API Access
Test the connection
Click Test connection. When the test succeeds, you will see Connection verified successfully.
Save the connection
Click Save connection. When the connection is created successfully, you will see Connection successfully added! with the connection name, ID, and method (API key). Click Close to return to the Connectors page.
Troubleshooting
If Test connection fails, check the following.
| Error or symptom | Likely cause | Fix |
|---|---|---|
| Authentication failed | Invalid or expired OAuth session or API key | Re-authorize with OAuth or create a new User API token |
| Authorization failed | Token lacks required PagerDuty permissions | Ask your PagerDuty administrator to grant the required access |
| OAuth redirect fails | PagerDuty app authorization blocked | Confirm your PagerDuty administrator approved the Bicycle app |