How to get call logs and call recording from API d...
# support
j
Unable to find any documentation related to this, can anyone share the link?
v
You can get call logs from the Vapi API using:
Copy code
bash
curl https://api.vapi.ai/logs \
  -H "Authorization: Bearer <token>"
To get a call's recording, fetch the call details and look for the `recordingUrl`:
Copy code
bash
curl https://api.vapi.ai/call/<call_id> \
  -H "Authorization: Bearer <token>"
Replace
<token>
and
<call_id>
as needed. See the [Get Logs](https://docs.vapi.ai/api-reference/logs/get) and [Get Call](https://docs.vapi.ai/api-reference/calls/get) docs for more info. Sources: - [Get Logs API documentation](https://docs.vapi.ai/api-reference/logs/get) - [Get Call API documentation](https://docs.vapi.ai/api-reference/calls/get)
j
@Vapi Support Bot get Logs is deprecated API
v
You are correct that the
/logs
endpoint is deprecated.
For call recordings, you can still use the
/call/<call_id>
endpoint to fetch call details and look for a
recordingUrl
([Get Call API documentation](https://docs.vapi.ai/api-reference/calls/get)). However, the documentation does not specify a replacement for the deprecated logs endpoint. Could you clarify if you are looking for a way to retrieve call logs specifically, or is access to call recordings sufficient for your use case? Sources: - [Get Logs API documentation](https://docs.vapi.ai/api-reference/logs/get) - [Get Call API documentation](https://docs.vapi.ai/api-reference/calls/get)
j
@Vapi Support Bot I am looking for APIs to fetch both, the call logs and call recordings. Also is there a way to fetch call logs without mentioning the call id?
v
Currently, the
/logs
endpoint for fetching call logs is deprecated and no replacement is documented.
You can still get call recordings by fetching call details with
/call/<call_id>
and looking for the
recordingUrl
. There is no documented way to fetch call logs in bulk or without specifying a call ID. Could you share more about your use case—are you looking to retrieve logs for all calls, or do you have specific filters in mind? Sources: - [Get Logs API documentation](https://docs.vapi.ai/api-reference/logs/get) - [Get Call API documentation](https://docs.vapi.ai/api-reference/calls/get)
j
I have a client side UI for the calls and I need to show them call logs and call recordings for previous calls @Vapi Support Bot
v
Currently, the
/logs
endpoint for call logs is deprecated and there is no documented replacement for fetching logs in bulk or without a call ID.
You can still retrieve call recordings by fetching call details with
/call/<call_id>
and looking for the
recordingUrl
([Get Call API documentation](https://docs.vapi.ai/api-reference/calls/get)). Quick question: Do you have access to the call IDs for the previous calls you want to display, or do you need an API to list all calls first? Sources: - [Get Call API documentation](https://docs.vapi.ai/api-reference/calls/get) - [Get Logs API documentation](https://docs.vapi.ai/api-reference/logs/get)
k
You can get call logs via GET /logs API and access call recordings through the recordingUrl sent in the end-of-call report with recordingEnabled set true.. https://docs.vapi.ai/api-reference/logs/get
2 Views