PagerDuty primarily uses a REST API. The key points are:
Yes, the official PagerDuty API does have webhooks. Here are the key points about PagerDuty's webhook functionality:
PagerDuty offers webhook functionality through their V3 webhook subscriptions.
Webhooks allow you to receive HTTP callbacks when significant events happen in your PagerDuty account.
You can subscribe to the following types of events for incidents:
For services, you can subscribe to:
V3 webhooks offer more event types compared to previous versions.
You can create up to 10 webhook subscriptions per unique service and Team ID.
Webhooks can be managed via the PagerDuty web interface or API.
Custom headers can be added to webhook subscriptions.
PagerDuty provides a way to test webhook configurations by sending a test event.
When migrating from older webhook versions, subscribe to all event types to receive the same data as before.
Use the provided migration guide or script when upgrading from V1/V2 webhooks to V3.
Verify webhook payloads using the provided secret for security.
Consider safelisting PagerDuty's IP addresses for webhook traffic.
In summary, PagerDuty's API offers robust webhook functionality with a wide range of event types to subscribe to, allowing for real-time notifications of important incidents and service changes.
Here are the key points about the API Rate Limits of the PagerDuty API:
PagerDuty has implemented rate limits on their REST API to ensure resource availability and protect against fraudulent activity [3].
Key recommendations for working with the rate limits include:
Make use of rate limit headers: Parse the ratelimit-remaining
and ratelimit-reset
response headers to manage your API usage [3].
Use separate "bot users" for different application deployments to keep rate limits separate [3].
Use the latest Terraform PagerDuty provider version (v3.2.2 or later) for improved API retry logic [3].
The new rate limiting headers became active in October/November 2023. Applications can expect to see 429 responses when limits are reached [3].
To prepare for rate limits:
PagerDuty introduced new rate limiting headers on HTTP responses before fully implementing the limits [3].
For a period, 429 responses were not sent when limits were reached, allowing time for applications to adjust [3].
Mission-critical applications should incorporate these headers to minimize potential disruptions [3].
If experiencing throttling due to rate limits:
Consider adding more users and spreading out the API request load if using user API keys [3].
Register one scoped OAuth app per environment (e.g., staging, production) and use appropriate app tokens [3].
Consider registering a private scoped OAuth app in addition to using a user token to effectively double your API rate limit [3].
In most cases, applications should experience similar or more generous rate limits than before, but there may be exceptions depending on how the REST API is used [3].
The specific rate limit numbers are not provided in the given information. Developers should monitor the rate limit headers in API responses to understand their current limits and usage.
Based on the search results provided, I do not have specific information about the most recent version of the PagerDuty API. The search results contain platform release notes and other general information about PagerDuty, but do not mention API versions. Without more specific information about the PagerDuty API versioning, I cannot provide a definitive answer about the most recent version.
Key points to consider:
PagerDuty regularly updates its platform and services, as evidenced by the detailed release notes for different months in 2024.
The company provides API documentation and developer resources, including an APIs Overview section.
PagerDuty uses REST APIs, as mentioned in the "REST API Rate Limits" section.
To find the most up-to-date information about the PagerDuty API version:
Best practices:
To get a developer account for PagerDuty and create an API integration, you can follow these steps:
Sign up for a PagerDuty account if you don't already have one. You can start with a free trial.
Once you have an account, log in to the PagerDuty web application.
Navigate to the "Integrations" section, then select "API Access Keys" under "Developer Tools".
Click on "Create New API Key" to generate a new API key.
Optionally, you can check the "Read-only API Key" box if you only need to make GET calls.
Store the generated API key securely, as it will only be displayed in full once.
By following these steps and considering the key points, you should be able to set up a developer account and create an API integration with PagerDuty.
Based on my knowledge of the PagerDuty API, here's a list of data models you can interact with and what's possible for each:
Please note that the exact capabilities for each data model may vary depending on the specific version of the PagerDuty API you're using. It's always a good idea to consult the official PagerDuty API documentation for the most up-to-date and detailed information on available endpoints and operations.