GET/features/media-messaging200OK

WhatsApp Media API

// Rich media messaging over WhatsApp. Send and receive images, videos, audio, documents, stickers, contacts, and locations through a unified REST API.

No credit card required · 14-day free trial
GET/features/media-messaging/use-cases200OK

Use Cases

use-case/e-commerce.ts
ready

E-Commerce

Send product images, catalogs, and invoice PDFs directly in WhatsApp. Let customers browse visually without leaving the chat.

use-case/healthcare.ts
ready

Healthcare

Share appointment confirmations, lab results (PDF), and location pins for clinic directions — all encrypted end-to-end.

use-case/real-estate.ts
ready

Real Estate

Send property photos, virtual tour videos, and floor plan documents. Share location pins for open house directions.

use-case/education.ts
ready

Education

Distribute course materials, lecture recordings, and assignment documents. Collect student submissions via media messages.

POST/features/media-messaging/example200OK

Code Examples

// Copy, paste, ship

send-image.sh
curl -X POST https://api.wsapi.chat/message/image \
  -H "x-api-key: your-api-key" \
  -H "x-instance-id: your-instance-id" \
  -H "Content-Type: application/json" \
  -d '{
    "to": "1234567890",
    "url": "https://example.com/product.jpg",
    "caption": "Check out our new product!"
  }'

Key Features

8 Media Types

Images, video, audio, documents, stickers, contacts, locations, and voice notes

URL or Base64

Send media via public URL or base64-encoded data — no pre-upload step required

Auto-Thumbnails

Images and videos automatically generate thumbnails in the chat

Captions

Add text captions to images, videos, and documents

Download Received Media

Fetch media from incoming messages via the media download endpoint

No File Hosting Required

Pass any public URL; WSAPI handles download and delivery to WhatsApp

GET/features/media-messaging/faq200OK

Frequently Asked Questions

$ wsapi cloud --start

Get started today

// Start a 14-day free trial with no credit card required

Explore more