One call — transcript, recording, outcome, cost
GET
https://server.heyrik.com/api/v1/calls/{id}Path parameters
idRequiredReplace {id} in the request URL with the value for this resource.
Headers
AuthorizationstringRequiredUse Bearer $HEYRIK_API_KEY with an account-scoped API key. Keep the key on your server.
Response
Explore the example values. This is not a complete response schema.
dataobjectExplore 13 properties
idstringExample "call_1dd990f7"
agency_idstringExample "agc_9f2a1c30"
directionstringExample "inbound"
statestringExample "ENDED"
caller_idstringExample "+919392780218"
started_atstringExample "2026-07-22T15:05:45.674Z"
ended_atstringExample "2026-07-22T15:06:22.113Z"
duration_secnumberExample 37
recording_urlstringExample "https://…/recordings/call_1dd990f7.mp3"
transcriptarrayExplore 2 example items
[0]objectExplore 3 properties
rolestringExample "assistant"
contentstringExample "Hi, thanks for calling Acme — how can I help?"
tsstringExample "…"
[1]objectExplore 3 properties
rolestringExample "user"
contentstringExample "I want to check my order status."
tsstringExample "…"
summarystringExample "Caller asked about order AC-8842; agent confirmed dispatch."
outcomestringExample "resolved"
credits_chargednumberExample 2.9167
GET/calls/{id}
cURL
curl https://server.heyrik.com/api/v1/calls/call_1dd990f7 \
-H "Authorization: Bearer $HEYRIK_API_KEY"Response example
JSON
{
"data": {
"id": "call_1dd990f7",
"agency_id": "agc_9f2a1c30",
"direction": "inbound",
"state": "ENDED",
"caller_id": "+919392780218",
"started_at": "2026-07-22T15:05:45.674Z",
"ended_at": "2026-07-22T15:06:22.113Z",
"duration_sec": 37,
"recording_url": "https://…/recordings/call_1dd990f7.mp3",
"transcript": [
{ "role": "assistant", "content": "Hi, thanks for calling Acme — how can I help?", "ts": "…" },
{ "role": "user", "content": "I want to check my order status.", "ts": "…" }
],
"summary": "Caller asked about order AC-8842; agent confirmed dispatch.",
"outcome": "resolved",
"credits_charged": 2.9167
}
}Illustrative examples · No live request is sent
