HeyServo posts signed JSON to your URL when something happens: a conversation starts, a lead is captured, a ticket moves. Your CRM or automation can react straight away.
Where
Workspace menuDeployDevelopersWebhooks
Permission
Needs Manage keys and webhooks
Time
11 min read
Markdown
app.heyservo.ai/workspace/developers?tab=webhooks
DevelopersAsk HandymanDocsOW
Developers
API keys and webhooks for every agent in the workspace.
API keysWebhooksMCP & OAuth
Events are posted to these addresses, signed with each endpoint's own secret.
Add endpoint
EndpointEventsAgentsStatusLast delivery
https://ops.goldenoven.com/hooks/tickets2 eventsGolden OvenActive8 min ago
Guide
01 / 05Add an endpoint.On DevelopersWebhooks, click Add endpoint.
Add an endpoint. On DevelopersWebhooks, click Add endpoint.
Where, and for which assistants. Paste your receiver's URL. Leave Agents empty to hear every assistant.
Pick the events. Tick what your system cares about. Here: new leads and handovers.
A test event goes out. HeyServo sends webhook.test to the URL as soon as you add it.
Check the deliveries. Every endpoint's row menu has Deliveries, with Send again for any delivery.
The story
How a delivery works
From something happening in a conversation to your server accepting the delivery, and what happens when it cannot.
1
A lead is captured
Layla asks Golden Oven's assistant about a custom cake on WhatsApp and leaves her name and number. When the conversation is finished, HeyServo writes it up as a lead and scores it.
That is a lead.captured event. Every endpoint subscribed to it, for this assistant or for all assistants, gets a delivery.
2
HeyServo posts to your URL
Within seconds, HeyServo sends a POST to each subscribed endpoint. The body is an envelope: an event id, the type, when it was created, the assistant, and data with the lead's details.
The headers say which event it is (X-Molly-Event), which delivery this is (X-Molly-Delivery-Id) and how to prove it came from HeyServo (X-Molly-Signature).
3
Your server checks the signature
Your receiver takes t from the signature header, joins it with a dot to the raw body exactly as received, and signs that with the endpoint's signing secret. If the result matches v1, the delivery is genuine.
Checking that t is recent stops someone replaying an old delivery. HeyServo does not set a window: five minutes is a common choice.
4
200: delivered
Your server answers quickly with a 2xx. The delivery shows as Delivered on the endpoint's Deliveries sheet. Do slow work, such as creating the CRM contact, after you answer.
Use X-Molly-Delivery-Id to ignore a delivery you have already handled: delivery is at least once.
5
If your server is down
A timeout or an answer of 400 or more is a failure. HeyServo retries after 30 seconds, 2 minutes, 8 minutes, 30 minutes and 2 hours.
If the sixth attempt also fails, the delivery is marked Failed and the whole endpoint is paused until you resume it.
The customer
9:41
GGolden Ovenonline
Hi, do you do custom cakes for 40 people? It's for my sister's engagement.
We do. For 40 people we suggest a two-tier cake. What date is the party?
14 December. I'm Layla, 050 123 4567
Message
Your server
crm.goldenoven.com
01 / 05A lead is captured.Layla's conversation ends and the assistant writes it up as a hot lead.
A lead is captured. Layla's conversation ends and the assistant writes it up as a hot lead.
HeyServo posts to your URL. A JSON POST with the event's type, a delivery id and a signature in the headers.
Your server checks the signature. An HMAC-SHA256 of the timestamp and the raw body, with the endpoint's secret.
200: delivered. Any answer below 400 counts as delivered.
If your server is down. HeyServo tries again, waiting longer each time, up to 6 attempts.
Scroll to play
What webhooks are
A webhook endpoint is an address on your server that HeyServo calls when an event you subscribed to happens. Endpoints belong to the workspace. Each can hear every assistant, including ones added later, or only the assistants you pick. Each has its own signing secret, so your server can prove a delivery came from HeyServo.
Webhooks tell you what happened. To tell an assistant something happened in your app, use the Events API. To read data whenever you like, use the Read API.
Add an endpoint
GoalAn endpoint that receives the events you picked, with a test delivery already through.
1
Open DevelopersWebhooks and click Add endpoint
2
Paste the URL
A public http or https address. Addresses on private networks are refused.
3
Add a Description if you like
For example CRM sync.
4
Choose Agents
Leave it empty to receive every assistant's events, including assistants added later. Or find and pick the ones you want.
5
Tick the Events
Each event shows when it fires. Select all and Clear help with long lists.
6
Click Add endpoint
A webhook.test delivery goes out at once. You see "Endpoint added. The test event went through." or "Endpoint added, but the test event failed".
7
Copy the signing secret
Open the endpoint's row menu, choose Signing secret, click Reveal and copy it into your server's secrets.
Add an endpoint, Edit endpoint5 controls
URLText
Where deliveries go. Must start with http:// or https:// and be reachable on the public internet.
DescriptionText
Optional. Your label.
AgentsList
Which assistants' events. Empty means every assistant, now and later.
EventsList
The event types this endpoint hears. See the list below.
ActiveSwitch
Edit only. Off stops deliveries. Turning it back on also clears a pause after repeated failures.
Default On
Event types
These are every event you can subscribe to, with the line the picker shows and the fields in data.
The event's id: evt_ and 20 hex characters. Sending a delivery again keeps the same id.
typeText
The event type.
created_atTime
When it happened, ISO 8601 in UTC.
agent_idText
The assistant, or null for workspace events.
dataText
The event's fields.
Headers4 controls
Content-TypeText
application/json
X-Molly-EventText
The event type.
X-Molly-Delivery-IdText
A unique id for this delivery. Use it to ignore repeats.
X-Molly-SignatureText
t=<unix seconds>,v1=<hex HMAC-SHA256>.
Verify the signature
Each endpoint has a signing secret that starts with whsec_. The v1 value is an HMAC-SHA256, in hex, of the timestamp t, a dot, and the raw request body, signed with that secret. Compute it yourself and compare.
Read X-Molly-Signature and split it into t and v1.
Take the raw body bytes exactly as received, before any JSON parsing.
Compute HMAC-SHA256 of t + "." + body with your secret, as hex.
Compare it with v1 in constant time.
Check t is recent, to refuse replays. HeyServo does not set a window; five minutes is common.
Parse the body only after the signature checks out.
The signing secret
Signing secret dialog2 controls
RevealButton
Shows the secret. Copy it with the copy button: Secret copied.
RotateButton
Makes a new secret at once. Receivers verifying with the old secret reject deliveries until they're updated. There is no overlap period.
Retries and failures
Any HTTP status below 400 counts as delivered. Redirects are not followed, so a 3xx also counts as delivered: point the URL at the final address.
Each POST may take up to 20 seconds in all. Answer first, then do slow work.
Delivery is at least once. Ignore a X-Molly-Delivery-Id you have already handled.
Sending events never slows down or breaks a conversation.
Attempt
If it fails, the next try is after
1
30 seconds
2
2 minutes
3
8 minutes
4
30 minutes
5
2 hours
6
No more tries: the delivery is Failed and the endpoint is paused
ActiveOn, and the last delivery went through.
FailingOn, but the last delivery got an answer of 400 or more. Retries are under way.
PausedHeyServo paused it after six failed attempts in a row. Resume it when your receiver works again.
DisabledTurned off: you chose Pause or switched Active off.
Deliveries and sending again
Choose Deliveries in an endpoint's row menu to see its last 20 deliveries: status (Delivered, Failed or Pending), when, how many attempts, the HTTP code and how long your server took.
GoalA delivery sent again to your endpoint.
1
Open the endpoint's row menu and choose Deliveries
2
Find the delivery and click Send again
You see Queued to send again. It goes out with the same payload and envelope id, and a new delivery id.
Edit, pause and delete
Row menu5 controls
EditButton
Change the URL, description, assistants, events or the Active switch.
Signing secretButton
Reveal, copy or rotate the secret.
DeliveriesButton
The last 20 deliveries, with Send again.
Pause, ResumeButton
Stop or restart deliveries: Endpoint paused, Endpoint resumed.
DeleteButton
Events stop going to the URL. This can't be undone.
Endpoint list columns5 controls
EndpointShown
The URL.
EventsShown
How many events it hears.
AgentsShown
All agents, or the assistants it hears. An assistant you cannot see shows as Another agent.
StatusShown
Active, Failing, Paused or Disabled.
Last deliveryShown
When the last delivery was made.
Creating, editing and deleting endpoints needs Manage keys and webhooks. Someone with only See webhooks sees the endpoints that hear one of their assistants, and only those assistants' deliveries.