Get a call
GET a call details from a specific voice channel.
GET
/workspaces/{workspaceId}/channels/{channelId}/calls/{callId}
Get a channel call
Payload respons
id
string
wajib
channelId
string
wajib
from
string
wajib
to
string
wajib
originator
object
wajib
Tampilkan atribut turunan
originator.contact
object
Tampilkan atribut turunan
originator.contact.id
string
wajib
originator.contact.identifierKey
string
wajib
originator.contact.identifierValue
string
wajib
originator.number
object
wajib
Tampilkan atribut turunan
originator.number.type
string
wajib
Possible values: pstn, sip, webrtc
originator.number.number
string
wajib
originator.number.anonymous
boolean
originator.number.callerIdName
string
originator.number.identity
string
originator.number.countryIsoCode
string
originator.number.pstnNumberType
string
receiver
object
wajib
Tampilkan atribut turunan
receiver.contact
object
Tampilkan atribut turunan
receiver.contact.id
string
wajib
receiver.contact.identifierKey
string
wajib
receiver.contact.identifierValue
string
wajib
receiver.number
object
wajib
Tampilkan atribut turunan
receiver.number.type
string
wajib
Possible values: pstn, sip, webrtc
receiver.number.number
string
wajib
receiver.number.anonymous
boolean
receiver.number.callerIdName
string
receiver.number.identity
string
receiver.number.countryIsoCode
string
receiver.number.pstnNumberType
string
parentId
string
direction
string
wajib
Possible values: incoming, outgoing
status
string
wajib
Possible values: accepted, starting, ringing, ongoing, completed, busy, no-answer, failed, cancelled, scheduled
reason
string
type
string
wajib
Possible values: pstn, sip, webrtc
duration
integer
hangupCauseCode
integer
hangupSource
string
Possible values: callee, caller, api, timeout, media-timeout, none
hangupSipCode
string
createdAt
string
wajib
updatedAt
string
wajib
ringingAt
string
answeredAt
string
endedAt
string
scheduledFor
string
callFlow
object
Tampilkan atribut turunan
callFlow.id
string
callFlow.commands
array of object
Tampilkan atribut turunan
callFlow.commands.id
string
callFlow.commands.callId
string
callFlow.commands.callFlowId
string
callFlow.commands.status
string
callFlow.commands.command
string
callFlow.commands.conditions
array of object
Tampilkan atribut turunan
callFlow.commands.conditions.variable
string
Possible values: keys, speech
callFlow.commands.conditions.operator
string
Possible values: eq, ne, ==, !=, contains
callFlow.commands.conditions.value
string
notification
object
Tampilkan atribut turunan
notification.url
string
qualityInsights
object
Tampilkan atribut turunan
qualityInsights.mos
string
qualityInsights.pdd
string
sipInsights
object
Tampilkan atribut turunan
sipInsights.hangupSipCode
string
sipInsights.edgeRegion
string
sipInsights.providerName
string
sipInsights.userAgent
string
sipInsights.remoteSignallingIp
string
sipInsights.remoteMediaIp
string
amdResult
object
Tampilkan atribut turunan
amdResult.result
string
Possible values: human, machine, noSpeech, beep, unknown
amdResult.speech
string
amdResult.locale
string
sipType
string
Possible values: elastic, byoc, forward
tags
array of string
Tags to associate with the call. Tags are converted to lower case and tags
that do not exist are automatically created. You can view your created tags
in the UI. You can specify up to 10 tags per call.
Contoh kode
curl -X GET 'https://api.bird.com/workspaces/{workspaceId}/channels/{channelId}/calls/{callId}' \
-H 'Authorization: AccessKey YOUR_ACCESS_KEY'Example 1: Get a call from a workspace and a channel
Contoh kode
curl "/workspaces/{workspaceId}/channels/{channelId}/calls/{channelId}" \
-H 'Authorization: AccessKey YOUR_SECRET_TOKEN'
Contoh kode
// N/A
Contoh kode
{
"id": "6b6f6675-2992-4959-b875-66001e442423",
"channelId": "7c8f344a-4fc1-40b7-99a0-91a57b3ef365",
"originator": {
"contact": {
"id": "408ce24d-25b3-47b7-b273-05ff96d6d5ad",
"identifierKey": "phonenumber",
"identifierValue": "+351211123123"
},
"number": {
"type": "pstn",
"number": "+351211123123",
"callerIdName": "PRD",
"countryIsoCode": "PT"
}
},
"receiver": {
"number": {
"type": "pstn",
"number": "+3197004499437",
"countryIsoCode": "NL"
}
},
"from": "+351211123123",
"to": "+3197004499437",
"direction": "incoming",
"status": "no-answer",
"type": "pstn",
"duration": 0,
"hangupCauseCode": 16,
"hangupSource": "none",
"sipInsights": {
"hangupSipCode": "487"
},
"qualityInsights": {
"mos": "0.00",
"pdd": "0.00"
},
"createdAt": "2024-02-28T16:54:33.241Z",
"updatedAt": "2024-02-28T16:54:34.465Z",
"endedAt": "2024-02-28T16:54:33.264Z"
}