Skip to navigation

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, plus operatorRef for 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:

  1. Your application’s effective scopes must cover write:paid_messages.
  2. Then action approval applies. The count is the number of recipients counted at this queue, and the amount is price × recipients.
  3. Within the agency’s own AUTO_WITHIN_LIMITS rule, the campaign is queued and counted at the level of that rule. Otherwise a person must approve it: you receive 202 APPROVAL_REQUIRED, then re-send with Partner-Approval-Id and an Idempotency-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 without write: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 no Idempotency-Key.

Required scopes: write:mass_messages.

Approval: setting or changing unlockPrice runs through action approval.

Authentication

AuthorizationBearer

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.

Required scopes:write:mass_messages

Path parameters

creatorIdstringRequired>=1 character

The creator profile id — the ONLY source of the creator a request acts for.

midstringRequired>=1 character

Headers

X-Creator-IdstringOptional

Optional echo of the path creatorId; any other value is refused with 403 CREATOR_CONTEXT_MISMATCH.

Idempotency-KeystringOptionalformat: "^[A-Za-z0-9_-]*$"<=128 characters

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.

Partner-Approval-IdstringOptionalformat: "^apr_[A-Za-z0-9]{24}$"

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 4xx or 429, hands it back for your next attempt.
  • A 5xx, 503 included, 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_CONSUMED with details.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

This endpoint expects an object.
authorshipenumOptional

REQUIRED for an application: AI_AUTOMATED needs write:messages:automated; HUMAN_AUTHORED / AI_DRAFTED_HUMAN_SENT need write:messages:operator and operatorRef. Internal provenance only — the fan sees the creator’s broadcast.

Allowed values:
operatorRefstringOptional1-64 characters

The external CRM’s opaque operator id — required with HUMAN_AUTHORED / AI_DRAFTED_HUMAN_SENT, refused otherwise. Agency audit only.

Response

Queued.
massMessageobject
The creator's own campaign DTO.

Errors

400
Bad Request Error
401
Unauthorized Error
403
Forbidden Error
404
Not Found Error
409
Conflict Error
429
Too Many Requests Error
500
Internal Server Error
503
Service Unavailable Error