WAClient
POST

Send Media & File

Send image, video, audio, or document with an optional caption. Always use type media. Media must be a public HTTPS URL. The message param is the caption shown with the media.

API endpoint
https://api.waclient.com/send
Image — type media + caption (message)
curl -X POST \
  'https://api.waclient.com/send' \
  -H 'Content-Type: application/json' \
  --data '{
    "number": "201234567890",
    "type": "media",
    "message": "Product photo",
    "media_url": "https://example.com/photo.jpg",
    "instance_id": "META68B6ED90CXXXX",
    "access_token": "EMCUH3NQQK8YXXXX"
}'
Response
{
    "status": "success",
    "message": "Success",
    "message_payload": {
        "messaging_product": "whatsapp",
        "messages": [
            {
                "id": "wamid.xxx",
                "message_status": "accepted"
            }
        ]
    }
}
Video — type media + caption (message)
curl -X POST \
  'https://api.waclient.com/send' \
  -H 'Content-Type: application/json' \
  --data '{
    "number": "201234567890",
    "type": "media",
    "message": "Watch this demo",
    "media_url": "https://example.com/demo.mp4",
    "instance_id": "META68B6ED90CXXXX",
    "access_token": "EMCUH3NQQK8YXXXX"
}'
Document — type media + message + filename
curl -X POST \
  'https://api.waclient.com/send' \
  -H 'Content-Type: application/json' \
  --data '{
    "number": "201234567890",
    "type": "media",
    "message": "Your invoice",
    "media_url": "https://example.com/files/invoice.pdf",
    "filename": "invoice.pdf",
    "instance_id": "META68B6ED90CXXXX",
    "access_token": "EMCUH3NQQK8YXXXX"
}'
Audio — type media (no caption)
curl -X POST \
  'https://api.waclient.com/send' \
  -H 'Content-Type: application/json' \
  --data '{
    "number": "201234567890",
    "type": "media",
    "media_url": "https://example.com/note.ogg",
    "instance_id": "META68B6ED90CXXXX",
    "access_token": "EMCUH3NQQK8YXXXX"
}'
ParameterDescription
numberPhone with country code (e.g. 201234567890)
typeMust be media
messageCaption text (optional for audio) (Optional)
media_urlPublic HTTPS URL of the file
filenameRequired for documents — forces document mode (Optional)
instance_idMeta Cloud instance ID
access_tokenYour access token

Command Palette

Search documentation endpoints.

Esc