Skip to content
Help

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

  1. Open Custom Webhook from Browse integrations, at the bottom of the Actions page (in the dashboard sidebar, under Agent).
  2. Paste your endpoint under URL.
  3. If your server checks a secret, type it under Secret (optional).
  4. Choose Connect Webhook.
  5. On the Webhook card under After Call, choose Send test.
Open Actions Opens this screen in your dashboard. You may be asked to sign in.
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.

  1. In the dashboard sidebar, under Agent, choose Actions.
  2. Under Integrations at the bottom of the page, choose Browse integrations. In the Automation group, pick Custom Webhook.
  3. Paste your endpoint under URL.
  4. If your server checks a secret, type it under Secret (optional).
  5. Choose Connect Webhook. The Webhook card opens under After Call.
  6. 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.
Custom Webhook in the integrations window: your URL, an optional secret, then Connect Webhook.

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

caller_name, caller_number

Who called, and the number they called from.

receiving_number

Your NextPhone line’s number.

summary, transcript

The call summary and the full transcript.

outcome

How the call ended, such as NEW_LEAD, MESSAGE_CAPTURED, BOOKED or TRANSFERRED.

recording_url

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.

started_at, ended_at, call_duration

When the call started and ended, and its length in seconds, as text such as "145".

One field per answer

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.

structured_data

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

  1. 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).
  2. 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

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 hostnameWhat 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 IPWhat 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 notWhat 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 objectWhat 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.

Related
Choose the questions it asks callersWebhooks: Send NextPhone Call Data To Your Own System
Was this helpful?
Still stuck?
Email support