dl_amit
01/03/2025, 11:06 AMVapi
01/03/2025, 11:08 AMjson
{
"message": {
"type": "end-of-call-report",
"endedReason": "hangup" // This could be "voicemail", "disconnected", etc.
}
}
You should ensure that your server is set up to receive this POST request and process the information accordingly. If you have any specific requirements or need further assistance with handling these reports, please let me know!Vapi
01/03/2025, 11:08 AMdl_amit
01/03/2025, 11:09 AMVapi
01/03/2025, 11:09 AMendedReason
field in the end-of-call report can contain several possible values, each indicating a different reason for the call termination. Common values might include:
- `completed`: The call was answered and completed normally.
- `busy`: The line called was busy.
- `no-answer`: The call was not answered.
- `failed`: The call attempt failed due to a network or other technical issue.
- `rejected`: The call was rejected by the receiver.
- `voicemail`: The call was forwarded to voicemail.
- `canceled`: The call was canceled by the caller before it was answered.
- `disconnected`: The call was disconnected during the conversation, possibly due to connection issues.
Please note that the exact set of endedReason
values can vary depending on the specific implementation of the Voice API you are using. For the most accurate and comprehensive list, you should refer to the documentation provided with the API or contact support for more details.Shubham Bajaj
01/03/2025, 2:36 PMShubham Bajaj
01/03/2025, 2:38 PMUsing UI or Dashboard
From your dashboard, go to the Assistant section. Select the assistant, then navigate to the Advanced tab. Scroll down and look for server events. Finally, select the server event with the type "Status Update."dl_amit
01/04/2025, 3:52 PMdl_amit
01/06/2025, 11:01 AMVapi
01/06/2025, 11:01 AMdl_amit
01/06/2025, 1:17 PMVapi
01/06/2025, 1:17 PMjson
{
"event": "status-update",
"timestamp": "2023-04-14T12:34:56Z",
"conversationId": "CONVERSATION_ID",
"callId": "CALL_ID",
"status": {
"callStatus": "completed",
"callDuration": 120,
"endCause": "normal"
}
}
In this example:
- event
is the type of server event, which in this case is "status-update".
- timestamp
is the time at which the event occurred.
- conversationId
is the unique identifier for the conversation.
- callId
is the unique identifier for the call.
- status
is an object containing details about the call status:
- callStatus
could be "completed", "busy", "no-answer", "failed", "rejected", "voicemail", "canceled", "disconnected", etc.
- callDuration
is the duration of the call in seconds.
- endCause
provides more detail on why the call ended, such as "normal", "busy", "no answer", etc.
Please ensure that your server endpoint is set up to parse this JSON format. You should also refer to the VAPI documentation for the most accurate and detailed schema for the status update event, as the actual payload might contain additional fields or slightly different field names based on the version of the API you are using.dl_amit
01/06/2025, 1:18 PMVapi
01/06/2025, 1:18 PMcurl
, which is a command-line tool used for making network requests:
bash
curl -X POST https://your-server-url.com/status-update-endpoint \
-H "Content-Type: application/json" \
-d '{
"event": "status-update",
"timestamp": "2023-04-14T12:34:56Z",
"conversationId": "CONVERSATION_ID",
"callId": "CALL_ID",
"status": {
"callStatus": "completed",
"callDuration": 120,
"endCause": "normal"
}
}'
In this mock request:
- Replace https://your-server-url.com/status-update-endpoint
with the actual URL of your server endpoint that is set up to receive status updates.
- The -H
flag is used to set the Content-Type
header to application/json
, indicating that the payload is in JSON format.
- The -d
flag is used to pass the JSON payload, which you should format according to the schema provided by VAPI.
Please note that this is just a simulated example to illustrate what the HTTP request might look like. You would need to replace the placeholders with actual values when configuring your system to handle real requests from the VAPI platform.Shubham Bajaj
01/07/2025, 10:20 AM