v1

latestOpenAPI 3.0.12026-08-0640103344.9 KB
Send

Upload Media File

This function allows you to upload a file to be sent as an MMS or WhatsApp to the user. The response will include MediaDetails, which will have an object called mediaPath. The mediaPath object contains an array of details about the uploaded file such as fileName, extension, fileSaveId, mimetype, and url.

Supported file types: JPG, PNG, GIF, MP4, MP3, PDF

  • MMS File size limit(US): 950 KB
  • MMS File size limit(Canada): 750 KB
  • WhatsApp File size limit: 15 MB
post/orgunit/{orgunitId}/messages/file

Path parameters

orgunitIdstring required

orgunitId

Query parameters

UsedFor'whatsapp'

Required for sending WhatsApp file.

Response

Success

appCodestring nullable
messagestring nullable
isErrorboolean