> This page is part of EVVA for Developers (https://developers.evvahub.com), the documentation of the EVVA Partner API. The API is in developer preview and the SDK packages are not yet published: do not suggest installing them. Index: https://developers.evvahub.com/llms.txt

# Create a mass message draft

POST https://api.evvahub.com/partner/v1/accounts/{creatorId}/mass-messages
Content-Type: application/json

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](/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](/approvals).

**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](/approvals).

Reference: https://developers.evvahub.com/api-reference/mass-messages/create-mass-message

## Authentication

- `Authorization` header (bearer token, required) — 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.

## Request

### Path parameters

- `creatorId` (string, required) — The creator profile id — the ONLY source of the creator a request acts for.

### Headers

- `X-Creator-Id` (string, optional) — Optional echo of the path `creatorId`; any other value is refused with 403 CREATOR_CONTEXT_MISMATCH.
- `Idempotency-Key` (string, optional) — 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.

### Body (application/json)

This endpoint expects a CreateMassMessageRequest.

- `body` (string, required)
- `segmentCriteria` (CreateMassMessageRequestSegmentCriteria, optional, nullable) — An object, or the same object as a JSON string. Optional on a draft; required to queue.
- `attachments` (list of string, optional)
- `mediaAssetIds` (list of string, optional) — Alias of `attachments`.
- `scheduledAt` (datetime, optional, nullable)
- `unlockPrice` (CreateMassMessageRequestUnlockPrice, optional, nullable) — 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.
- `blurPreview` (boolean, optional, default: true) — Only with a price.
- `authorship` (enum, optional) — 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: `AI_AUTOMATED`, `HUMAN_AUTHORED`, `AI_DRAFTED_HUMAN_SENT`
- `operatorRef` (string, optional) — The external CRM's opaque operator id — required with HUMAN_AUTHORED / AI_DRAFTED_HUMAN_SENT, refused otherwise. Agency audit only.

## Response

### 200

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

- `massMessage` (MassMessage, required) — The creator's own campaign DTO.
- `quote` (PaidMessageQuote, required, nullable)

### 201

Draft created.

- `massMessage` (MassMessage, required) — The creator's own campaign DTO.
- `quote` (PaidMessageQuote, required, nullable)

## Errors

### 400 Bad Request Error

Invalid or missing parameters: `INVALID_REQUEST` (`details` names the fields), or a more specific code of the operation.

- `code` (string, required) — A stable machine-readable code (see `KnownErrorCode`; new codes may appear within v1).
- `error` (string, required)
- `requestId` (string, required, nullable) — The same value as the `X-Request-Id` response header — quote it when reporting a problem.
- `details` (any, optional) — Extra detail for the code, specific to the operation, such as field errors, limits or the creator's account-status details.

### 401 Unauthorized Error

Token missing, malformed, expired or revoked: `INVALID_TOKEN` (or `UNAUTHORIZED` when no bearer token was sent). Request a new token and retry.

- `code` (string, required) — A stable machine-readable code (see `KnownErrorCode`; new codes may appear within v1).
- `error` (string, required)
- `requestId` (string, required, nullable) — The same value as the `X-Request-Id` response header — quote it when reporting a problem.
- `details` (any, optional) — Extra detail for the code, specific to the operation, such as field errors, limits or the creator's account-status details.

### 403 Forbidden Error

Not your creator (`GRANT_REVOKED`, `INSUFFICIENT_SCOPE`, …), or a priced campaign needs a grant covering `write:paid_messages` (`PRICE_NOT_PERMITTED`); nothing is written.

- `code` (string, required) — A stable machine-readable code (see `KnownErrorCode`; new codes may appear within v1).
- `error` (string, required)
- `requestId` (string, required, nullable) — The same value as the `X-Request-Id` response header — quote it when reporting a problem.
- `details` (any, optional) — Extra detail for the code, specific to the operation, such as field errors, limits or the creator's account-status details.

### 404 Not Found Error

No such resource, or it belongs to another creator: `NOT_FOUND` or a more specific code.

- `code` (string, required) — A stable machine-readable code (see `KnownErrorCode`; new codes may appear within v1).
- `error` (string, required)
- `requestId` (string, required, nullable) — The same value as the `X-Request-Id` response header — quote it when reporting a problem.
- `details` (any, optional) — Extra detail for the code, specific to the operation, such as field errors, limits or the creator's account-status details.

### 409 Conflict Error

Conflicts with the current state: `IDEMPOTENCY_KEY_REUSED` (the key was used for a different request), an approval that is still pending or already used, or a more specific code of the operation.

- `code` (string, required) — A stable machine-readable code (see `KnownErrorCode`; new codes may appear within v1).
- `error` (string, required)
- `requestId` (string, required, nullable) — The same value as the `X-Request-Id` response header — quote it when reporting a problem.
- `details` (any, optional) — Extra detail for the code, specific to the operation, such as field errors, limits or the creator's account-status details.

### 429 Too Many Requests Error

Rate limited: `RATE_LIMIT_EXCEEDED`. Wait `Retry-After` seconds before retrying.

- `code` (enum, required) — A stable machine-readable code (see `KnownErrorCode`; new codes may appear within v1).
  - Allowed values: `RATE_LIMIT_EXCEEDED`, `TOO_MANY_MESSAGES`
- `error` (string, required)
- `requestId` (string, required, nullable) — The same value as the `X-Request-Id` response header — quote it when reporting a problem.
- `details` (RateLimitErrorDetails, optional) — Extra detail for the code, specific to the operation, such as field errors, limits or the creator's account-status details.

### 500 Internal Server Error

Unexpected server error: `INTERNAL_ERROR`. Nothing internal is disclosed; quote the `X-Request-Id` when you report it.

- `code` (string, required) — A stable machine-readable code (see `KnownErrorCode`; new codes may appear within v1).
- `error` (string, required)
- `requestId` (string, required, nullable) — The same value as the `X-Request-Id` response header — quote it when reporting a problem.
- `details` (any, optional) — Extra detail for the code, specific to the operation, such as field errors, limits or the creator's account-status details.

### 503 Service Unavailable Error

Temporarily unavailable: `SERVICE_UNAVAILABLE`, `TEMPORARILY_UNAVAILABLE`, `MEDIA_STORAGE_UNAVAILABLE` or `CREATOR_STANDING_UNAVAILABLE`. Retry after `Retry-After` seconds.

- `code` (string, required) — A stable machine-readable code (see `KnownErrorCode`; new codes may appear within v1).
- `error` (string, required)
- `requestId` (string, required, nullable) — The same value as the `X-Request-Id` response header — quote it when reporting a problem.
- `details` (any, optional) — Extra detail for the code, specific to the operation, such as field errors, limits or the creator's account-status details.

## Types

### CreateMassMessageRequestSegmentCriteria

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

- SegmentCriteria: SegmentCriteria
- string

### CreateMassMessageRequestUnlockPrice

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.

- `minor` (string, required)
- `currency` (enum, required)
  - Allowed values: `USD`

### MassMessage

The creator's own campaign DTO.

- `id` (string, required)
- `status` (enum, required) — `PAUSED` — the integration application that queued the campaign lost its access (disabled or revoked, braked by EVVA, a grant or the creator's consent revoked, the agency suspended, the creator's integrations held, or a scope the send needs withdrawn). Every delivery asks the application's CURRENT access first; a refused campaign sends nothing more (what was delivered stays delivered) and waits for the CREATOR to resume or discard it. Re-enabling the application resumes nothing. A paused campaign can be cancelled (`cancelMassMessage`); it cannot be edited or queued again through the Partner API.
  - Allowed values: `DRAFT`, `QUEUED`, `SENDING`, `SENT`, `PARTIALLY_FAILED`, `CANCELLED`, `PAUSED`
- `body` (string, required)
- `segmentCriteria` (MassMessageSegmentCriteria, required) — The parsed criteria, or the stored string when it no longer parses.
- `mediaAssetIds` (list of string, required)
- `scheduledAt` (datetime, required, nullable)
- `unlock` (MassMessageUnlock, required, nullable) — PPV — what a fan pays to open it, or null for a free broadcast (never zero).
- `recipientCount` (integer, required) — Addressed — skipped ones included; not reach.
- `deliveredCount` (integer, required)
- `failedCount` (integer, required)
- `skippedCount` (integer, required) — Recipients addressed but deliberately not sent to: muted, opted out or already holding the message. For a campaign your application queued, also conversations a person on the agency's team was handling.
- `earnings` (MassMessageEarnings, required, nullable) — What the campaign earned. It is null when that is not stated here: the deployment does not measure it, or the consent does not cover `read:revenue`. Zeroes mean it was measured and nobody bought it.
- `createdAt` (datetime, required)
- `pausedAt` (datetime, optional, nullable) — `null` when it is not paused. Paused is not the same as off: a paused item waits for the creator's decision, and an application cannot resume, cancel or delete it (409 `PAUSED_AWAITING_CREATOR`).
- `pauseReason` (string, optional, nullable) — Why it was paused — the access refusal (for example `APP_DISABLED`, `APP_REVOKED`, `NOT_ASSIGNED`, `GRANT_REVOKED`, `AGENCY_SUSPENDED`, `CREATOR_INTEGRATIONS_HELD`, `CONSENT_SCOPE_MISSING`, `CREATOR_RESTRICTED`); `null` when it is not paused.

### PaidMessageQuote

- `price` (PaidMessageQuotePrice, required)
- `alreadySold` (list of string, required, nullable) — The ids of this request's non-sample attachments that the thread's fan already holds an unlock for; `[]` for none. It is null when not asked (no thread, or the send's own quote), or when your effective access does not cover both `read:revenue` and `read:messages`.
- `economics` (PpvEconomics, required, nullable) — The preliminary economics; null when no economic policy is in effect, or when the caller's effective access does not cover `read:revenue`.

### RateLimitErrorDetails

Extra detail for the code, specific to the operation, such as field errors, limits or the creator's account-status details.

- `retryAfterSec` (integer, required)
- `level` (enum, optional) — The DM send limit that refused the message, set only with `TOO_MANY_MESSAGES`. It is never a quota, a count or a key. - `conversation` — one side of one thread. - `sender` — a person's own ceiling; it does not apply to applications. - `creator` — everything sent for the creator, studio included. - `application` — everything your application sends. - `agency` — everything your agency sends. - `platform` — the agency's fair share of the platform: its throughput or its concurrency. See [rate limits](/authentication/rate-limits).
  - Allowed values: `conversation`, `sender`, `creator`, `application`, `agency`, `platform`

### SegmentCriteria

The audience of a mass message. `ALL_SUBSCRIBERS` is accepted as an alias of `ALL_FOLLOWERS`. `FAN_LIST` names a catalogue list or one of the creator's own lists (`cl-…`). Another creator's list, a deleted list or an unmessageable list is `400`. Delivery skips fans who opted out of promotional messages and never opens a thread toward a block, exactly as for the creator's own broadcast. Some audiences are buyer data. Your application may address `SPENDERS` only with an effective `read:subscribers:spend`, and `PAID_SUBSCRIBERS` only with `read:buyer_context`; the same holds for a `FAN_LIST` naming a catalogue list derived from spend, such as `spent-over-50` (`read:subscribers:spend`, `segmentType: FAN_LIST`). Without the scope, create, update and queue answer `403 INSUFFICIENT_SCOPE` with `details.requiredScope` and `details.segmentType`, and nothing is written.

- SegmentCriteria0
- SegmentCriteria1
- SegmentCriteria2
- SegmentCriteria3

### MassMessageSegmentCriteria

The parsed criteria, or the stored string when it no longer parses.

- SegmentCriteria: SegmentCriteria
- string

### MassMessageUnlock

PPV — what a fan pays to open it, or null for a free broadcast (never zero).

- `priceMinor` (string, required) — Exact decimal string of minor units.
- `currency` (string, required)
- `blurPreview` (boolean, required)

### MassMessageEarnings

What the campaign earned. It is null when that is not stated here: the deployment does not measure it, or the consent does not cover `read:revenue`. Zeroes mean it was measured and nobody bought it.

- `purchases` (integer, required)
- `creatorMinor` (string, required)
- `grossMinor` (string, required)
- `currency` (string, required, nullable)

### PaidMessageQuotePrice

- `minor` (string, required)
- `currency` (string, required)

### PpvEconomics

PPV economics, computed by the platform's own allocator under the economic policy version in effect now (the one a checkout opened now would pin). They are informational: the attribution class is decided at purchase from the buyer's evidence, and the economics frozen when that order is placed are the authority.

- `authoritative` (boolean, required)
- `currency` (string, required)
- `buyerPriceMinor` (string, required) — What the fan pays to open the message.
- `taxMinor` (string, required) — Zero — no tax engine; see taxTreatment.
- `taxTreatment` (string, required)
- `policyVersionRef` (string, required)
- `policyKey` (string, required)
- `policyVersion` (integer, required)
- `processingFeeBearer` (string, required)
- `byAttribution` (list of PpvAttributionOutcome, required)

### SegmentCriteria0

- `type` (enum, required)
  - Allowed values: `ALL_CONVERSATIONS`, `ALL_FOLLOWERS`, `ALL_SUBSCRIBERS`, `PAID_SUBSCRIBERS`

### SegmentCriteria1

- `type` ("RECENT_CONVERSATIONS", required)
- `activeWithinDays` (integer, required)

### SegmentCriteria2

- `type` ("SPENDERS", required)
- `minSpendMinor` (string, required)

### SegmentCriteria3

- `type` ("FAN_LIST", required)
- `listKey` (string, required)

### PpvAttributionOutcome

- `attributionClass` (enum, required)
  - Allowed values: `CREATOR_ATTRIBUTED`, `PLATFORM_ATTRIBUTED`
- `platformFeeMinor` (string, required) — The platform's line — its share of net receipts plus the attributable processing fee.
- `processingFeeMinor` (string, required)
- `creatorNetMinor` (string, required) — The creator's line under this class.
- `allocations` (list of PpvAttributionOutcomeAllocationsItems, required) — Every line as the allocator produced it; they sum to buyerPriceMinor.

### PpvAttributionOutcomeAllocationsItems

- `partyType` (string, required)
- `shareBps` (integer, required) — Share of net receipts, as the policy publishes it.
- `amountMinor` (string, required)

## Examples

### Mass messages_createMassMessage_example

**Request**

```json
{
  "body": "The full studio set is live! Unlock the gallery below.",
  "segmentCriteria": {
    "listKey": "cl-3f8a2c1e-9b4d-4e7a-8c2f-1a6b9d0e4c73",
    "type": "FAN_LIST"
  },
  "attachments": [
    "cm4rb5k8e000fqz8wd3s7g2lx"
  ],
  "scheduledAt": "2026-12-03T17:00:00.000Z",
  "unlockPrice": {
    "minor": "999",
    "currency": "USD"
  },
  "blurPreview": true,
  "authorship": "HUMAN_AUTHORED",
  "operatorRef": "crm-operator-7421"
}
```

**Response**

```json
{
  "massMessage": {
    "id": "cm4rc8n2w000hqz8wv5k3m9pe",
    "status": "DRAFT",
    "body": "The full studio set is live! Unlock the gallery below.",
    "segmentCriteria": {
      "listKey": "cl-3f8a2c1e-9b4d-4e7a-8c2f-1a6b9d0e4c73",
      "type": "FAN_LIST"
    },
    "mediaAssetIds": [
      "cm4rb5k8e000fqz8wd3s7g2lx"
    ],
    "scheduledAt": "2026-12-03T17:00:00.000Z",
    "unlock": {
      "priceMinor": "999",
      "currency": "USD",
      "blurPreview": true
    },
    "recipientCount": 0,
    "deliveredCount": 0,
    "failedCount": 0,
    "skippedCount": 0,
    "earnings": null,
    "createdAt": "2026-12-02T09:41:27.604Z"
  },
  "quote": {
    "price": {
      "minor": "999",
      "currency": "USD"
    },
    "alreadySold": null,
    "economics": null
  }
}
```

**SDK Code**

```python Mass messages_createMassMessage_example
import requests

url = "https://api.evvahub.com/partner/v1/accounts/cm4r7k2xq0001qz8w3n5v6b2d/mass-messages"

payload = {
    "body": "The full studio set is live! Unlock the gallery below.",
    "segmentCriteria": {
        "listKey": "cl-3f8a2c1e-9b4d-4e7a-8c2f-1a6b9d0e4c73",
        "type": "FAN_LIST"
    },
    "attachments": ["cm4rb5k8e000fqz8wd3s7g2lx"],
    "scheduledAt": "2026-12-03T17:00:00.000Z",
    "unlockPrice": {
        "minor": "999",
        "currency": "USD"
    },
    "blurPreview": True,
    "authorship": "HUMAN_AUTHORED",
    "operatorRef": "crm-operator-7421"
}
headers = {
    "Idempotency-Key": "a4d394ed-44d7-4ae5-8264-573ceffad7d7",
    "Authorization": "Bearer <token>",
    "Content-Type": "application/json"
}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
```

```go Mass messages_createMassMessage_example
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "https://api.evvahub.com/partner/v1/accounts/cm4r7k2xq0001qz8w3n5v6b2d/mass-messages"

	payload := strings.NewReader("{\n  \"body\": \"The full studio set is live! Unlock the gallery below.\",\n  \"segmentCriteria\": {\n    \"listKey\": \"cl-3f8a2c1e-9b4d-4e7a-8c2f-1a6b9d0e4c73\",\n    \"type\": \"FAN_LIST\"\n  },\n  \"attachments\": [\n    \"cm4rb5k8e000fqz8wd3s7g2lx\"\n  ],\n  \"scheduledAt\": \"2026-12-03T17:00:00.000Z\",\n  \"unlockPrice\": {\n    \"minor\": \"999\",\n    \"currency\": \"USD\"\n  },\n  \"blurPreview\": true,\n  \"authorship\": \"HUMAN_AUTHORED\",\n  \"operatorRef\": \"crm-operator-7421\"\n}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("Idempotency-Key", "a4d394ed-44d7-4ae5-8264-573ceffad7d7")
	req.Header.Add("Authorization", "Bearer <token>")
	req.Header.Add("Content-Type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```php Mass messages_createMassMessage_example
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('POST', 'https://api.evvahub.com/partner/v1/accounts/cm4r7k2xq0001qz8w3n5v6b2d/mass-messages', [
  'body' => '{
  "body": "The full studio set is live! Unlock the gallery below.",
  "segmentCriteria": {
    "listKey": "cl-3f8a2c1e-9b4d-4e7a-8c2f-1a6b9d0e4c73",
    "type": "FAN_LIST"
  },
  "attachments": [
    "cm4rb5k8e000fqz8wd3s7g2lx"
  ],
  "scheduledAt": "2026-12-03T17:00:00.000Z",
  "unlockPrice": {
    "minor": "999",
    "currency": "USD"
  },
  "blurPreview": true,
  "authorship": "HUMAN_AUTHORED",
  "operatorRef": "crm-operator-7421"
}',
  'headers' => [
    'Authorization' => 'Bearer <token>',
    'Content-Type' => 'application/json',
    'Idempotency-Key' => 'a4d394ed-44d7-4ae5-8264-573ceffad7d7',
  ],
]);

echo $response->getBody();
```

### Mass messages_createMassMessage_example

**Request**

```json
{
  "body": "The full studio set is live! Unlock the gallery below.",
  "segmentCriteria": {
    "listKey": "cl-3f8a2c1e-9b4d-4e7a-8c2f-1a6b9d0e4c73",
    "type": "FAN_LIST"
  },
  "attachments": [
    "cm4rb5k8e000fqz8wd3s7g2lx"
  ],
  "scheduledAt": "2026-12-03T17:00:00.000Z",
  "unlockPrice": {
    "minor": "999",
    "currency": "USD"
  },
  "blurPreview": true,
  "authorship": "HUMAN_AUTHORED",
  "operatorRef": "crm-operator-7421"
}
```

**Response**

```json
{
  "massMessage": {
    "id": "cm4rc8n2w000hqz8wv5k3m9pe",
    "status": "DRAFT",
    "body": "The full studio set is live! Unlock the gallery below.",
    "segmentCriteria": {
      "listKey": "cl-3f8a2c1e-9b4d-4e7a-8c2f-1a6b9d0e4c73",
      "type": "FAN_LIST"
    },
    "mediaAssetIds": [
      "cm4rb5k8e000fqz8wd3s7g2lx"
    ],
    "scheduledAt": "2026-12-03T17:00:00.000Z",
    "unlock": {
      "priceMinor": "999",
      "currency": "USD",
      "blurPreview": true
    },
    "recipientCount": 0,
    "deliveredCount": 0,
    "failedCount": 0,
    "skippedCount": 0,
    "earnings": null,
    "createdAt": "2026-12-02T09:41:27.604Z"
  },
  "quote": {
    "price": {
      "minor": "999",
      "currency": "USD"
    },
    "alreadySold": null,
    "economics": null
  }
}
```

**SDK Code**

```python Mass messages_createMassMessage_example
import requests

url = "https://api.evvahub.com/partner/v1/accounts/cm4r7k2xq0001qz8w3n5v6b2d/mass-messages"

payload = {
    "body": "The full studio set is live! Unlock the gallery below.",
    "segmentCriteria": {
        "listKey": "cl-3f8a2c1e-9b4d-4e7a-8c2f-1a6b9d0e4c73",
        "type": "FAN_LIST"
    },
    "attachments": ["cm4rb5k8e000fqz8wd3s7g2lx"],
    "scheduledAt": "2026-12-03T17:00:00.000Z",
    "unlockPrice": {
        "minor": "999",
        "currency": "USD"
    },
    "blurPreview": True,
    "authorship": "HUMAN_AUTHORED",
    "operatorRef": "crm-operator-7421"
}
headers = {
    "Idempotency-Key": "a4d394ed-44d7-4ae5-8264-573ceffad7d7",
    "Authorization": "Bearer <token>",
    "Content-Type": "application/json"
}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
```

```go Mass messages_createMassMessage_example
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "https://api.evvahub.com/partner/v1/accounts/cm4r7k2xq0001qz8w3n5v6b2d/mass-messages"

	payload := strings.NewReader("{\n  \"body\": \"The full studio set is live! Unlock the gallery below.\",\n  \"segmentCriteria\": {\n    \"listKey\": \"cl-3f8a2c1e-9b4d-4e7a-8c2f-1a6b9d0e4c73\",\n    \"type\": \"FAN_LIST\"\n  },\n  \"attachments\": [\n    \"cm4rb5k8e000fqz8wd3s7g2lx\"\n  ],\n  \"scheduledAt\": \"2026-12-03T17:00:00.000Z\",\n  \"unlockPrice\": {\n    \"minor\": \"999\",\n    \"currency\": \"USD\"\n  },\n  \"blurPreview\": true,\n  \"authorship\": \"HUMAN_AUTHORED\",\n  \"operatorRef\": \"crm-operator-7421\"\n}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("Idempotency-Key", "a4d394ed-44d7-4ae5-8264-573ceffad7d7")
	req.Header.Add("Authorization", "Bearer <token>")
	req.Header.Add("Content-Type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```php Mass messages_createMassMessage_example
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('POST', 'https://api.evvahub.com/partner/v1/accounts/cm4r7k2xq0001qz8w3n5v6b2d/mass-messages', [
  'body' => '{
  "body": "The full studio set is live! Unlock the gallery below.",
  "segmentCriteria": {
    "listKey": "cl-3f8a2c1e-9b4d-4e7a-8c2f-1a6b9d0e4c73",
    "type": "FAN_LIST"
  },
  "attachments": [
    "cm4rb5k8e000fqz8wd3s7g2lx"
  ],
  "scheduledAt": "2026-12-03T17:00:00.000Z",
  "unlockPrice": {
    "minor": "999",
    "currency": "USD"
  },
  "blurPreview": true,
  "authorship": "HUMAN_AUTHORED",
  "operatorRef": "crm-operator-7421"
}',
  'headers' => [
    'Authorization' => 'Bearer <token>',
    'Content-Type' => 'application/json',
    'Idempotency-Key' => 'a4d394ed-44d7-4ae5-8264-573ceffad7d7',
  ],
]);

echo $response->getBody();
```