Import from PagerDuty¶
Copy your PagerDuty schedules, overrides, escalation policies, services and integrations into Argavon. Read Move from another tool first for the rules every import follows.
What is imported¶
| PagerDuty | Argavon | Notes |
|---|---|---|
| Users | Matched by email | Nobody is created. |
| Schedule | One schedule, same name and timezone | A schedule with no timezone uses UTC. |
| Schedule layers | Layers | Ended layers are left out. |
| Layer order | Layer priority | If every layer is named Layer N, a higher N wins. Otherwise the order in the API answer is used, first = highest. The preview warns with the order it used, so you can check it. |
rotation_virtual_start and turn length |
Layer start, shift unit and length | Turn lengths in whole weeks, days or hours map exactly. Others are rounded to whole hours, with a warning. |
| Daily and weekly restrictions | Per-day windows | A window that crosses midnight or several days is split into one layer per distinct window, all with the same rotation. |
| Overrides | Schedule overrides | Through the API: overrides in the next 90 days. |
| Escalation policies | Escalation policies | Each rule's escalation_delay_in_minutes becomes the wait after that step. num_loops becomes repeat. |
| Services | A route by service name to the service's escalation policy | |
| Service integrations | Sources | Only types that map to Prometheus/Alertmanager, Grafana, Zabbix or OpenTelemetry. The source is named PagerDuty: <service> / <integration>. |
What is not imported¶
Each of these appears as a warning in the preview:
- Layers with no users.
- Restrictions of an unknown type or with an unreadable start time (the layer is imported without the restriction).
- A layer that starts in the future in the middle of a shift: it starts at its first handoff after that.
- Escalation targets other than users and schedules.
- More than 9 loops: capped at 9.
- Integration types with no Argavon source type. Point that tool at a Argavon source by hand.
- Personal notification rules and contact methods.
Get an API key¶
The importer only reads. It calls /users, /schedules, /schedules/{id}, /schedules/{id}/overrides, /escalation_policies and /services (with integrations) using Authorization: Token token=<key>.
Create a REST API key in PagerDuty. A read-only key is enough.
In PagerDuty, go to Integrations → API Access Keys → Create New API Key and tick Read-only. A personal user API key also works, but only sees what that user can see.
Regions:
| Region in the web app | api_base |
|---|---|
| US (api.pagerduty.com) | omit, or https://api.pagerduty.com |
| EU (api.eu.pagerduty.com) | https://api.eu.pagerduty.com |
No other host is accepted, unless the server sets NOTIFY_ALLOW_PRIVATE_TARGETS=true (see Configuration).
Step by step in the web app¶
- Make sure everyone who is on call in PagerDuty has a Argavon account with the same email.
- Open Import, pick PagerDuty.
- Keep Read from the PagerDuty API selected. Paste the key into REST API key (read-only is enough) and pick the Region.
- Click Preview. Check the layer order warnings and the skipped items.
- Click Import.
- Copy any new ingest tokens from New ingest tokens, shown only now.
With the API¶
curl -s https://argavon.com.com/api/v1/imports/pagerduty/apply \
-H "Authorization: Bearer $NEUROOPS_TOKEN" \
-H "Content-Type: application/json" \
-d '{"source": "api", "api_key": "'"$PD_API_KEY"'"}'
Add "api_base": "https://api.eu.pagerduty.com" for the EU region. Use /plan instead of /apply for a preview.
Import from a file¶
Put the API objects in one JSON document. Schedules must be the full objects from GET /schedules/{id} (with schedule_layers). Overrides are keyed by schedule ID. Services carry their integrations.
{
"users": [{"id": "PU1", "name": "Ann", "email": "ann@example.com"}],
"schedules": [{
"id": "PS1", "name": "Payments primary", "time_zone": "Europe/Berlin",
"schedule_layers": [{
"id": "L1", "name": "Layer 1",
"start": "2026-11-02T09:00:00+01:00",
"rotation_virtual_start": "2026-11-02T09:00:00+01:00",
"rotation_turn_length_seconds": 604800,
"users": [{"user": {"id": "PU1", "type": "user_reference"}}],
"restrictions": []
}]
}],
"overrides": {"PS1": []},
"escalation_policies": [{
"id": "PE1", "name": "Payments", "num_loops": 1,
"escalation_rules": [{"escalation_delay_in_minutes": 15,
"targets": [{"id": "PS1", "type": "schedule_reference"}]}]
}],
"services": [{
"id": "PSV1", "name": "payments-api",
"escalation_policy": {"id": "PE1", "type": "escalation_policy_reference"},
"integrations": [{"id": "PI1", "type": "generic_events_api_inbound_integration_reference", "summary": "Prometheus"}]
}]
}
From a file, every override in it is considered; those that already ended are ignored.
What to check after the import¶
- On-Call: who is on call now matches PagerDuty for each schedule. Pay attention to schedules with several layers and to restricted layers split into
(part 1),(part 2). - Escalation: each policy's steps, waits and repeat.
- Escalation routes: one route per PagerDuty service.
- Send a test alert through each new source.
If it does not work¶
| Message | What to do |
|---|---|
api_base must be one of api.pagerduty.com, api.eu.pagerduty.com |
Use the region selector, or one of those URLs. |
api.pagerduty.com rejected the API key (HTTP 401) ... |
Wrong key, or your account is in the EU region. |
schedule "..." has nothing that can be imported; skipped |
All its layers ended or had no users, and it has no overrides. |
layer "..." of "..." hands off every N seconds; Argavon uses whole hours, ... |
Check the shift length in On-Call and adjust it if needed. |
See also the common errors in Move from another tool.