Vapi integration
Endpoint
Section titled “Endpoint”POST https://app.hiredispatcher.com/api/webhooks/vapi
Setup steps
Section titled “Setup steps”- In Vapi, open your assistant.
- Add Server URL tools/functions.
- Point tool calls to Dispatcher endpoint.
- Ensure
assistantIdis present incall.metadata. - Enable webhook signing and send
x-vapi-signature.
Authentication
Section titled “Authentication”- Required header:
x-vapi-signature - Dispatcher rejects unsigned requests.
Supported function names
Section titled “Supported function names”checkAvailabilitybookAppointmentgetServiceTypestransferToHuman
Example request
Section titled “Example request”{ "message": { "type": "function-call", "functionCall": { "name": "bookAppointment", "parameters": { "date": "2026-03-15", "time": "09:00", "serviceType": "HVAC Repair", "customerName": "John Smith", "customerPhone": "+15551234567", "urgency": "routine" } }, "call": { "id": "call_abc123", "metadata": { "assistantId": "asst_456" } } }}Example response
Section titled “Example response”{ "result": { "confirmed": true, "dispatchRequestId": "dsp_xyz789", "message": "Appointment booked for 2026-03-15 at 09:00." }}Testing
Section titled “Testing”Run a live test call in Vapi and verify tool-call responses are returned synchronously.