PagerDuty Rulesets API

Rulesets allow you to route events to an endpoint and create collections of Event Rules, which define sets of actions to take based on event content.

GitHub OpenAPI
Business capability
Incident Response Management BC-4220.30

Operations 10

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

GET /rulesets List event rulesets · PagerDuty List Rulesets #
Ask an LLM
“Which event rulesets are configured in my account?”
“Can I page through all rulesets?”
Tell an agent
List all event rulesets.
Show {limit} rulesets starting at offset {offset}.
POST /rulesets Create an event ruleset · PagerDuty Create a Ruleset #
Ask an LLM
“How do I create a new ruleset to route events to an endpoint?”
“Can I define a collection of event rules in a new ruleset?”
Tell an agent
Create a ruleset {ruleset}.
Add a new event ruleset with {ruleset}.
GET /rulesets/{id} Get an event ruleset · PagerDuty Get a Ruleset #
Ask an LLM
“What are the details of one event ruleset?”
“Can I fetch a single ruleset by ID?”
Tell an agent
Get event ruleset {id}.
Show the configuration of ruleset {id}.
PUT /rulesets/{id} Update an event ruleset · PagerDuty Update a Ruleset #
Ask an LLM
“How do I change the configuration of an existing ruleset?”
“Can I edit a ruleset's settings after it's created?”
Tell an agent
Update event ruleset {id} with {ruleset}.
Change the settings of ruleset {id}.
DELETE /rulesets/{id} Delete an event ruleset · PagerDuty Delete a Ruleset #
Ask an LLM
“How do I delete a ruleset I no longer need?”
“Can I remove an entire event ruleset?”
Tell an agent destructive · confirm first
Delete event ruleset {id}.
Remove the ruleset {id} from my account.
GET /rulesets/{id}/rules List event rules in a ruleset · PagerDuty List Event Rules #
Ask an LLM
“Which event rules are on a particular ruleset?”
“Can I see every rule inside one ruleset?”
Tell an agent
List the event rules on ruleset {id}.
Show {limit} event rules from ruleset {id}.
POST /rulesets/{id}/rules Add an event rule to a ruleset · PagerDuty Create an Event Rule #
Ask an LLM
“How do I add a new event rule to a ruleset?”
“Can I create a rule that runs when events match a condition?”
Tell an agent
Add event rule {rule} to ruleset {id}.
Create a new event rule in ruleset {id}.
GET /rulesets/{id}/rules/{rule_id} Get an event rule in a ruleset · PagerDuty Get an Event Rule #
Ask an LLM
“What condition and actions does one event rule in a ruleset have?”
“Can I fetch a single event rule by its ID?”
Tell an agent
Get event rule {rule_id} in ruleset {id}.
Show the condition of event rule {rule_id} on ruleset {id}.
PUT /rulesets/{id}/rules/{rule_id} Update an event rule in a ruleset · PagerDuty Update an Event Rule #
Ask an LLM
“How do I change the condition of an event rule?”
“Can I edit an event rule inside a ruleset?”
Tell an agent
Update event rule {rule_id} in ruleset {id} with {rule}.
Change the condition of event rule {rule_id} on ruleset {id}.
DELETE /rulesets/{id}/rules/{rule_id} Delete an event rule from a ruleset · PagerDuty Delete an Event Rule #
Ask an LLM
“How do I remove an event rule from a ruleset?”
“Can I delete a single rule inside a ruleset?”
Tell an agent destructive · confirm first
Delete event rule {rule_id} from ruleset {id}.
Remove the rule {rule_id} on ruleset {id}.

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/pagerduty:pagerduty-rulesets-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

pagerduty-rulesets-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  description: 'This document describes the PagerDuty REST APIs.


    For guides and examples please visit our Documentation.


    Our REST APIs are defined in OpenAPI v3.x. You can view the schema at github.com/PagerDuty/api-schema.


    Note that properties in some schemas have fields not shown by default such as `readOnly`, `format`, and `default`. Hover your cursor over the right column that looks like `optional+1` to see the full list of fields.'
  contact:
    name: PagerDuty Support
    url: http://www.pagerduty.com/support
    email: support@pagerduty.com
  title: PagerDuty Rulesets API
  version: 2.0.0
servers:
- url: https://api.pagerduty.com
  description: PagerDuty V2 API.
security:
- api_key: []
tags:


# --- truncated at 32 KB (52 KB total) ---
# Full source: https://artifacts.apis.io/pagerduty/openapi/pagerduty-rulesets-api-openapi.yml