Skip to main content
POST
/
v3
/
attachments
/
voice
Upload voice attachment
curl --request POST \
  --url https://api.reply.io/v3/attachments/voice \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: multipart/form-data' \
  --form file='@example-file'
{
  "id": 123,
  "fileName": "<string>",
  "lengthInSeconds": 123
}

Authorizations

Authorization
string
header
required

Authenticate every request with a Bearer token. Pass your Reply API key in the Authorization header:

Authorization: Bearer <your-api-key>

Get your API key from the Reply dashboard: Settings → API Key.

Body

multipart/form-data
file
file
required

Audio file to upload. Must be non-empty and no longer than 60 seconds.

Response

Voice attachment uploaded and converted

Uploaded voice message attachment.

id
integer
required

Attachment identifier.

fileName
string
required

Original file name as supplied by the upload.

lengthInSeconds
integer
required

Duration of the voice message in seconds.