Get a call
GET a call details from a specific voice channel.
GET
/workspaces/{workspaceId}/channels/{channelId}/calls/{callId}
Get a channel call
Antwort-Payload
id
string
erforderlich
channelId
string
erforderlich
from
string
erforderlich
to
string
erforderlich
originator
object
erforderlich
Untergeordnete Attribute anzeigen
originator.contact
object
Untergeordnete Attribute anzeigen
originator.contact.id
string
erforderlich
originator.contact.identifierKey
string
erforderlich
originator.contact.identifierValue
string
erforderlich
originator.number
object
erforderlich
Untergeordnete Attribute anzeigen
originator.number.type
string
erforderlich
Possible values: pstn, sip, webrtc
originator.number.number
string
erforderlich
originator.number.anonymous
boolean
originator.number.callerIdName
string
originator.number.identity
string
originator.number.countryIsoCode
string
originator.number.pstnNumberType
string
receiver
object
erforderlich
Untergeordnete Attribute anzeigen
receiver.contact
object
Untergeordnete Attribute anzeigen
receiver.contact.id
string
erforderlich
receiver.contact.identifierKey
string
erforderlich
receiver.contact.identifierValue
string
erforderlich
receiver.number
object
erforderlich
Untergeordnete Attribute anzeigen
receiver.number.type
string
erforderlich
Possible values: pstn, sip, webrtc
receiver.number.number
string
erforderlich
receiver.number.anonymous
boolean
receiver.number.callerIdName
string
receiver.number.identity
string
receiver.number.countryIsoCode
string
receiver.number.pstnNumberType
string
parentId
string
direction
string
erforderlich
Possible values: incoming, outgoing
status
string
erforderlich
Possible values: accepted, starting, ringing, ongoing, completed, busy, no-answer, failed, cancelled, scheduled
reason
string
type
string
erforderlich
Possible values: pstn, sip, webrtc
duration
integer
hangupCauseCode
integer
hangupSource
string
Possible values: callee, caller, api, timeout, media-timeout, none
hangupSipCode
string
createdAt
string
erforderlich
updatedAt
string
erforderlich
ringingAt
string
answeredAt
string
endedAt
string
scheduledFor
string
callFlow
object
Untergeordnete Attribute anzeigen
callFlow.id
string
callFlow.commands
array of object
Untergeordnete Attribute anzeigen
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
Untergeordnete Attribute anzeigen
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
Untergeordnete Attribute anzeigen
notification.url
string
qualityInsights
object
Untergeordnete Attribute anzeigen
qualityInsights.mos
string
qualityInsights.pdd
string
sipInsights
object
Untergeordnete Attribute anzeigen
sipInsights.hangupSipCode
string
sipInsights.edgeRegion
string
sipInsights.providerName
string
sipInsights.userAgent
string
sipInsights.remoteSignallingIp
string
sipInsights.remoteMediaIp
string
amdResult
object
Untergeordnete Attribute anzeigen
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.
Codebeispiel
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
Codebeispiel
curl "/workspaces/{workspaceId}/channels/{channelId}/calls/{channelId}" \
-H 'Authorization: AccessKey YOUR_SECRET_TOKEN'
Codebeispiel
// N/A
Codebeispiel
{
"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"
}