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.

22 events covered

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

Signature header
svix-signature

Format: v1,<base64>, space-delimited when there are several

Scheme
HMAC-SHA256
Signed material
{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.

How events are identified
notificationType in the body; results use action instead
Body format
JSON
Event families
notifications, read and subscribe results
Send timestamp
svix-timestamp
Envelope
notificationType, data
Agent skill
npx skills add hookdeck/webhook-skills --skill ampersand-webhooks

Verify Ampersand webhooks →

Setting up Ampersand webhooks

  • Create a webhook destination under Destinations in the dashboard, or with POST /v1/projects/{projectIdOrName}/destinations. Its URL must start with https.
  • Name the destination on each object in amp.yaml to 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

  1. Destination disabled after an outage

    Ampersand can disable a webhook destination automatically after repeated failed deliveries, and it doesn't publish the threshold. Route destination.webhook.disabled and destination.delivery.error to another destination so you hear about it.

    Retries and disabled destinations →
  2. Download URL expired

    A record over 300 KB arrives as a signed resultInfo.downloadUrl that expires after 15 minutes. Fetch it as soon as the message arrives, and trigger a new read if the link has expired.

    Other Ampersand limits →
  3. 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 →
  4. Handler crashes on the other message shape

    One URL can receive both notifications (notificationType and data) and results (action and result). Check which you have before reading any fields, or use separate destinations.

    Choosing events →

Ampersand webhook best practices

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

subscribe.create.success · .update.success · .delete.success · .create.error +2

6 6
connection

connection.created · .refreshed · .updated · .deleted +1

5 5
read

read.backfill.done · .backfill.error · .schedule.paused · .triggered.done +1

5 4
installation

installation.created · .updated · .deleted

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.

Not affiliated with Ampersand. Facts are compiled from public sources and linked inline.