Upload an Audio File

This endpoint uploads a new audio file. The request must be sent using FormData. Both title (string) and file (audio file) fields are required.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Body Params
string
required
length ≤ 255

The title of the audio file, up to 255 characters; leading and trailing spaces are removed, and a title of spaces only is refused. Used to identify the file when listing or sending voice messages.

string
length ≤ 1000

Optional free text stored with the audio, up to 1000 characters (trimmed). It is not returned by the API.

file
required

The audio file, up to 4 MB, sent as a binary file (multipart/form-data). WAV at 8 kHz, mono, 16-bit is recommended — every upload is converted to that format, the one the call is played in; MP3 is accepted. 4 MB holds about 4 minutes of that WAV or of an MP3 at 128 kbps; a lower MP3 bitrate holds more and a higher one less (about 1.7 minutes at 320 kbps).

Responses

Language
Credentials
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json