Send messages in bulk
Sends up to 100 messages in one request, as one or more creators, and returns one result per item.
Every item is a single send in every respect: it follows all the rules of POST /partner/v1/accounts/{creatorId}/conversations/{conversationId}/messages. Only an application token can call this operation. The answer is 207 with one result per item, in request order.
Access and authorship
Each item is authorised on its own: its creator goes through every access check of a single send, including the write:messages scope. Each item must declare authorship (see message authorship). AI_AUTOMATED needs write:messages:automated and BULK_MESSAGING; an operator’s message needs write:messages:operator and operatorRef. A refusal is that item’s result (400 AUTHORSHIP_REQUIRED, 403 AUTHORSHIP_NOT_PERMITTED, …). The access checks and the authorship are decided once per distinct creator (and declaration) in a batch. Each item is also recorded on its own in the agency’s audit trail.
Limits
Your application’s request limit charges the batch one unit per item before it runs. Over the window, the whole batch is refused with 429 and Retry-After, and nothing is sent. Each item also spends the message send limits like a single send, so an item can fail alone with 429 TOO_MANY_MESSAGES. See rate limits.
Idempotency
The batch Idempotency-Key is required. Item i is sent with the derived key base64url(SHA-256("evva.bulk.messages.v1:" + batchKey + ":" + i)).
- Retrying the batch with the same key replays each item already sent (
200) and sends only the rest. - A different item at the same index fails with
409 IDEMPOTENCY_KEY_REUSEDfor that item. - You can also retry one item alone through the single send, with its derived key.
There is no exactly-once promise. See idempotency.
View-once and expiring items
An item that sets a lifetime (viewOnce or expiresAt) needs write:messages:view_once and goes through action approval per item. The agency’s policy may refuse it (403 ACTION_DENIED_BY_POLICY) or, under AUTO_WITHIN_LIMITS, send it within its own limits. Otherwise the item’s result is 202 APPROVAL_REQUIRED (error.details.approvalId) and nothing is sent for it: re-send that item alone through the single send, with Partner-Approval-Id.
Errors
The request as a whole is refused only for what no item could change:
400— no valid batch key, or not 1 to 100 items.403— the caller is not an application.403 INSUFFICIENT_SCOPE— the token lacks the send’s scopes.413— the body is over the API’s 100 KB JSON limit.500,503— an outage mid-batch. Retry with the same key.
Required scopes: write:messages.
Authentication
OAuth 2.0 client credentials. Request an access token at POST /partner/v1/oauth/token (grant_type=client_credentials) with the application’s client secret or a private_key_jwt assertion, then send it as Authorization: Bearer evpa_live_… (or evpa_test_… for a sandbox application). Tokens are opaque and short lived (see expires_in); there is no refresh token. Each operation lists the scopes it requires.
write:messagesHeaders
The key for the whole batch, required because a batch retried without one would send every message twice. 1..128 characters of [A-Za-z0-9_-], otherwise 400 INVALID_REQUEST before anything is sent. Item i is sent under its own key, base64url(SHA-256("evva.bulk.messages.v1:" + key + ":" + i)) (43 characters), in your application’s key space; see bulkSendMessages. The key is never echoed.
Request
Response
One result per item, in request order (each item succeeds or fails on its own).
