POST, so your CRM, Zapier, Make or n8n flow can check it came from SmartAlex. A failed delivery is retried for about 15 hours.
In SmartAlex: Settings → Webhooks & API, then Add webhook, Open or a webhook’s row in the Webhooks panel. That opens the Webhooks & API page (/developers) on its Webhooks tab. Workspace owners and admins add webhooks, and the workspace needs the Power Tools add-on.
How do I add a webhook?
1
Add the address
In Webhooks, press Add a webhook URL. Enter the Webhook URL, an optional Name, and tick the events under Send when. Press Add webhook.
2
Copy the signing secret
The Signing secret is shown only once. Copy it into your receiver’s settings now.
3
Send a test event
Press Send a test event on the webhook’s row. It sends a
test.ping event, and the result shows under Recent deliveries.Which events can I send?
What does a delivery look like?
Every event has the same envelope.data holds the record, here a contact:
status and channel (where the contact first came from). They carry latest_activity (their last call or message, in one line) and link too, which opens the contact in SmartAlex.
Each delivery carries these headers:
What does the Call finished event hold?
call.completed is sent once for each call, a few seconds after it ends. It says which call it was, who was called, how long it lasted and how it ended. It does not carry the summary or transcript: read those with the call_id (see How do I read the call afterwards?).
The event carries ids only, never the person’s name or number. Read the person with
GET /contacts/{id} and the contacts:read scope.
These are the outcomes you will see on campaign calls:
Less often you may see
timeout, invalid_number or blocked. Treat any value you do not recognise as not reached.
How do I check the signature?
Work out the HMAC-SHA256 of the raw request body with your signing secret and compare it withX-SmartAlex-Signature. Use the body exactly as it arrived, because parsing and re-encoding the JSON changes it. Here is Node.js with Express:
timestamp is set fresh on every attempt and the body is signed again. Refusing old timestamps stops a captured request being replayed later.
What happens when a delivery fails?
SmartAlex waits up to 10 seconds for a2xx answer. A timeout, any other status or a redirect counts as a failure, and the event is sent again. This diagram shows the schedule.
- An event is tried at most 6 times, over about 15 hours.
- A webhook is switched off after 10 failed attempts in a row and nothing delivered for 24 hours. A short outage does not switch it off.
- Answer
200as soon as you have stored the event, and do the slow work afterwards.
What addresses can receive webhooks?
The URL must usehttps and resolve to a public address. SmartAlex checks this again at every delivery, so an address that later points somewhere private is refused. Redirects are not followed.
How do I roll the signing secret?
Press Roll signing secret on the webhook’s row, then Roll secret. The new secret is shown once. The old one keeps working for 24 hours. During that day each delivery is signed with both, inX-SmartAlex-Signature and X-SmartAlex-Signature-Previous, so update your receiver within the day.
How do I send people into a campaign from my system?
A webhook carries events out of SmartAlex. To go the other way, give a running outbound campaign its own web address, and your system posts people to it to be called. This diagram shows the loop.1
Create the web address
A workspace owner or admin asks their connected AI app, for example “give my Demo Requests campaign a web address”. The app uses
smartalex_create_trigger_webhook, asks you to confirm the lawful basis for calling these people, and returns the address and a secret starting sa_whk_. The secret is shown once.2
Post people to it
{ "people": [ ... ] }. Each person is described under What can each person carry?.3
Get the results
Add a webhook for Call finished. Each call sends one
call.completed event with its call_id, contact_id and campaign_id. Then read the summary and transcript with GET /calls/{id}.409. A wrong secret answers 401. The campaign page shows the address under Trigger, with when it last received people and the daily limit.
What can each person carry?
Here are two people in one request:call_at is the earliest time, not an exact one. The call goes out at that time or after it, inside the campaign’s calling hours and after any wait set on the web address. Leave it out, or send a time that has passed, and the person is called as soon as the hours allow.
What does the web address answer?
A request that is read answers200 with one result per person, in the order you sent them:
received counts the people in the request, added counts those who joined the campaign, and skipped counts the rest by outcome. index is the person’s place in your list, counting from 0.
contact_id is the person’s id in SmartAlex, not a call id. No call exists yet when you post: the campaign calls the person later, inside its hours, and its call plan may try more than once. Every one of those calls sends Call finished with the same contact_id and campaign_id, so match on those two. Keep each contact_id next to your own reference. A number already in your contacts gets that contact’s id.
The
reason on an invalid result is one of phone_missing, phone_invalid, email_invalid, notes_invalid, notes_too_long, fields_invalid, call_at_invalid, call_at_too_far, event_id_invalid or not_an_object.
Other answers mean the whole request was refused:
What does the agent see on the call?
The agent is given each person’snotes and fields for their call, as background from your system and never as instructions. A reference you send in fields is there for the agent during the call, so it can use it with your own tools, such as your MCP server. The notes and fields belong to that campaign call only. They do not change the person’s notes in SmartAlex. If they read like an attempt to give the agent instructions, they are held back, and the agent asks the person what they need.
How do I read the call afterwards?
Call finished tells you that a call has ended. To get what was said, read the call from the REST API with itscall_id. The key needs the calls:read scope, which our support team adds (see Keys and scopes).
If
summary is null, read the call again a few minutes later. The call comes back without transcript when the person who made the key cannot see transcripts in SmartAlex.
Can I manage webhooks with the API?
Yes.GET /webhooks lists them with the webhooks:read scope, which owners and admins can put on a key. POST /webhooks and DELETE /webhooks/{id} need webhooks:manage, which our support team adds. See Keys and scopes.
Questions people ask
Can my system trigger calls and get the results back?
Can my system trigger calls and get the results back?
Yes. Give a running campaign a web address from your AI app, post people to it, and the campaign calls them. A webhook on Call finished sends each result back.
How do I know a webhook came from SmartAlex?
How do I know a webhook came from SmartAlex?
Work out the HMAC-SHA256 of the raw body with your signing secret and compare it with the
X-SmartAlex-Signature header. If they do not match, refuse the request.Why did my webhook stop?
Why did my webhook stop?
SmartAlex switches a webhook off after 10 failed attempts in a row with nothing delivered for 24 hours. Fix the address, then add the webhook again.
Can I get the same event twice?
Can I get the same event twice?
Yes, when a delivery is retried. Every attempt carries the same
id, so store the ids you have handled and skip repeats.Is the id the web address returns the call id?
Is the id the web address returns the call id?
No. It returns each person’s
contact_id, because their call has not happened yet. Each Call finished event carries that contact_id and the campaign_id beside its own call_id, so match on the contact and campaign.Does the agent see the notes and fields I send?
Does the agent see the notes and fields I send?
Yes. The agent has each person’s
notes and fields during their call, as background from your system, never as instructions.Related
Getting started
The REST API, for reading and changing data.
Automation with Zapier, Make and n8n
Connect webhooks to thousands of apps.
Keys and scopes
Scopes for managing webhooks by API.
Usage examples
Set up a webhook from an AI app.

