Get Voice Call Status Using Send Message API v2

Retrieve the status of an individual call by passing 'MessageId' using Send Message API v2.

📘

API Endpoint & Postman Collection

Voice channel is supported via Voice API and Send Message API v2.

API endpoint for it is: [https://{YourRegion}.webexconnect.io/v2/messages/{messageId}].

Please modify YourRegion in the URL to reflect your tenant’s region. See Know Your Endpoint Page.

Refer to Postman Collection for trying Get Voice Call Status Using Send Message API v2.

📘

API Response and Error Codes

Send Message API v2 is asynchronous. You receive an HTTP response confirming acceptance of your request, while additional processing details are sent to your notify URL. For more information, see Channel Specific Status Codes.

Request Body for Get Voice Call Status API

curl --location 'https://baseURL/v2/messages/{MessageId}' \
--header 'Content-Type: application/json' \
--header 'Accept: application/json' \
--header 'key: ServiceKey'

Get Voice Call Status Path Parameters

ParameterTypeMandatoryDescription
MessageIdstringyesUnique identifier for the message transaction. Returned in the response body of Send Message API v2.

Get Voice Call Status Header Parameters

ParameterTypeMandatoryDescription
keystringyesAuthorization token for the request. Use a JWT signed with a secret key or a service key.

Sample Response Body

{
    "callDuration": 4,
    "clientId": 3678,
    "toType": "msisdn",
    "requestTimestamp": "2024-12-03T17:44:33.151+05:30",
    "groupId": 4123,
    "answeredAt": "2024-12-03T17:44:50.842+05:30",
    "channel": "voice",
    "messageId": "c6f14a41-3358-XXXX-XXXX-1141ecfXXXXX",
    "requestedReceipts": [],
    "priority": "1",
    "version": "2.0",
    "content": {
        "ttsProcessor": "Azure",
        "voice": "Apollo",
        "gender": "Male",
        "fileSize": 0,
        "language": "en-IN",
        "text": "/logdata/apps/dvp/callflows/Play_media.txt",
        "type": "TTS",
        "region": "English (India)",
        "voiceType": "NEURAL"
    },
    "endedAt": "2024-12-03T17:44:54.512+05:30",
    "teamId": 4321,
    "callbackData": "test_callback_data",
    "notifyUrl": "https://01j7x8v422z889w32gkbt8vg5x00-097f245de45d94eaa1b9.requestinspector.com",
    "from": "+16403xxxxxx",
    "correlationId": "na1b2b1i1",
    "to": "+12985XXXXXX",
    "direction": "outbound",
    "status": "ANSWERED"
}

Response Parameters

ParameterDescription
callDurationDuration of the call in seconds.
clientIdUnique identifier for the client (tenant backend ID).
toTypemsisdn: Outbound call to a mobile number.
customerId: Outbound call to the mobile number associated with the customer ID.
requestTimestampTimestamp when the request was submitted, in ISO8601 format.
groupIdIdentifier for the group associated with the user.
answeredAtTimestamp when the call was answered, in UTC.
channelSet to Voice for all voice APIs.
messageIdUnique identifier for the message transaction being queried.
requestedReceiptsEvents for which you will receive notifications. Possible values:
Offered: Call is offered to the network.
Accepted: Call is accepted by the network and placed to the end customer.
Answered: Call is answered by the end customer.
Dropped: Call is dropped due to an internal technical error.
Rejected: Call is rejected (e.g., network failure, busy, or declined by the customer).
Released: Call is ended by the platform.
Disconnected: Call is disconnected by the end customer.
Trombone Connected: Outbound call is connected to an agent; both the end customer and agent are on the call.
Trombone Released: Agent exits the call.
Message Expired: Call request expired after the configured expiry time.
priorityCall priority.
Possible values:
1: Low
2: Medium
3: High
versionMessaging API version used for the request. Example: '2.0'.
contentMedia details for the call, including TTS messages or other media.
ttsProcessorText-to-speech engine used. Only 'Azure' is supported.
voiceVoice selected for audio synthesis.
genderGender of the selected voice (e.g., 'Male', 'Female').
fileSizeSize of the generated audio file.
languageLanguage of the selected voice (e.g., 'en-US', 'hi-IN').
textInput text sent for speech conversion.
typeInput text format. Use 'plain text' or 'SSML'.
regionRegion of the TTS engine.
voiceTypeType of voice used. Only 'Neural' is supported.
endedAtTimestamp when the call ended, in UTC.
teamIdTeam identifier associated with the call. Present based on authorization.
callbackDataData included in the 'callbackData' field of the request.
notifyUrlURL to receive callback data and receipts.
fromNumber initiating the outbound call.
correlationIdCorrelation ID used in the call request, returned in the response.
toNumbers to which the call is initiated.
directionIndicates if the call is outbound or inbound.
statusStatus of the call. Possible values:
Initiated: Call has been initiated.
Ringing: Call is ringing and not yet answered.
In-progress: Call is in progress.
Completed: Call completed successfully.
Busy: User's phone is busy.
No-answer: Call was not answered by the user.
Canceled: Call was rejected by the user.
Failed: Call failed abruptly.