Skip to content

Latest commit

 

History

History
48 lines (30 loc) · 1.88 KB

File metadata and controls

48 lines (30 loc) · 1.88 KB

Catch HAIP webhooks in Make.com

Make (formerly Integromat) can receive HAIP entity.action webhooks and route them to hundreds of apps.

1. Subscribe in HAIP

Follow Webhooks & events:

POST /api/v1/connect/subscriptions
Authorization: (none — use x-api-key; see connect-api-key.md)

Include propertyId, callbackUrl, events, and a strong secret. Use POST /api/v1/connect/subscriptions/:id/test to send a sample event.

2. Custom webhook module

  1. Create a new scenario → WebhooksCustom webhook.
  2. Copy the generated URL into HAIP callbackUrl.
  3. Configure the webhook to accept POST with JSON body.

Run the scenario once so Make registers the webhook, then trigger HAIP’s test delivery.

3. Verify the signature

Read headers from the incoming request:

Header Use
X-HAIP-Signature HMAC-SHA256 of the raw body, prefixed with sha256=
X-HAIP-Event-Id Idempotency key
X-HAIP-Event-Type Same as JSON eventType

Implement verification in a Make Code module (JavaScript) using your subscription secret. Algorithm and sample code: Webhooks & events.

If verification fails, stop the scenario and return a non-2xx response so HAIP can retry per retries.

4. Map fields

Parse JSON fields: eventType, propertyId, entityId, data, timestamp. Branch routers on eventType or entityType.

For PII-heavy workflows, call HAIP REST endpoints with your integration credentials after the webhook (webhook alone does not grant API access).

5. Production notes

  • Respond with HTTP 200 quickly; defer heavy steps to later modules.
  • Store processed X-HAIP-Event-Id values (Data store module) to skip duplicates.
  • Monitor GET /api/v1/connect/subscriptions/:id/deliveries if deliveries fail.