Skip to main content
Post the necessary fields for the API to upload files. The files need to be a buffer with the key “fileAttachment”. <br /><br /> The allowed file types are: <br/> <ul><li>JPG</li><li>JPEG</li><li>PNG</li><li>MP4</li><li>MPEG</li><li>ZIP</li><li>RAR</li><li>PDF</li><li>DOC</li><li>DOCX</li><li>TXT</li><li>MP3</li><li>WAV</li></ul> <br /><br /> The API will return an object with the URLs

Autorización

string
required
Bearer token generado desde el portal Leadway. Ver Autenticación.
string
default:"2021-07-28"
required
Versión de la API.

Body

string
default:"ve9EPM428h8vShlRW1KT"
required
Conversation Id
string
default:"ve9EPM428h8vShlRW1KT"
required
Contact Id
string
required
string[]
required
string
default:"ISxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
Twilio chat service SID for group SMS uploads
string
default:"true"
Flag to indicate group SMS upload flow. When true, only 1 file upload is allowed per request.

Respuestas

object
required
string[]
Twilio media SIDs for group SMS (when isGroupSms=true)
number
default:"413"
required
HTTP Status code of the request Posibles valores: 400, 413, 415
string
default:"Failed to upload the files"
required
Error message of the request
number
default:"413"
required
HTTP Status code of the request Posibles valores: 400, 413, 415
string
default:"Failed to upload the files"
required
Error message of the request

Ejemplo