Skip to navigation

Create a mass message draft

Creates a draft mass message for the creator; nothing is sent until you queue it.

To send the draft, queue it with POST /partner/v1/accounts/{creatorId}/mass-messages/{mid}/queue.

Audience

The audience (segmentCriteria) is optional on a draft and required to queue. To address one of the creator’s own fan lists, use FAN_LIST with the list’s cl-… id.

Some audiences are buyer data. SPENDERS, and a catalogue list derived from spend, need read:subscribers:spend. PAID_SUBSCRIBERS needs read:buyer_context.

Authorship

The body must declare authorship; see message authorship.

  • AI_AUTOMATED needs write:messages:automated, and the creator’s account must permit bulk messaging (BULK_MESSAGING).
  • HUMAN_AUTHORED or AI_DRAFTED_HUMAN_SENT is for a live operator of the agency’s CRM. It needs write:messages:operator and an operatorRef.

EVVA records the authorship internally for the agency, and the agency’s audit trail adds the operatorRef. Fans receive the campaign exactly as the creator’s own broadcast, with no AI or partner marker.

Pay-per-view

unlockPrice (alias price) and blurPreview make the broadcast pay-per-view. A price must stay within the creator’s own bounds and needs at least one file. It also needs write:paid_messages in your application’s effective scopes for the creator: your token, your application’s grant and the creator’s consent must all carry it. Otherwise, or when EVVA cannot confirm your access, the price is refused and nothing is written.

A draft’s price sells nothing and does not count against the agency’s limits. A paid broadcast is counted per recipient when you queue it; see action approval.

Idempotency

The Idempotency-Key header is optional and lives in your application’s own key space. A retry with the same key returns 200 with the draft the first request created and writes nothing.

Errors

  • 400 AUTHORSHIP_REQUIRED — the body declares no authorship.
  • 403 AUTHORSHIP_NOT_PERMITTED — the creator’s consent does not cover the declared authorship.
  • 403 INSUFFICIENT_SCOPE — the audience is buyer data your application may not read. details.requiredScope and details.segmentType name it. Nothing is written.
  • 403 PRICE_NOT_PERMITTED — a price without write:paid_messages in your effective scopes, or EVVA could not confirm them. details.reason is CONSENT and details.requiredScope is write:paid_messages. Nothing is written.
  • 409 IDEMPOTENCY_KEY_REUSED — the key was already used for a different request.
  • 503 TEMPORARILY_UNAVAILABLE — EVVA could not check your access to a PAID_SUBSCRIBERS audience. Retry after Retry-After.

Required scopes: write:mass_messages.

Approval: setting or changing price, 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.

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.

Request

This endpoint expects an object.
bodystringRequired1-2000 characters
segmentCriteriaobject or string or nullOptional

An object, or the same object as a JSON string. Optional on a draft; required to queue.

attachmentslist of stringsOptional
mediaAssetIdslist of stringsOptional

Alias of attachments.

scheduledAtdatetime or nullOptional
unlockPriceobject or nullOptional

PPV: what a fan pays to open it. Needs at least one attachment and a grant covering write:paid_messages. price is accepted as an alias. Null or absent = free.

blurPreviewbooleanOptionalDefaults to true
Only with a price.
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

A retry with the same Idempotency-Key. The answer is the draft the first request created; nothing new is written.

massMessageobject
The creator's own campaign DTO.
quoteobject or null

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