W Wiretalk Docs
Developer documentation

Webhooks

Receive real-time events in your backend when visitors chat or tickets change.

Full API reference: See REST API docs → Webhooks for payload schemas, signature verification, and all event types.

Set up a webhook

1
Dashboard → Integrations → Webhooks
2
Add your HTTPS endpoint URL (must be publicly reachable)
3
Select events (visitor message, agent reply, ticket created, etc.)
4
Click Send test and verify your server returns 2xx

Popular events

EventWhen it fires
conversation.startedVisitor opens a new chat
message.receivedVisitor sends a message
message.sentAgent replies (text, attachment, canned)
conversation.closedChat is closed by agent or visitor
ticket.createdNew support ticket (Pro plan)

Delivery & queue worker

Webhooks are delivered asynchronously. Your Wiretalk server must run a queue worker:

php artisan queue:work

If webhooks show Never sent, the queue worker is likely not running. See troubleshooting → Webhooks.

Verify signatures

Each delivery includes X-Wiretalk-Signature. Verify HMAC-SHA256 with your webhook secret before processing. Full example in the API docs.

Alternative: REST API polling

If you cannot receive webhooks, poll GET /api/v1/conversations with an API key. See the REST API reference.