Queue a mass message
Queues a draft mass message for sending to its audience.
Before it is queued
- The creator’s account must permit bulk messaging (
BULK_MESSAGING), and the creator’s daily cap on mass messages applies. - The body declares who presses send:
authorship, plusoperatorReffor a live operator. The rules and refusals are the same as when you create the draft; see message authorship.
EVVA records internally that your application queued the campaign. Fans receive the creator’s broadcast.
Paid broadcasts
A draft that carries unlockPrice is a paid broadcast, counted per recipient:
- Your application’s effective scopes must cover
write:paid_messages. - Then action approval applies. The count is the number of recipients counted at this queue, and the amount is price × recipients.
- Within the agency’s own
AUTO_WITHIN_LIMITSrule, the campaign is queued and counted at the level of that rule. Otherwise a person must approve it: you receive202 APPROVAL_REQUIRED, then re-send withPartner-Approval-Idand anIdempotency-Key.
The approval binds the campaign, price, currency, preview and recipient count. The delivery never reaches more recipients than were counted, and the unused part goes back to the agency’s automatic budget once the campaign has stopped. A free campaign never needs approval.
Conversations a person is handling
A campaign your application queues is not delivered into a conversation a person on the agency’s team is handling:
- a team member holds a live lease on it;
- a team member replied there within the agency’s pause window;
- it was handed to a person, and a person has taken it up.
That recipient is skipped with the reason CONVERSATION_HELD and counted in skippedCount. It is never retried.
The creator’s own campaigns and the campaigns the agency’s team queues are delivered as before.
Idempotency
With an Idempotency-Key, a campaign that is already QUEUED, SENDING, SENT or PARTIALLY_FAILED returns
200 with its state instead of 409. This lets you retry a queue whose answer was lost. Without a key, the answer
is 409.
Errors
403 CREATOR_SUSPENDED— the creator’s account does not permit bulk messaging right now.403 PRICE_NOT_PERMITTED— a paid draft withoutwrite:paid_messages.409 DAILY_CAP_REACHED— the creator’s daily cap on mass messages is reached.409— the draft was repriced between the approval and the queue. It is not queued.409— the campaign is already queued or further along, and you sent noIdempotency-Key.
Required scopes: write:mass_messages.
Approval: setting or changing unlockPrice runs through action approval.
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:mass_messagesPath parameters
The creator profile id — the ONLY source of the creator a request acts for.
Headers
Optional echo of the path creatorId; any other value is refused with 403 CREATOR_CONTEXT_MISMATCH.
Optional key for creating, queueing and cancelling a mass message. On create, the same key with the same draft answers 200 with the stored draft, and a different draft is 409 IDEMPOTENCY_KEY_REUSED. On queue and cancel, a campaign already in the target state answers 200 with its state instead of 409. The key is never stored raw and never echoed.
The approvalId a previous 202 APPROVAL_REQUIRED returned, for an operation your application may run only with approval. Re-send it with the same payload once a person has approved. A blank value is no approval.
The approval is spent once, for exactly that agency, application, creator, operation and payload digest, the same amount and currency, and at most the units it was given for. It is claimed for the request’s Idempotency-Key (required) and becomes final when the operation succeeds:
- A refusal before the effect, a
4xxor429, hands it back for your next attempt. - A
5xx,503included, keeps it claimed for this key, because the effect may have happened. It is handed back only when EVVA knows nothing was done. - The same key re-sent replays the request and never has a second effect. You get the stored result where the operation keeps one, otherwise
409 APPROVAL_CONSUMEDwithdetails.replay: true: read the resource to see the result. - Another key is
409 APPROVAL_CONSUMED.
When the approval cannot be used, the request is refused with 403 (APPROVAL_INVALID, APPROVAL_MISMATCH or APPROVAL_DECLINED) or 409 (APPROVAL_PENDING, APPROVAL_EXPIRED or APPROVAL_CONSUMED). See action approval.
Request
The external CRM’s opaque operator id — required with HUMAN_AUTHORED / AI_DRAFTED_HUMAN_SENT, refused otherwise. Agency audit only.
