Media

Uploads the given media for use when sending WhatsApp messages.

Example request:

POST /whatsapp/v1/media
Content-Type: multipart/form-data; boundary=----FormBoundary
        
------FormBoundary
Content-Disposition: form-data; name="businessPhoneNumberId"
        
1234567890
------FormBoundary
Content-Disposition: form-data; name="file"; filename="image.jpg"
Content-Type: image/jpeg
        
<binary file content>
------FormBoundary--
post/whatsapp/v1/media

Request

  • Base URL
    https://rest.smsportal.com
  • URL
    https://rest.smsportal.com/whatsapp/v1/media
  • Auth
    HTTP basic

Request body multipart/form-data

Filestring binary
BusinessPhoneNumberIdstring

Response

The media upload was successful

errorCodestring nullable required
errorDetailstring nullable required
mediaStatus0 | 1 | 2 | 3 | 4 | 5
idinteger

Changes

No recorded changes to this operation across all 1 revision of this API.