Skip to main content

Uniphore Customer Portal

Add Audio File

Adds an audio file for the selected connector at tenant level. The added audio file is stored in an AWS S3 bucket and played as a response from the connector to the end user.

Endpoint

Method: POST

URL: https://<tenant namespace url>/cse/postAudioFiles/<tenant-name>/tenantName/<connector-name>/connector/<tenant-id>/tenantId

curl -X POST "https://uselfserve-uss-tenant.com/cse/postAudioFiles/uss-tenant/tenantName/twilio/connector/uss-tenant-1/tenantId" 
     -H "accept: application/json" 
     -H "Content-Type: multipart/form-data" 
     -F "file=@audio1_16-8000.wav;type=audio/wav"
Header Parameter

Authorization - Bearer Token

Path Parameters

Parameter Name

Data Type

Description

Required/ Optional

connector

String

Name of the connector which uses the audio file.

Currently supports Exotel and Twilio connector with Microsoft TTS.

Required

tenantId

String

Id of the tenant that is associated to the selected connector.

To know the tenantId, reach out to U-Self Serve Engineering Team.

Required

tenantName

String

Name of the tenant.

To know the tenantName, reach out to U-Self Serve Engineering Team.

Required

Request Parameters

Parameter Name

Data Type

Description

Required/ Optional

file

File

Select the audio file to be uploaded.

The audio file should be in 16 bit mono, pcm, wav format with a sample rate of 8000 Hz.

Required

Response and Error Codes

Response Code

Condition

200

OK

201

Created

401

Unauthorized

403

Forbidden

404

Not Found