Ampersand webhooks
Ampersand webhooks are HTTPS requests that bring your customers' SaaS records, and notifications about their integrations, from Ampersand to a destination URL you register.
Ampersand's event list covers notifications only. Read and subscribe results reach the same URL with an action field and no event type: see choosing events.
How Ampersand webhooks work
Webhook destinations push data to you, so you don't have to poll Ampersand or each SaaS API for changes. When a read or subscribe action produces records, Ampersand sends them to the destination named on that object in amp.yaml. When something happens in your project, such as a customer installing your integration or a connection failing, it sends a notification to each destination routed from that event type through a topic.
The two kinds of message have different shapes. A notification has notificationType, which says what happened, and data. A result has action (read or subscribe) and resultInfo, with the records in result, or behind a signed resultInfo.downloadUrl when a single record is over 300 KB. Each subscribe record says what changed in subscribeEventType. Ampersand documents no version on these messages.
Key facts
svix-signature Format: v1,<base64>, space-delimited when there are several
{svix-id}.{svix-timestamp}.{raw body} The two headers and the body as sent, joined with dots. Ampersand sends readers to Svix for this scheme.
Setting up Ampersand webhooks
- Create a webhook destination under Destinations in the dashboard, or with
POST /v1/projects/{projectIdOrName}/destinations. Its URL must start withhttps. - Name the destination on each object in
amp.yamlto receive read and subscribe results. To receive notifications, create a topic under Notifications with the event types you want and select the destination. - Ampersand recommends a separate dev project. Point its destination at a temporary URL from Hookdeck Inspect, then call the trigger read API to produce messages on demand.
- Ampersand documents no way to resend a message. To recover data you missed, trigger a read for that object.
Delivery behaviour
not published Svix, which delivers for Ampersand, documents 30 seconds to return a 2xx Retries not published Svix's documented schedule is 8 attempts over about 27 hours; Ampersand doesn't say if it keeps that Destination disabled after repeated failures the threshold isn't published; destination.webhook.disabled tells you when it happens Duplicates possible on resend a resent message keeps its svix-id, per Svix's docs Known failure modes
From Hookdeck's Ampersand guide →-
Destination disabled after an outage
Ampersand can disable a webhook destination automatically after repeated failed deliveries, and it doesn't publish the threshold. Route
Retries and disabled destinations →destination.webhook.disabledanddestination.delivery.errorto another destination so you hear about it. -
Download URL expired
A record over 300 KB arrives as a signed
Other Ampersand limits →resultInfo.downloadUrlthat expires after 15 minutes. Fetch it as soon as the message arrives, and trigger a new read if the link has expired. -
Large messages rejected with a 413
Ampersand messages can reach 300 KB, and some frameworks default to less: Express's limit is 100 KB. Raise your body limit to at least 350 KB, or deliveries can fail during backfills.
Other Ampersand limits → -
Handler crashes on the other message shape
One URL can receive both notifications (
Choosing events →notificationTypeanddata) and results (actionandresult). Check which you have before reading any fields, or use separate destinations.
Ampersand webhook best practices
- Verify against the raw body. The signature covers the exact bytes, so parse the JSON only after the check passes.
- Allow 350 KB request bodies. Messages can reach 300 KB, and Express's default limit is 100 KB. Ampersand suggests 350 KB to leave a buffer.
- Branch on the kind of message.
Check
notificationTypefirst, thenaction, or give results and notifications separate destinations. - Fetch download URLs straight away.
A
resultInfo.downloadUrlexpires after 15 minutes, so a message that waits in a queue can arrive with a dead link. - Deduplicate on the message id.
A resent message keeps its
svix-id. Upsert records on their provider id too, since a later read can return them again. - Send destination alerts somewhere else.
Route
destination.webhook.disabledanddestination.delivery.errorto another destination, such as Slack, so you still hear about them when your webhook is down.
Common Ampersand webhook events
Installations
installation.created | Customer installs your integration |
installation.updated | Customer changes their integration configuration |
installation.deleted | Customer uninstalls your integration |
Connections and reads
connection.created | New OAuth connection to a SaaS provider is made |
connection.error | OAuth connection fails, for example on authentication or token refresh |
read.backfill.done | Historical sync finishes and its data is ready |
read.schedule.paused | Scheduled reads stop, often because of expired credentials |
Destinations
destination.webhook.disabled | Webhook destination is disabled, possibly after repeated failures |
destination.delivery.error | Results can't be delivered to a destination after all retries |
Events by resource
| Resource | Events | Payloads |
|---|---|---|
subscribe | 6 | 6 |
connection | 5 | 5 |
read | 5 | 4 |
installation | 3 | 0 |
1 more resource, including Other Ampersand events. All 22 events →
In this hub
| Webhook events → | Every covered Ampersand event, with payloads where the registry has them. |
| MCP events → | How an agent subscribes to Ampersand events as MCP events. |
| Verify signatures → | Signature facts, verification code and common failures. |
| Production guide → | Production problems, such as timeouts and retries, and how to handle them. |
| Agent skill → | Install the webhook skill in your coding agent. npx skills add hookdeck/webhook-skills --skill ampersand-webhooks |
Keep an outage from disabling your Ampersand destination.
Hookdeck Event Gateway accepts every Ampersand delivery, verifies its signature, queues events and delivers them at a rate your service can handle.