Get a call recording and transcript
const url = 'https://api.pingram.io/voice/calls/example';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://api.pingram.io/voice/calls/example \ --header 'Authorization: Bearer <token>'Get a call with transcript timeline and recording playback URL
Authorizations
Parameters
Path Parameters
Call tracking id
Responses
200
Successful response
object
object
Set when the callee answers. Absent while the phone is still ringing.
Machine-readable reason the call ended — persisted on every call record.
Short human-readable detail, such as why the call failed.
Live call socket. Present while the call is active.
Token for the live call socket. Present while the call is active.
Full chronological timeline (transcript + ops events).
Chronological call timeline entry — transcript turns and operational events share one stream, sorted by offsetMs.
Speech: type is ‘user’ | ‘assistant’ | ‘tool’ with text. Ops: type is an event name (session_created, barge_in_cancel, …) with optional detail.
object
object
object
What was requested when the call was placed. Stored on the call row.
object
One spoken line.
object
Call recording. Omitted means off.
Single mixes every channel into one stream. multichannel transcribes each channel. Omitted means off.
object
object
Customer-facing cost for this call.
object
One line in the call cost breakdown.
object
AI model vendor when applicable; omitted for phone-line charges.
Example
{ "call": { "status": "active", "direction": "inbound", "source": "pstn", "outcome": "completed", "endReason": "user_hangup", "setup": { "script": [ { "verb": "Say" } ], "transcript": "single", "stream": { "transcript": "single" }, "voicemailAction": "hangup" } }}400
Bad Request - validation errors, invalid input
Standard error response for API errors.
object
Unique tracking ID for the request.
Structured error details for API error responses.
object
Machine-readable error code.
Human-readable error message.
Actionable hint for fixing the error.
Examplegenerated
{ "trackingId": "example", "error": { "code": "example", "message": "example", "fix": "example" }}401
Unauthorized
402
Payment Required - usage limits exceeded
Standard error response for API errors.
object
Unique tracking ID for the request.
Structured error details for API error responses.
object
Machine-readable error code.
Human-readable error message.
Actionable hint for fixing the error.
Examplegenerated
{ "trackingId": "example", "error": { "code": "example", "message": "example", "fix": "example" }}500
Internal Server Error
502
Bad Gateway - provider error
Standard error response for API errors.
object
Unique tracking ID for the request.
Structured error details for API error responses.
object
Machine-readable error code.
Human-readable error message.
Actionable hint for fixing the error.
Examplegenerated
{ "trackingId": "example", "error": { "code": "example", "message": "example", "fix": "example" }}