Send each call to your own system with a webhook
Connect a webhook so NextPhone POSTs each call as JSON to your URL: caller, summary, outcome, recording link and the caller’s answers.
Updated November 30, 2026 · 5 min read
On this page
Quick answer
- Open Custom Webhook from Browse integrations, at the bottom of the Actions page (in the dashboard sidebar, under Agent).
- Paste your endpoint under URL.
- If your server checks a secret, type it under Secret (optional).
- Choose Connect Webhook.
- On the Webhook card under After Call, choose Send test.
- Who can do this:
- anyone on the account
- You need:
- a public URL that accepts POST requests
When it is sent
After each call, your agent sends one POST request to your URL, with the call as JSON (Content-Type: application/json). Which calls on the card decides which calls are sent.
If you set a secret, every request carries it in an X-NextPhone-Secret header, so your server can check the request came from your agent.
Connect your webhook
Each line has its own webhook. With more than one line, pick it first, as in Add a second number or location.
- In the dashboard sidebar, under Agent, choose Actions.
- Under Integrations at the bottom of the page, choose Browse integrations. In the Automation group, pick Custom Webhook.
- Paste your endpoint under URL.
- If your server checks a secret, type it under Secret (optional).
- Choose Connect Webhook. The Webhook card opens under After Call.
- Choose Send test. The card shows Test payload sent when your server accepts it, or Failed, with your server’s status code when it answered.
The test sends a sample call shaped exactly like a real one, with your own question labels and sample answers.
The fields you can map
Who called, and the number they called from.
Your NextPhone line’s number.
The call summary and the full transcript.
How the call ended, such as NEW_LEAD, MESSAGE_CAPTURED, BOOKED or TRANSFERRED.
A link to the call’s page with the recording and transcript. Anyone with the link can open it, as in Find, share and download a call recording.
When the call started and ended, and its length in seconds, as text such as "145".
Each answer to your questions as its own field, named after the question’s label in lower case with underscores: Project type becomes project_type.
All the answers together, as JSON text keyed by label. Parse it, or map the answer fields above.
A question the caller did not answer sends no field. Labels are set in Choose the questions it asks callers, and renaming one renames its field.
Choose which calls are sent
- Right after connecting, on the Webhook card, under Which calls, choose Only specific calls, tick each call type you want (such as New lead or Message taken).
- Choose Save.
If your line has transfers, a Transfers table lets you send calls by who the call went to.
Change, pause or remove the webhook
On the Webhook card, edit Endpoint URL or Secret key and choose Save. The switch at the top of the card pauses and resumes sending.
Remove disconnects the webhook from the line. To connect one again, use Browse integrations.
If requests are not arriving
| What happens | What it means | How to fix it |
|---|---|---|
| Send test shows Failed with a number, such as Failed (401) | What it meansYour server answered the test with that error code. | How to fix itCheck the URL, and that your server accepts the request (including the secret) and returns a 2xx status. Then choose Send test again. |
| Send test says Could not resolve hostname | What it meansThe web address in the URL does not exist. | How to fix itCheck the URL for a typo, choose Save, then Send test. |
| Send test fails for an address on your own network, such as localhost or a private IP | What it meansYour agent sends only to public internet addresses. | How to fix itUse a public http or https URL for your endpoint. |
| The test arrives, but real calls do not | What it meansOn a real call your agent waits up to 5 seconds for your server to answer. Or that kind of call is not ticked, or the card’s switch is off. | How to fix itHave your server reply right away and do slow work afterwards. Check Which calls and the switch. |
| structured_data arrives as text, not an object | What it meansIt is sent as JSON text. | How to fix itParse it on your server, or map the one-field-per-answer fields instead. |
Common questions
Can I connect a webhook and Zapier or Make on the same line?
Yes. Each connection is separate, with its own settings.