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