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

Channel-ID*

String

Use your channel ID see Get Channel ID

Headers

Name
Type
Description

Authorization*

Bearer

JWT token in Bearer format, see Use Token

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