Send messages to multiple recipients (async batch processing)
POST/api/sessions/:sessionId/messages/send-bulk
Send messages to multiple recipients (async batch processing)
Request
Responses
- 202
- 400
- 401
- 403
- 413
- 429
- 503
Batch created and processing started
Session not active or invalid request, including a media item whose url is not an absolute http(s) URL or carries a user name or password
The API key is missing, unknown, revoked, or expired
The API key's role, session or chat scope, or IP allow-list does not allow this operation
An item's decoded base64 media exceeds the media byte cap (MEDIA_DOWNLOAD_MAX_BYTES, 50 MiB by default). A url item is fetched after the 202; one over the cap fails that item in the batch results (GET /messages/batch/{batchId}) instead. The whole request is separately bounded by BODY_SIZE_LIMIT (25 mb by default).
Too many bulk batches in progress on this node (BULK_MAX_CONCURRENT_BATCHES); retry shortly
The server is shutting down; retry the batch shortly