# Zapier, Make and webhooks

> Connect Zapier or Make with a key, send Komplian events to any address with a signed webhook, and verify each delivery.

Source: https://docs.komplian.com/api/webhooks

Where: Account menu → Komplian Store → Integrations → Zapier or Make
Who: Owners and admins connect Zapier and Make. Managers add webhooks to forms and flows.
Plan: Growth+

There are three ways to send what happens in Komplian to your other tools: Zapier, Make, and a webhook from a form or a flow. Zapier and Make can also create leads in Komplian.

| Way | What it does | Plan |
| --- | --- | --- |
| **Zapier** | Your Zaps react to Komplian events and create leads. | Pro and Enterprise |
| **Make** | Your scenarios react to Komplian events, create and find leads, and create or track shipments. | Pro and Enterprise |
| **Webhook** | A form or a flow sends a JSON request to an address you choose, signed when you add a secret. | Growth and up |

Komplian has no general public REST API.

## Connect Zapier

### 1. Open Zapier in the Store
Open the menu under your name, choose **Komplian Store** and go to **Integrations → Zapier**.

### 2. Generate the key
Press **Generate key**. The key lets a Zap read Komplian events and create leads. Nothing else in your workspace is reachable with it.

### 3. Copy it now
Press **Copy key**. This is the only time the key is shown.

### 4. Use it in Zapier
In Zapier, add a Komplian trigger and paste the key when Zapier asks for it.

The page then lists **Events a Zap can subscribe to** and **Zaps listening**, each with its last delivery.

## Connect Make

### 1. Open Make in the Store
Open the menu under your name, choose **Komplian Store** and go to **Integrations → Make**.

### 2. Generate the key
Press **Generate API key**.

### 3. Copy it now
Copy the **API key** and the **Base URL**. This is the only time the key is shown.

### 4. Use it in Make
In Make, add an HTTP module. Set its URL to the **Base URL** plus the endpoint you need. Send the key in the `Authorization` header as `Bearer` followed by the key.

The page then lists **Events a scenario can subscribe to** and **Scenarios listening**. A scenario that keeps failing shows **Failing since** with the date and the error. A scenario that Make reports as deleted is removed from the list.

## Zapier and Make: events and actions

| | Zapier | Make |
| --- | --- | --- |
| Events | New lead, lead status changed, conversation started, message received, form submitted, order completed, cart abandoned | The same, with shipment status changed instead of cart abandoned |
| Actions in Komplian | Create a lead | Create a lead, find a lead, create or track a shipment |

## Replace or revoke a key

| Action | What happens |
| --- | --- |
| **Generate a new key** | The current key stops working at once. Every Zap or scenario using it needs the new key. |
| **Disconnect Make** | The key is revoked and every subscription is removed. Scenarios using it stop working. |

## Send a webhook

You can send data to any address from two places:

| From | Where you set it | When it sends |
| --- | --- | --- |
| A [form](https://docs.komplian.com/crm/forms) | The form's **Settings → Send to → Webhook** | Every time someone submits the form. |
| A [flow](https://docs.komplian.com/flows/actions) | An **Integration action** step with the Webhook destination | Every time a run reaches that step. |

Fill in **Signing secret (optional)** on the destination to sign each request. Without a secret, requests are sent unsigned.

## What Komplian sends

Each delivery is a `POST` with a JSON body:

```json
{
  "event": "FORM_SUBMISSION",
  "workspaceId": "...",
  "source": { "type": "FORM_SUBMISSION", "id": "..." },
  "idempotencyKey": "...",
  "sentAt": "2026-11-04T10:00:00.000Z",
  "data": { }
}
```

| Field | What it holds |
| --- | --- |
| `event` | What sent it: `FORM_SUBMISSION` for a form, `FLOW_EXECUTION` for a flow. |
| `workspaceId` | Your workspace. |
| `source` | The same `type`, and the `id` of the form response or flow run. |
| `idempotencyKey` | A unique key for the delivery. Use it to ignore a delivery you already processed. |
| `sentAt` | When it was sent. |
| `data` | The fields you mapped. A form with no mapping sends its answers. |

## Verify the signature

With a secret, each request carries the header `X-Komplian-Signature`. Its value is `sha256=` followed by the hex HMAC-SHA256 of the raw body, computed with your secret.

### 1. Read the raw body
Take the body exactly as received, before parsing the JSON.

### 2. Compute the signature
Compute HMAC-SHA256 of that body with your secret, as hex, and add `sha256=` in front.

### 3. Compare
Compare it with the header using a constant-time comparison. Reject the request if they differ.

```js
import crypto from 'node:crypto';

function isFromKomplian(rawBody, header, secret) {
  const expected = 'sha256=' + crypto.createHmac('sha256', secret).update(rawBody).digest('hex');
  return header?.length === expected.length &&
    crypto.timingSafeEqual(Buffer.from(header), Buffer.from(expected));
}
```

> [!NOTE]
> The flow's **HTTP Request** action is never signed. Use the Webhook destination when the receiver has to check that the request comes from Komplian.

## Related

- [All integrations](https://docs.komplian.com/integrations/overview): Every tool you can connect.
- [Actions](https://docs.komplian.com/flows/actions): The Integration action and the HTTP Request action.
- [Forms](https://docs.komplian.com/crm/forms): Send each response to a webhook.
