POST request. Each result carries the call status, recording, the values of your post-call metrics and the contact’s own data, so you can update your CRM, trigger a follow-up or feed a report without polling.
Set up a webhook
A webhook is a URL registered once for your organization and then attached to the campaigns that should use it. Each organization can have up to 5 webhooks.1
Create the webhook
Register your endpoint URL in the dashboard, or with Create Webhook:
2
Attach it to a campaign
In the dashboard, add the webhook to the campaign under Track Call Outcomes. Through the API, set
pushingCrms when you upload a campaign or update one:3
Return 2xx from your endpoint
Respond with any
2xx status within 10 seconds. Do slow work, such as CRM writes, after you respond.Securing your endpoint
- If you set
bearerToken, every delivery includesAuthorization: Bearer <token>. Reject requests without it. - Deliveries come from a fixed weya IP address. If your firewall only accepts known addresses, ask weya for it.
- Only the URL and bearer token are used. Custom headers and body templates are not sent.
- Register the final URL of your endpoint. weya follows redirects, but a
301or302turns thePOSTinto aGET, so the body is lost.
Payload
Example payload
The ID of this attempt. Use it as your idempotency key: each attempt has its own
request_uuid.How the attempt ended. See call statuses.
One entry per post-call metric defined on the agent, each with
metric_name and metric_value.The contact’s variables, as uploaded: the columns of your CSV or the fields you sent in
callData.When the next attempt to this contact is scheduled, in the campaign’s timezone. Empty when no further attempt is scheduled.
When results are sent
weya sends one result per finished attempt with one of these statuses:completed, no-answer, busy, failed, voicemail, ivr, canceled, timeout or aborted. Attempts that were never dialled don’t produce a webhook.
The first delivery happens about five minutes after the call ends, so the recording and the transcript analysis are included. If the analysis still isn’t ready, weya checks again every three minutes for up to 30 minutes.
Retries
If your endpoint doesn’t return2xx, weya decides whether to try again from the response:
Retries wait 1 minute, 5 minutes, 15 minutes, 1 hour, 3 hours, 6 hours, then 12 hours, each with up to 10% random jitter. If you return a
Retry-After header, weya waits that long instead, between 30 seconds and 6 hours. Pick a response below to see the schedule.
Handling duplicates
Your endpoint can receive the same attempt more than once, for example when the recording arrives after the first delivery and weya re-sends the result with it. Treatrequest_uuid as the key: store the latest payload for each request_uuid and overwrite older ones.
Stop sending results
Remove the webhook from the campaign’s Track Call Outcomes, or delete the webhook to stop it in every campaign at once. Retries that are already scheduled may still arrive.Related
Post-call metrics
Define what goes into
call_analysis.Webhooks API
Create, list, update and delete webhooks.

