Skip to main content
A webhook connector is a delivery target: when a pipeline action fires, equate POSTs the result to your endpoint. Gate the action by outcome to, say, push auto-matched invoices straight into your back office while the rest go to a human. This page is the integration contract. If you are the engineer receiving the hook, the checklist at the end is everything you need to decide and build.

What you’ll need

Creating the connector

1

Endpoint URL

The https URL equate should POST to. It must be publicly reachable; private and link-local addresses are refused, and redirects are not followed.
2

Signing secret

Press Generate and copy the value into your system, or paste one you minted. Stored encrypted, never shown again, rotatable at any time with an overlap window.
3

Authentication (Additional security)

Open Additional security to say how your endpoint checks it’s us (see Authentication). Leave it on None if the signature alone is enough for you.
4

Test connection

Sends a test POST through exactly the path deliveries take: the same authentication (including the OAuth token exchange) and the same signatures. The body is {"test": true, "source": "equate", "at": "<ISO time>"} and the request carries X-Equate-Test: true, so you can recognise and discard it.
5

Attach it to a pipeline

Add a Webhook action in the pipeline builder, pick this connector, choose which outcomes trigger it (auto-matched, needs review, failed or flagged), and shape the payload.
Connectors are managed by workspace admins and members with the Technical role. Admins also see every signing secret and stored credential in one place under Organisation → Keys & secrets.

Authentication

Two independent layers protect a delivery. Authentication is how your endpoint recognises the caller: a credential you issue us, sent on every request. Signing is how it verifies the message: an HMAC over the body with a shared secret. Use both; the signature is sent whichever authentication you choose.
  1. In your user pool, add a resource server (for example identifier equate) with a custom scope such as invoices/write.
  2. Create an app client for equate with a client secret, the client credentials flow enabled, and that scope allowed.
  3. On the connector, choose OAuth 2.0 client credentials and enter the token endpoint (https://<your-domain>.auth.<region>.amazoncognito.com/oauth2/token), the client id, the client secret and the scope (equate/invoices/write).
  4. Protect your endpoint with a Cognito authorizer (API Gateway) or validate the JWT yourself. Test connection performs the token exchange and the POST, so a green test means the whole chain works.
Cognito access tokens last an hour by default; equate fetches a new one about a minute before expiry, so you’ll see roughly one token request an hour per connector, not one per invoice.
Credentials are encrypted with AES-256-GCM before they reach our database, under a key that lives only in the application environment. They are never displayed again; to change one, edit the connector and enter the new value.

The delivery

Each delivery is a JSON POST. The data object always carries jobId and reference; everything else is opt-in per pipeline action, so the payload can be as small as you like:
  • data is shaped in the pipeline action: toggle the match result, the per-field match breakdown, the invoice fields (extractedData) and the matched booking’s fields (bookingData, null when no booking was found) on or off, pick exactly which invoice and booking fields to include, and add fixed key/values of your own (a flag such as "source": "equate" or a system identifier, the same on every delivery from that pipeline). A pipeline per document family (flights, hotels) with its own fixed values is the usual way to tell them apart.
  • matchResult always has the same six fields when the action includes it: The booking’s other fields go in bookingData, when the action includes them.
  • artifacts are document links, present only when the action asks for documents. Webhooks carry links, never file bytes. Each one has:
  • The body can instead be XML, CSV or TXT (payloadFormat on the action); then the data is serialised directly with a matching Content-Type, with no envelope.

Headers

Both signature headers are present whenever the connector has a signing secret.

Verifying the signature

X-Equate-Signature is t=<timestamp>,v1=<signature> where the signature is HMAC-SHA256 (hex) with your signing secret over the string `${t}.${rawBody}`: the timestamp, a full stop, then the raw request body exactly as received (don’t parse and re-serialise it first). Reject anything whose timestamp is more than 5 minutes from your clock, which is what stops a captured request being replayed.
In an AWS Lambda authorizer or API Gateway, read the raw body before any JSON parsing and the header case-insensitively (x-equate-signature). A receiver that still checks X-Signature-256 computes sha256= + HMAC-SHA256(secret, rawBody); that header has no timestamp, so pair it with the Idempotency-Key to refuse repeats.

Rotating the signing secret

Rotate from the connector page or Organisation → Keys & secrets. You choose, or let us generate, the new secret, and an overlap window (1 hour to 7 days, 24 hours by default):
  1. From the moment you rotate, every request carries two v1 signatures: the new secret’s first, then the previous secret’s. X-Signature-256 switches to the new secret immediately.
  2. Deploy the new secret on your side whenever suits you inside the window. A verifier that accepts any matching v1 (as the sample above does) passes throughout.
  3. When the window closes, or when you press Finish rotation now, the previous secret stops signing.
Rotation is logged in the audit log (who, when, the window). The secret is shown once, at rotation, and never again.

Retries and failure

A non-2xx response (or a timeout) marks the delivery failed and it is retried with backoff. A 429, or a 503 with Retry-After, is treated as “slow down”: the job is held and retried after the delay rather than counted as a failure. Repeated failures park the job as ACTION_FAILED: it keeps its match and shows in Processed with a Delivery Failed badge. Logs → Outbound shows the request we sent, how it authenticated, and the response we received; fix the endpoint, then re-send it from there.
Respond 2xx as soon as you’ve stored the payload; do your downstream processing asynchronously. Slow endpoints look like failures and trigger retries, which is what the Idempotency-Key is for.
When the action includes documents (the processed invoice, a paired client copy, other files from the same email), each artifacts[].url is a signed, expiring link served from equate’s own domain. No storage backend URL is ever exposed. The lifetime is set per action: 1 hour by default, anywhere from 1 minute to 7 days. An expired link returns 404.

If a download fails

Store two ids from the delivery, not the link: data.jobId and the document’s artifacts[].id. With those you can get a fresh link at any time, without waiting for the delivery to be sent again:
Leave the document id off (/api/v1/invoices/<jobId>/documents) to list every document held for the invoice, each with its id and a fresh link. That list can be longer than the delivery’s artifacts: an action sends only the documents it was set to send, and the list has all of them.
  • jobId is on every delivery, whatever fields the action sends. The document id is on every entry in artifacts.
  • Call it as often as you need. Each call returns a new link and leaves earlier ones working until they expire. ?ttl=<seconds> sets the lifetime (60 to 604800, one hour by default).
  • Authenticate with an API key from Organisation → Keys & secrets (see API keys). The links themselves need no key.
  • 404 means the invoice isn’t in your workspace, the document isn’t one of that invoice’s, or your retention period has removed the file. A removed file can’t be recovered, so there is nothing to retry.
A sensible receiver: download each artifacts[].url when the delivery arrives. On a failure (a timeout, a 404 from the link, a 5xx), wait, ask for a fresh link by id and try that. After a few attempts with backoff, raise it on your side with the jobId and the document id. See the API reference for one document and all of an invoice’s documents.

Network

Deliveries come from equate’s hosting in the EU (Dublin) over https. Outbound addresses are not fixed by default, so prefer authenticating the request (signature plus one of the authentication options) over IP allow-listing. If your security policy requires a fixed source address, ask us: deliveries to your workspace’s webhooks and APIs can be routed through a static address. See connector security for what is encrypted, what is verified and how every credential is rotated, across all connectors.

Onboarding checklist

Agree these with equate and the integration is specified:
  • Endpoint URL (https, accepts POST, replies 2xx fast).
  • Authentication: none / API key header / bearer / basic / OAuth 2.0 client credentials. For OAuth: token endpoint, client id, client secret, scope.
  • Signing secret: generated by equate or minted by you; where it lives on your side; who rotates it and how often (the overlap window makes this painless).
  • Payload: which fields, any fixed key/values, JSON or another format.
  • Documents: include them or not, and the link lifetime. Store jobId and each document’s id so a failed download can be retried with a fresh link.
  • Outcomes that trigger the hook (auto-matched, needs review, failed or flagged).
  • On your side: verify X-Equate-Signature (5-minute tolerance), dedupe on Idempotency-Key, ignore X-Equate-Test, return 429 or 503 + Retry-After when you need us to back off.

Next: shape what gets sent

Actions are gated by outcome and configured per pipeline.