How can I tell if voicemail detection was the reas...
# support
c
I can see it in the logs in the dashboard, but it doesn't look like I can retrieve logs from the get call API.
v
To determine if voicemail detection was the reason a call ended using the Get Calls endpoint, check the
endedReason
field in the API response. If its value is
voicemail
, this indicates the call was ended due to voicemail detection. Example:
Copy code
json
{
  "endedReason": "voicemail"
}
This field is designed to summarize the main reason for call termination, including voicemail scenarios. [See more details in the Vapi docs](https://docs.vapi.ai/calls/call-ended-reason) Sources: - [Call ended reasons Vapi Docs](https://docs.vapi.ai/calls/call-ended-reason) - [Get Call API Reference](https://docs.vapi.ai/api-reference/calls/get)
c
I am getting a "Customer Did Not Answer" for ended reason - and I need to be able to detect the machine detection results in the logs 14:54:44:258 [LOG] Customer detected as voicemail by
google
k
You can tell if voicemail detection ended a call by checking if the
endedReason
in the
GET /calls/{id}
response is `"voicemail" use webhooks or
serverMessages
to receive the full end-of-call report..