Newsletters

Send media to a newsletter

Uploads and publishes an image, video, or document to a WhatsApp newsletter/channel via the authenticated WUTS device session. Media may be provided inline as base64 (optionally a data URI) or fetched from a remote URL; the combined payload must not exceed 32 MB.

POST
/newsletters/{jid}/media

Uploads and publishes an image, video, or document to a WhatsApp newsletter/channel via the authenticated WUTS device session. Media may be provided inline as base64 (optionally a data URI) or fetched from a remote URL; the combined payload must not exceed 32 MB.

Authorization

bearerAuth
AuthorizationBearer <token>

Per-user API token (UUID v4) sent as Authorization: Bearer <token>. Identifies the tenant and user.

In: header

Path Parameters

jid*string

Newsletter/channel JID that will receive the media post (e.g. 120363039000000000@newsletter).

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/newsletters/string/media" \  -H "Content-Type: application/json" \  -d '{    "media_type": "image",    "media_url": "https://cdn.example.com/posts/launch-banner.jpg",    "caption": "Our new launch is live!",    "mime_type": "image/jpeg"  }'
{  "success": true,  "message_id": "3EB0XXXX1234567890ABCDEF",  "timestamp": "2026-06-15T18:31:10Z",  "newsletter": "120363039000000000@newsletter",  "status_type": "image"}
{  "success": false,  "error": "validation failed",  "error_code": "VALIDATION_ERROR",  "timestamp": "2026-06-15T12:00:00Z"}
{  "success": false,  "error": "validation failed",  "error_code": "VALIDATION_ERROR",  "timestamp": "2026-06-15T12:00:00Z"}
{  "success": false,  "error": "validation failed",  "error_code": "VALIDATION_ERROR",  "timestamp": "2026-06-15T12:00:00Z"}
{  "success": false,  "error": "validation failed",  "error_code": "VALIDATION_ERROR",  "timestamp": "2026-06-15T12:00:00Z"}
{  "success": false,  "error": "validation failed",  "error_code": "VALIDATION_ERROR",  "timestamp": "2026-06-15T12:00:00Z"}