Webhook alerts for website changes
Send every change to your own HTTP endpoint. Alertcat can post JSON, form data or the raw message body, with custom headers.
Which scheme to use
The json:// scheme posts a small JSON document with a title, message and type. The form:// scheme posts the same fields as form data. The post://, put:// and get:// schemes are Alertcat's own handlers and send the rendered notification body as the request body, which suits endpoints that expect a custom payload. Add an s to the scheme for https, for example jsons:// or posts://.
Your endpoint must be reachable from the public internet. Alertcat is hosted, so it cannot call addresses on your private network, and private or local addresses are refused by the post:// style handlers.
Apprise URL format
# JSON over https with a custom header
jsons://example.com/hooks/alertcat?+X-Api-Key=SECRET_PLACEHOLDER
# Form data
forms://example.com/hooks/alertcat
# Raw body, rendered from your template
posts://example.com/hooks/alertcat?+Authorization=Bearer%20TOKEN_PLACEHOLDERSet up a webhook in Alertcat
- Create an endpoint that accepts POST requests and returns a 2xx status.
- Pick a scheme: jsons:// for a ready made JSON payload, posts:// to control the body with a template.
- Add headers with `+Header=value` and fixed fields with `:key=value` on the URL.
- Add the URL under Notifications and send a test to see the exact payload.
- Check your logs, then save. Return a 2xx quickly so the alert counts as delivered.
Example message
{
"version": "1.0",
"title": "Page changed - https://example.com/status",
"message": "- Operational\n+ Degraded performance",
"type": "info"
}Tips
For posts:// you decide the payload with the notification body template. Write valid JSON in the template and use tokens such as the watch URL and the diff. The title and body come from your notification template. The default body contains the watch URL and the diff. Edit it with the tokens listed on notification templates.
- Verify requests with a secret header, since the endpoint is public.
- Keep handlers idempotent. A retry may deliver the same change twice.
- To reach thousands of apps without code, see Zapier.
Frequently asked questions
What is in the JSON payload?
A version, the notification title, the message body, an attachments list and a type. The example above shows the shape.
Can I call a local server?
Not from the hosted service. Expose the endpoint on a public address, for example through a tunnel, and protect it with a secret header.
How do I send a custom JSON body?
Use a posts:// URL and write the JSON in the body template.
Related
Watch the pages that matter
Alertcat is in early access. Tell us what you want to watch and we will set up your team.