Get Voice Call Recordings Using Send Message API v2

Retrieve call recordings by passing 'TransactionId' 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/recordings/flow/{transactionId}].

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

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

📘

API Response and Error Codes

Send Message API v2 is asynchronous. You receive a HTTP response when your request is accepted. Further processing details are sent to your notify URL. See Channel Specific Status Codes for more information.

Request Body for Get Voice Call Recordings API

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

Get Voice Call Recordings Path Parameters

ParameterTypeMandatoryDescription
TransactionIdstringyesUnique identifier for the call transaction. Returned in the response body of events.

Get Voice Call Recordings Header Parameters

ParameterTypeMandatoryDescription
keystringyesAuthorization token (this can be either a JWT signed by a secret key or the service key).

Sample Response Body

{
    "clientId": 3678,
    "recordings": [
        {
            "recordingDuration": "7",
            "recordingName": "timestamp_c7751df7-d324-XXXX-XXXX-df1cd52d5194_9.wav",
            "recordingFilePath": "https://anydomain.imiconnect.co/voice-recordings/timestamp_c7751df7-d324-XXXX-9fe7-df1cd52d5194_9.wav"
        }
    ],
    "groupId": 4123,
    "teamId": 4321,
    "messageId": "80875ee5-2567-XXXX-XXXX-48cf96ce96e3_20758_12XXXX"
}

Response Parameters

ParameterDescription
clientIdUnique ID of the client (tenant backend ID).
recordingsJSON object with details about the recordings.
recordingDurationDuration of the recording in seconds.
recordingNameName of the recording file.
recordingFilePathStorage path of the recording file.
groupIdIdentifier for the group the team belongs to.
teamIdIdentifier for the team associated with the service key.
messageIdUnique message ID for the transaction, returned in the response.