Skip to content

Import from Opsgenie

Copy your Opsgenie schedules, overrides, escalations, service routing and integrations into Argavon. Read Move from another tool first for the rules every import follows.

What is imported

Opsgenie Argavon Notes
Users Matched by email (the Opsgenie username) Nobody is created.
Schedule with one rotation One schedule, same name and timezone A schedule with no timezone uses UTC.
Schedule with several rotations One schedule per rotation, named Schedule / Rotation Opsgenie notifies every rotation of a schedule at once. Argavon has one person on call per schedule, so each rotation gets its own schedule, and a policy that targeted the Opsgenie schedule targets all of them in the same step.
Rotation type hourly, daily, weekly and length Layer shift unit and length Start date becomes the layer start in the schedule's timezone.
Time restriction time-of-day A window on every day
Time restriction weekday-and-time-of-day Per-day windows A range that spans days (for example Monday 09:00 to Friday 17:00) is split into one layer per distinct window, all with the same rotation.
Overrides Schedule overrides Copied to every schedule made from that Opsgenie schedule.
Escalations Escalation policies Opsgenie delays count from the alert. Argavon steps wait between each other, so rules are grouped by delay and turned into waits. repeat.count becomes repeat.
Services A route by service name To the policy of the owning team's default routing rule. If that rule notifies a schedule, a one-step policy On call: <schedule> is created for it.
Integrations Sources Only types that map to Prometheus/Alertmanager, Grafana, Zabbix or OpenTelemetry.

What is not imported

Each of these appears as a warning in the preview:

  • Disabled schedules are imported anyway (with a warning), so check whether you still want them.
  • Rotations of other types, and rotations with no users.
  • Participants that are not users: a team, an escalation, or an empty (none) slot. Argavon rotations have no gaps, so an empty slot is removed and the order shifts.
  • Overrides that are not for a user.
  • Escalation rules for anything other than a user or a schedule.
  • Rule conditions other than "if not acked": they are treated as "if not acknowledged".
  • A delay before the first rule: Argavon pages the first step at once.
  • More than 9 repeats: capped at 9.
  • Team routing rules other than the default (condition-based routing). Add Argavon routes by service for them.
  • Services whose team has no default routing rule.
  • 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 these Opsgenie endpoints with Authorization: GenieKey <key>: /v2/users, /v2/teams, /v2/schedules (with rotations and overrides), /v2/escalations, /v2/teams/{id}/routing-rules, /v1/services and /v2/integrations.

Create an API key in Opsgenie under API key management, with read access to configuration.

In Opsgenie, go to Settings → Integrations, add an API integration and copy its key. Turn on Read access and Configuration access: schedules, teams and routing rules are configuration data. The importer only sends GET requests.

Regions:

Region in the web app api_base
US (api.opsgenie.com) omit, or https://api.opsgenie.com
EU (api.eu.opsgenie.com) https://api.eu.opsgenie.com

No other host is accepted, unless the server sets NOTIFY_ALLOW_PRIVATE_TARGETS=true (see Configuration).

Step by step in the web app

  1. Make sure everyone who is on call in Opsgenie has a Argavon account with the same email.
  2. Open Import, pick Opsgenie.
  3. Keep Read from the Opsgenie API selected. Paste the key into API key (GenieKey) and pick the Region.
  4. Click Preview. Read the table and the warnings.
  5. Click Import.
  6. Copy any new ingest tokens from New ingest tokens, shown only now.

With the API

curl -s https://argavon.com.com/api/v1/imports/opsgenie/apply \
  -H "Authorization: Bearer $NEUROOPS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"source": "api", "api_key": "'"$GENIE_KEY"'", "api_base": "https://api.eu.opsgenie.com"}'

Use /plan instead of /apply for a preview.

Import from a file

To save everything first (useful whatever you move to), see Export your Opsgenie setup.

If the server cannot reach Opsgenie, put the API responses (the data arrays) in one JSON document and upload it with Upload an export (JSON), or send it as data with "source": "file". Overrides are keyed by schedule ID, routing rules by team ID:

{
  "users": [{"id": "u1", "username": "ann@example.com", "fullName": "Ann"}],
  "teams": [{"id": "team-1", "name": "Payments"}],
  "schedules": [{
    "id": "sch-1", "name": "Payments", "timezone": "Europe/Berlin",
    "rotations": [{
      "id": "rot-a", "name": "Weekly", "startDate": "2026-11-02T08:00:00Z",
      "type": "weekly", "length": 1,
      "participants": [{"type": "user", "id": "u1"}]
    }]
  }],
  "overrides": {"sch-1": []},
  "escalations": [{
    "id": "esc-1", "name": "Payments",
    "rules": [{"condition": "if-not-acked", "delay": {"timeAmount": 0, "timeUnit": "minutes"},
               "recipient": {"type": "schedule", "id": "sch-1", "name": "Payments"}}]
  }],
  "routing_rules": {"team-1": [{"name": "Default", "isDefault": true, "notify": {"type": "escalation", "id": "esc-1", "name": "Payments"}}]},
  "services": [{"id": "svc-1", "name": "payments-api", "teamId": "team-1"}],
  "integrations": [{"id": "int-1", "name": "Prometheus", "type": "Prometheus", "enabled": true}]
}

What to check after the import

  • On-Call: who is on call now matches Opsgenie for each schedule, including restricted rotations split into (part 1), (part 2) layers.
  • Escalation: each policy has the steps and waits you expect. The wait after the last step comes from the Opsgenie repeat wait interval (5 minutes if it has none).
  • Escalation routes: each service routes to the policy of its team.
  • Send a test alert through each new source.

If it does not work

Message What to do
api_base must be one of api.opsgenie.com, api.eu.opsgenie.com Use the region selector, or one of those URLs.
api.opsgenie.com rejected the API key (HTTP 401) ... Wrong key, missing rights, or your account is in the EU region.
schedule "..." has no rotations; skipped Nothing to import for that schedule.
service "..." has no team default routing rule; no route created Add a route for that service in Escalation by hand.

See also the common errors in Move from another tool.