Skip to Content
Templates

Upload template media

POST
/v1/numbers/{phone_number}/templates/media

Upload a header image, video or document as multipart/form-data (field file).

Authorization

HTTPBearer
headerAuthorizationBearer <token>

Path Parameters

phone_number*string

Your WhatsApp number, digits only, e.g. 393401234567.

Request Body

multipart/form-data
  1. body
file*string

The image, video or document.

file_type?|

MIME type, e.g. image/png. Only needed if the upload carries none.

Response Body

Created

application/json
  1. response

WhatsApp's response, passed through unchanged.

[key: string]?any
Example Request
curl -X POST 'https://api.wapiu.ai/v1/numbers/393401234567/templates/media' \  -F 'file=string'
Example Response
{}