Webhooks
Webhooks send the messages of your WhatsApp line to your own server. When your line receives or sends a message, Volt makes an HTTPS POST request to a URL you choose, with the message as JSON.
Use webhooks to connect your line to a bot, a CRM, or an internal tool that must react when a message arrives. If you want an AI assistant to read and send messages on request, use the MCP server instead.
How it works
- You add an HTTPS URL in Volt. This is your endpoint.
- Volt sends a signed test event. If your server answers
200, Volt saves the endpoint and shows its signing secret. You can see the secret again later with Show secret. - From then on, each new message of your line, and each reaction, edit or delete of a message Volt has stored, becomes one event for each endpoint that chose that event.
- Your server checks the signature, answers
2xx, and does its work.
What you get
- Five events:
message.receivedandmessage.sentfor new messages, andmessage.reaction,message.editedandmessage.deletedfor changes to a message. You choose which ones each endpoint receives. See Events. - Signed requests: every request follows the Standard Webhooks specification, so you can verify it with an existing library. See Verify Signatures.
- Retries: if your server does not answer
2xx, Volt tries again. Each event gets up to 8 attempts over about 24 hours. - A WhatsApp alert: if your endpoint stops answering, Volt tells you in WhatsApp.
Send messages from your server
Webhooks only bring messages to your server. To reply or send a message from your code, create an API key in App Store › Developer and call the send-message tool of the Volt MCP server. One HTTP request is enough:
curl https://mcp.voltchat.com/mcp \
-H "Authorization: Bearer $VOLT_API_KEY" \
-H "Content-Type: application/json" \
-H "Accept: application/json, text/event-stream" \
-d '{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "send-message",
"arguments": { "to": "5491155550101", "message": "Yes, we have it in stock." }
}
}'tois a phone number with country code, or a chat ID from an event (chat.id), groups too.- To quote the customer’s message, add
"reply_to": "<data.id of the event>"toarguments. - The answer comes as a
data:line with a JSON-RPCresult.isError: truemeans the message was not sent, and the text says why. - If your endpoint receives Messages sent, the message you send also arrives as a
message.sentevent.
Example: a customer writes “Do you have stock?”. Your server receives message.received, checks your inventory, and answers with send-message.
Each call counts as one MCP and API call. Paid plans have no limit.
Plans and limits
Webhooks are part of every paid plan, with no limit on events. The Free plan does not include webhooks: upgrade to add an endpoint.
| Paid plans | |
|---|---|
| Endpoints for each WhatsApp line | 5 |
| Delivered events | Unlimited |
If your account moves to the Free plan, your endpoints stay, but Volt stops sending events to them. Events start again when you upgrade.