Skip to content
Linq Copy agent prompt

Call Voice

Read the carrier (BYOC) voice calls received on your phone numbers. Each record is the durable form of the call_voice.* webhooks for that call and shares the same id, so you can look a call up by the id a webhook delivered. See SIP Profiles for routing inbound calls to your endpoint.

List carrier (BYOC) voice calls for a phone number
client.CallVoice.List(ctx, phoneNumber, query) (*CallVoiceListResponse, error)
GET/v3/phone-numbers/{phoneNumber}/call-voice
Get a carrier (BYOC) voice call by ID
client.CallVoice.Get(ctx, callVoiceID) (*CallVoiceRecord, error)
GET/v3/call-voice/{callVoiceId}
ModelsExpand Collapse
type CallVoiceRecord struct{…}

A carrier (BYOC) inbound voice call. Mirrors the call_voice.* webhook payload.

ID string

Stable call id, identical to the id in the call_voice.* webhooks.

formatuuid
Direction CallVoiceRecordDirection
From string

External caller, E.164.

Status CallVoiceRecordStatus

Terminal call outcome. Null while the call is still in progress; set once it ends.

One of the following:
const CallVoiceRecordStatusCompleted CallVoiceRecordStatus = "completed"
const CallVoiceRecordStatusBusy CallVoiceRecordStatus = "busy"
const CallVoiceRecordStatusNoAnswer CallVoiceRecordStatus = "no_answer"
const CallVoiceRecordStatusFailed CallVoiceRecordStatus = "failed"
const CallVoiceRecordStatusCanceled CallVoiceRecordStatus = "canceled"
To string

Your line that was called, E.164.

EndedAt TimeOptional

When the call ended. Null while still in progress.

formatdate-time
StartedAt TimeOptional

When the call was answered. Null if it never connected.

formatdate-time