Upload Media
Use this API to upload your media POST
, the Content type of request is multipart/form-data
with a single file to upload per hit API.
Sample Upload using curl
curl -X POST --location 'https://wa-api.neuapix.com/whatsapp/v3/{{Channel-ID}}/media' \
--header 'Authorization: Bearer {{place your token here}}' \
--header 'Content-Type: multipart/form-data' \
--form 'messaging_product="whatsapp"' \
--form 'file=@"/path/to/file"'
A successful response returns an object with the uploaded media ID:
{
"id": "your media id here"
}
here is the detail API payload
Upload Media
POST
https://wa-api.neuapix.com/whatsapp/v3/{{Channel-ID}}/media
Use this API to upload your media
Path Parameters
Name
Type
Description
Headers
Name
Type
Description
Content-Type
multipart/form-data
Content type for upload Media
Request Body
Name
Type
Description
messaging_product*
text
Default whatsapp
file*
file
Your binary file
{
"id":"your Media ID"
}
Last updated