Call Objects
With the Vocode API in-progress and completed calls are accessible as Call
objects.
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Get information on in-progress and completed calls
calls = vocode_client.calls.list_calls()
const calls = await vocode.calls.listCalls();
curl --request GET \
--url https://api.vocode.dev/v1/calls/list \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer <API_KEY>'
[
{
id: 'call_id',
userId: 'user_id',
toNumber: '123456789',
fromNumber: '123456789',
agent: {
id: 'agent_id',
userId: 'user_id',
prompt: 'The assistant is having a pleasant conversation about life.',
actions: [],
voice: [Object],
initialMessage: undefined,
webhook: undefined
},
goal: undefined,
transcript: undefined,
recordingUrl: undefined,
status: 'ended',
errorMessage: undefined,
recordingAvailable: false
}
]
vocode_client.calls.get_call(id="CALL_ID")
const calls = await vocode.calls.getCall({ id: "CALL_ID" });
curl --request GET \
--url https://api.vocode.dev/v1/calls/recording/<CALL_ID> \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer <API_KEY>'
vocode_client.calls.get_recording(id="CALL_ID")
const calls = await vocode.calls.listCalls();
const recording = await vocode.calls.get_recording({ id: calls[0].id });
curl --request GET \
--url https://api.vocode.dev/v1/calls/recording/<CALL_ID> \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer <API_KEY>'
