Learn how to set up your server to receive and respond to messages from Vapi.
Server URL
. This is your server’s URL that the assistant will use when sending status updates, performing function calls, and more.POST
requests with the following body:
messages
. Here’s an example of what the assistant might look like:
async: true
parameter in your assitant’s function configuration. This will prevent the assistant from waiting for a response from your server.assistantId
, Vapi will attempt to retrieve the assistant from your server.
POST
requests to the Server URL with the following body:
in-progress
: The call has started.forwarding
: The call is about to be forwarded to forwardingPhoneNumber
.ended
: The call has ended.POST
request to the Server URL with the following body:
endedReason
can be any of the options defined on the Call Object.
POST
requests to the Server URL with the following body: