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.
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 Per-user API token (UUID v4) sent as Authorization: Bearer <token>. Identifies the tenant and user.
In: header
Path Parameters
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"}Mark newsletter messages as viewed POST
Marks one or more newsletter/channel messages as viewed on behalf of the authenticated WUTS device session. Server IDs are the numeric server message identifiers for the channel.
Send a text message to a newsletter POST
Publishes a plain text post to a WhatsApp newsletter/channel through the authenticated WUTS device session. The channel is identified by its newsletter JID in the path.