amonit

← Docs

Send alerts to Amonit from any tool with a webhook

Amonit team · Updated

Short answer: POST a JSON body with at least a message to your integration URL. Send the same alias with action: resolve to close the alert.

The generic webhook has its own format. To use it from a tool that can’t customise its webhook body, you’d need something in between that translates it. Datadog, Sentry, CloudWatch and Zabbix have no native adapter in Amonit, and we haven’t tested them with this webhook.

1. Create the integration

In your Amonit instance (yourteam.amonit.dev), an admin opens Integrations → Add Integration, picks the type Webhook and a team, and saves. The integration’s page then shows the webhook URL and a Send test alert button.

The URL contains the integration’s token, so treat it like a password. If it leaks, regenerate the token on the same page: the old URL stops working from the next request.

The team needs an escalation policy, or nobody on a rota is paged. In that case, Amonit emails the admins and notes it on the alert’s timeline.

2. Open an alert

curl -X POST "https://yourteam.amonit.dev/api/v1/integrations/<token>/events" \
  -H 'Content-Type: application/json' \
  -d '{"alias": "backup-nightly", "message": "Nightly backup failed on nas-1", "priority": "P2",
       "details": {"host": "nas-1", "job": "restic"},
       "links": [{"label": "Logs", "url": "https://logs.example.com/backup"}]}'

3. Close it

curl -X POST "https://yourteam.amonit.dev/api/v1/integrations/<token>/events" \
  -H 'Content-Type: application/json' \
  -d '{"alias": "backup-nightly", "message": "Backup ok", "action": "resolve"}'

To keep the token out of the URL, POST to https://yourteam.amonit.dev/api/v1/integrations/events with the header Authorization: Bearer <token>.

Fields

Field Required Notes
message yes Up to 1000 characters. It’s read out in the call, so keep it short.
alias no Deduplication key, up to 255 characters. Without it, a hash of the message is used.
priority no P1 to P5, default P3
action no trigger (default) or resolve
details no Object shown on the alert page
links no Up to 10 items, each with a url (http or https, required) and a label (up to 100 characters)

Use an alias if you want to resolve. Without one, a resolve closes the alert only if its message is exactly the same as the original.

Responses

Code Meaning
200 Accepted, with counts: {"data": {"triggered": 1, "resolved": 0, "ignored": 0}}. A resolve with no matching open alert counts as ignored.
401 Token missing or unknown
403 The integration is set to inactive
422 Invalid payload, and nothing was created
429 More than 60 requests a minute for this token, see Retry-After

See how alerts reach people for schedules, escalation and what a call sounds like.

Checked against the product and the tool’s documentation on 7 November 2026. Corrections: [email protected].