An incoming webhook is a web address another system, such as a website form or a lead vendor, posts to. Each request runs a call flow, which can create the lead. Build the flow in Automation → Call flows, create the webhook in Settings → Incoming webhooks, and give its URL and token to the other system.
Before you start
- Incoming webhooks are managed by workspace owners and admins, and by roles with Manage Settings.
- Building the flow, and choosing which flow a webhook runs, also take Telephony & AI and Manage Workflows.
- Creating leads works straight away. Steps that call or text need your workspace to be approved for calling. See Get your workspace approved for calling.
- If the other system is on Zapier, you may not need a webhook. See Connect Zapier and calendars.
Create a flow that starts on a webhook
- Open Automation → Call flows and press New call flow.
- Type a Flow name, such as Website leads.
- Under Starts with, choose An incoming webhook. This flow runs without a call.
- Press Create. Leave the flow as a draft for now: a draft runs nothing, so a test request is safe.
To have Adoptiv call the lead as soon as it arrives, choose An incoming webhook that calls the lead instead. A flow that starts on An incoming call can't be run by a webhook. For more on flows, see Build a call flow.
Create the webhook
- Open Settings → Incoming webhooks and press New webhook.
- Enter a Friendly Name, such as Website form.
- Leave Method on POST, unless the other system can only open a link (GET).
- A Token (optional) is already filled in. Press the copy button next to it and keep it safe. Once saved, it's shown again only after you confirm your password.
- Next to Webhook URL, press Generate and copy the URL.
- Under Call flow, choose your flow. It shows (draft) until you publish it.
- Press Create Webhook.
You can also set a Rate limit (requests / min) (blank means 120 a minute) and a Max payload (KB) (1,024 KB unless you set another, up to 5,120 KB).
How the other system proves who it is
Every request must carry one of these. A webhook with no token and no signing secret still answers, but it doesn't start its flow.
- Token: send it in an
x-webhook-tokenheader, asAuthorization: Bearer <token>, or as?token=on the URL. A website form can't send headers, so use Copy URL with token for it. Anyone who views the page's source can then see the token. - Signing secret: press Generate next to Signing Secret (optional). The sender adds
x-webhook-signature: sha256=<hex>, the HMAC-SHA256 of the raw body with the secret, in lowercase hex. To stop replays, it can also sendx-webhook-timestamp(Unix seconds) and sign<timestamp>.<body>instead. Requests more than five minutes old are then refused. Once a webhook has a signing secret, only a valid signature is accepted: its token and API keys no longer work on it. - Workspace API key: one
adk_…key works on every webhook without a signing secret, sent asAuthorization: Bearer adk_…orx-webhook-token. See Manage API keys.
What to send
Send a JSON body, a form post (application/x-www-form-urlencoded), or, to a GET webhook, fields in the query string. For example:
{"first_name": "Dana", "last_name": "Reyes", "phone": "+15555550123", "email": "[email protected]"}
Each field becomes a variable in the flow, such as {{webhook.first_name}}. Nested fields use dots, such as {{webhook.customer.phone}}. A field name with spaces also gets an underscore version: First Name becomes {{webhook.First_Name}}.
The same POST body twice within 24 hours is skipped as a duplicate (a GET request is only checked when it sends the header below). To decide that yourself, send a unique Idempotency-Key (or X-Idempotency-Key) header with each lead.
Map the fields and publish
- Send one test request from the other system. Your flow is still a draft, so nothing runs, but Adoptiv keeps the fields it received.
- In Settings → Incoming webhooks, press Edit on the webhook. Under Caller number field, choose the field that holds the lead's phone number and press Save Changes. Without it, the flow can't find the lead by phone, or call or text them.
- Open the flow, add Create Lead from CRM Actions and connect Entry to it.
- Choose the Program and Lead source, and what to do If a lead already exists with this phone or email. The default, Use it as-is - ignore the fields below, writes nothing to a lead that already exists. To apply your mapping, choose Update it with the fields below or Only fill fields that are empty on it.
- Under Field mapping, press Auto-map and check each row. You can also type a variable, such as
{{webhook.email}}, into a field. - Press Publish.

What the sender gets back
| Answer | What it means |
|---|---|
200 {"ok": true} | Accepted. The flow runs a moment later, so the lead may not exist yet. |
200 {"ok": true, "idempotent": true} | A duplicate of a request from the last 24 hours. Nothing ran again. |
401 | The token, API key or signature was missing or wrong, or the timestamp was too old. |
403 | The webhook is Inactive, or the workspace is suspended. |
404 | No webhook has that URL. |
405 | The wrong method: GET to a POST webhook, or the other way round. |
413 | The body is larger than Max payload (KB). |
429 | Over the rate limit, or 30 failed attempts from one address in a minute. Retry in a minute. |
503 | Adoptiv couldn't take it just then. Retry after the Retry-After seconds. |
Errors carry a short message, such as {"error": "Invalid or missing token"}.
Check what arrived
- In Settings → Incoming webhooks, click the webhook's row.
- Under Recent requests, open one to see its payload, headers and outcome, such as Delivered, Duplicate, skipped, Accepted, flow failed or Rejected. Tokens and signatures are hidden.
- Press View all deliveries to filter by outcome and day.
To stop a webhook for now, Edit it and set Status to Inactive. Delete webhook asks you to type its name and stops its URL at once. Getting a new URL with Regenerate also retires the old one when you save, so every sender needs the new URL.