> 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

# Send a pay-per-view message

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

Sends one priced message in the conversation as the creator, under the same rules as the creator's own composer.

**Request**

* The same field allowlist as the creator's composer: unknown fields are refused with `400`.
* The price is in USD, from `100` to `1000000` minor units.
* At least one file, not all of them free samples, and every file the creator's own.
* The response carries the quote for the price sent. It is informational: the order economics frozen at unlock are authoritative.

The send follows the message send limits of a plain send and the recipient's delivery policy. No creator account restriction applies: the creator's own one-to-one send has none (`DIRECT_MESSAGING` is not a restricted action).

**Authorship**

Your application declares `authorship` within the creator's consent (see [message authorship](/message-authorship)). `AI_AUTOMATED` needs `write:messages:automated`, and the creator's account must allow `BULK_MESSAGING`. An operator's message (`HUMAN_AUTHORED` or `AI_DRAFTED_HUMAN_SENT`, with `operatorRef`) needs `write:messages:operator`. EVVA decides the source, and the fan sees an ordinary message from the creator.

**Coordination**

Exactly as for a plain send (`POST /partner/v1/accounts/{creatorId}/conversations/{conversationId}/messages`), and decided in the same step as the write. The body may carry `expectedLastMessageId`, `fencingToken`, `takeover` and `automationRunId`; `automationRunId` is only recorded for the agency's audit trail. See [conversation leases](/conversation-leases).

**Idempotency**

The `Idempotency-Key` header is required, and it is checked before anything is asked: without it, `400`. The same key with the same terms returns `200` with the same `messageRef`. See [idempotency](/conventions/idempotency).

**Agency policy**

An application's priced send needs the agency's explicit grant and its [action policy](/approvals), on top of `write:paid_messages` and `write:messages`:

* Under `AUTO_WITHIN_LIMITS`, it is sent within the agency's own limits per message and per day. EVVA sets no ceiling of its own; the limit is metered at the level of the agency's rule, and the amount counted is the price.
* Otherwise you get `202 APPROVAL_REQUIRED`. Re-send with the `Partner-Approval-Id` header. The approval is claimed for the request's `Idempotency-Key` and is final once the send succeeds: the same key replays it.

**Errors**

* `400` — an unknown field, or no `Idempotency-Key`.
* `403 APPROVAL_MISMATCH` — the approval was given for another price, file set or conversation.
* `404` — a file belongs to another account, or its id is unknown.
* `409 MEDIA_NOT_READY` — a file is not ready.
* `409 PAID_PREVIEW_UNAVAILABLE` — a file has no locked preview.
* `409 ASSET_ALREADY_DELIVERED` — a file was already given to this fan for free.
* `409 ASSET_REACHABLE_ELSEWHERE` — the lifetime refusal: a view-once or expiring send includes a file this fan can already open.
* `409 IDEMPOTENCY_KEY_REUSED` — the key was used with another price, body or attachment set.
* `409 APPROVAL_CONSUMED` — the approval was already claimed by another `Idempotency-Key`.
* `409 LEASE_HELD` (with `Retry-After`), `409 STALE_FENCING_TOKEN`, `409 AUTOMATION_PAUSED`, `409 CONVERSATION_ADVANCED` — coordination refusals, as for a plain send.
* `429 TOO_MANY_MESSAGES` — a send limit is full, with `Retry-After` and `details.level`.
* `503` — the send limits cannot be checked.

**Required scopes:** `write:paid_messages`, `write:messages`.

**Approval:** this operation runs through [action approval](/approvals) for applications.

Reference: https://developers.evvahub.com/api-reference/paid-messages/send-paid-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.
- `conversationId` (string, required)

### 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, required) — Required on the PPV send: 1..128 characters of `[A-Za-z0-9_-]`. Missing, blank or malformed is `400 INVALID_REQUEST`, before anything is read or written. The same key with the same terms answers `200` with the same `messageRef`; with other terms it is `409 IDEMPOTENCY_KEY_REUSED`. The key is stored in your application's own key space and never echoed.
- `Partner-Approval-Id` (string, optional) — 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](/approvals).

### Body (application/json)

This endpoint expects a SendPaidMessageRequest.

- `price` (SendPaidMessageRequestPrice, required)
- `attachments` (list of SendPaidMessageRequestAttachmentsItems, required) — The creator's own Vault files, in display order: at most the per-message attachment limit, 10 by default. At least one file must not be a free sample. Required on the send (`400` without one); optional on the quotes (`PaidMessageQuoteRequest`).
- `body` (string, optional) — The pitch, shown unlocked.
- `blurPreview` (boolean, optional, default: false)
- `viewOnce` (boolean, optional, default: false) — On the send, as on `sendMessage`: needs `write:messages:view_once` (not in the default consent); 403 otherwise, nothing written.
- `expiresAt` (datetime, optional, nullable) — On the send, the same permission as `viewOnce`.
- `expectedLastMessageId` (string, optional) — Conditional send — 409 CONVERSATION_ADVANCED when the newest message is another.
- `fencingToken` (SendPaidMessageRequestFencingToken, optional) — The current lease's token; otherwise 409 STALE_FENCING_TOKEN. Required for an application while the lease is live (without it 409 LEASE_HELD).
- `automationRunId` (string, optional) — Audit metadata only; never shown to the buyer.
- `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`.
  - 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

Idempotent replay — the message this key already sent; nothing new was written.

- `messageRef` (string, required) — The priced message. A replay answers the same reference.
- `paid` (PaidMessageTermsSent, required)
- `authorship` (enum, required)
  - Allowed values: `UNRECORDED`, `HUMAN_AUTHORED`, `AI_DRAFTED_HUMAN_SENT`, `AI_GENERATED_APPROVED`, `AI_AUTOMATED`, `PLATFORM_AUTOMATED`
- `quote` (PaidMessageQuote, required)

### 201

Sent. One priced message is now in the conversation.

- `messageRef` (string, required) — The priced message. A replay answers the same reference.
- `paid` (PaidMessageTermsSent, required)
- `authorship` (enum, required)
  - Allowed values: `UNRECORDED`, `HUMAN_AUTHORED`, `AI_DRAFTED_HUMAN_SENT`, `AI_GENERATED_APPROVED`, `AI_AUTOMATED`, `PLATFORM_AUTOMATED`
- `quote` (PaidMessageQuote, required)

### 202

The action waits for an authorised person of the agency, and nothing was done. It waits because the agency has no policy for it, its policy requires approval, or the action is over the agency's own automatic limit (`LIMIT_EXCEEDED`). Once an `approval.decided` event approves it, re-send the same request with `Partner-Approval-Id: <approvalId>`. See [action approval](/approvals).

- `code` (enum, required)
  - Allowed values: `APPROVAL_REQUIRED`
- `error` (string, required)
- `approvalId` (string, required)
- `status` (enum, required) — The status of an approval request. Reads show the effective status. - `PENDING` becomes `APPROVED`, `DECLINED`, `EXPIRED` or `REVOKED`. - `APPROVED` becomes `CONSUMED`, `EXPIRED` or `REVOKED`. - `REVOKED` means the request was voided: its access was withdrawn (grant or consent link), the application or agency stopped, the creator was held or restricted, or the policy that governed it was replaced. `revokedReason` says which.
  - Allowed values: `PENDING`, `APPROVED`, `DECLINED`, `EXPIRED`, `CONSUMED`, `REVOKED`
- `reason` (enum, required) — Why the action was not automatic: no policy (the default), a policy that asks for approval, or over a limit.
  - Allowed values: `NO_POLICY`, `POLICY_REQUIRES_APPROVAL`, `LIMIT_EXCEEDED`
- `expiresAt` (datetime, required)
- `requestId` (string, optional, 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 the fan does not accept this message: `RECIPIENT_NOT_ACCEPTING_MESSAGES`, `CREATOR_ACCEPTS_FOLLOWERS_ONLY`, `CREATOR_ACCEPTS_FOLLOWERS_OR_SUBSCRIBERS`, `CREATOR_ACCEPTS_FANS_WHO_GIFTED`.

- `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

### SendPaidMessageRequestPrice

- `minor` (string, required) — Minor units as a decimal string; 100..1000000.
- `currency` (enum, required)
  - Allowed values: `USD`

### SendPaidMessageRequestAttachmentsItems

- `mediaAssetId` (string, required)
- `caption` (string, optional)
- `freeSample` (boolean, optional) — Shown free before purchase; at least one file must be locked.

### SendPaidMessageRequestFencingToken

The current lease's token; otherwise 409 STALE_FENCING_TOKEN. Required for an application while the lease is live (without it 409 LEASE_HELD).

- string
- integer

### PaidMessageTermsSent

- `priceMinor` (string, required)
- `currency` (string, required)
- `blurPreview` (boolean, required)

### 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`

### 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)

### 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

### Paid messages_sendPaidMessage_example

**Request**

```json
{
  "price": {
    "minor": "1500",
    "currency": "USD"
  },
  "attachments": [
    {
      "mediaAssetId": "cm4rb5k8e000fqz8wd3s7g2lx"
    },
    {
      "mediaAssetId": "cm4rb9m2h000jqz8wf6v1k3pz",
      "freeSample": true
    }
  ],
  "body": "The full beach set, just for you — the first photo is on the house.",
  "blurPreview": true,
  "authorship": "HUMAN_AUTHORED",
  "operatorRef": "crm-operator-1042"
}
```

**Response**

```json
{
  "messageRef": "cm4rcd6pn000kqz8wt8b2f5xh",
  "paid": {
    "priceMinor": "1500",
    "currency": "USD",
    "blurPreview": true
  },
  "authorship": "HUMAN_AUTHORED",
  "quote": {
    "price": {
      "minor": "1500",
      "currency": "USD"
    },
    "alreadySold": null,
    "economics": null
  }
}
```

**SDK Code**

```python Paid messages_sendPaidMessage_example
import requests

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

payload = {
    "price": {
        "minor": "1500",
        "currency": "USD"
    },
    "attachments": [
        { "mediaAssetId": "cm4rb5k8e000fqz8wd3s7g2lx" },
        {
            "mediaAssetId": "cm4rb9m2h000jqz8wf6v1k3pz",
            "freeSample": True
        }
    ],
    "body": "The full beach set, just for you — the first photo is on the house.",
    "blurPreview": True,
    "authorship": "HUMAN_AUTHORED",
    "operatorRef": "crm-operator-1042"
}
headers = {
    "Idempotency-Key": "3c555430-9e5a-44cc-98b6-9819319b6478",
    "Authorization": "Bearer <token>",
    "Content-Type": "application/json"
}

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

print(response.json())
```

```go Paid messages_sendPaidMessage_example
package main

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

func main() {

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

	payload := strings.NewReader("{\n  \"price\": {\n    \"minor\": \"1500\",\n    \"currency\": \"USD\"\n  },\n  \"attachments\": [\n    {\n      \"mediaAssetId\": \"cm4rb5k8e000fqz8wd3s7g2lx\"\n    },\n    {\n      \"mediaAssetId\": \"cm4rb9m2h000jqz8wf6v1k3pz\",\n      \"freeSample\": true\n    }\n  ],\n  \"body\": \"The full beach set, just for you — the first photo is on the house.\",\n  \"blurPreview\": true,\n  \"authorship\": \"HUMAN_AUTHORED\",\n  \"operatorRef\": \"crm-operator-1042\"\n}")

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

	req.Header.Add("Idempotency-Key", "3c555430-9e5a-44cc-98b6-9819319b6478")
	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 Paid messages_sendPaidMessage_example
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('POST', 'https://api.evvahub.com/partner/v1/accounts/cm4r7k2xq0001qz8w3n5v6b2d/conversations/cm4r8a1vz0007qz8wk2j9h4mt/paid-messages', [
  'body' => '{
  "price": {
    "minor": "1500",
    "currency": "USD"
  },
  "attachments": [
    {
      "mediaAssetId": "cm4rb5k8e000fqz8wd3s7g2lx"
    },
    {
      "mediaAssetId": "cm4rb9m2h000jqz8wf6v1k3pz",
      "freeSample": true
    }
  ],
  "body": "The full beach set, just for you — the first photo is on the house.",
  "blurPreview": true,
  "authorship": "HUMAN_AUTHORED",
  "operatorRef": "crm-operator-1042"
}',
  'headers' => [
    'Authorization' => 'Bearer <token>',
    'Content-Type' => 'application/json',
    'Idempotency-Key' => '3c555430-9e5a-44cc-98b6-9819319b6478',
  ],
]);

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

### Paid messages_sendPaidMessage_example

**Request**

```json
{
  "price": {
    "minor": "1500",
    "currency": "USD"
  },
  "attachments": [
    {
      "mediaAssetId": "cm4rb5k8e000fqz8wd3s7g2lx"
    },
    {
      "mediaAssetId": "cm4rb9m2h000jqz8wf6v1k3pz",
      "freeSample": true
    }
  ],
  "body": "The full beach set, just for you — the first photo is on the house.",
  "blurPreview": true,
  "authorship": "HUMAN_AUTHORED",
  "operatorRef": "crm-operator-1042"
}
```

**Response**

```json
{
  "messageRef": "cm4rcd6pn000kqz8wt8b2f5xh",
  "paid": {
    "priceMinor": "1500",
    "currency": "USD",
    "blurPreview": true
  },
  "authorship": "HUMAN_AUTHORED",
  "quote": {
    "price": {
      "minor": "1500",
      "currency": "USD"
    },
    "alreadySold": null,
    "economics": null
  }
}
```

**SDK Code**

```python Paid messages_sendPaidMessage_example
import requests

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

payload = {
    "price": {
        "minor": "1500",
        "currency": "USD"
    },
    "attachments": [
        { "mediaAssetId": "cm4rb5k8e000fqz8wd3s7g2lx" },
        {
            "mediaAssetId": "cm4rb9m2h000jqz8wf6v1k3pz",
            "freeSample": True
        }
    ],
    "body": "The full beach set, just for you — the first photo is on the house.",
    "blurPreview": True,
    "authorship": "HUMAN_AUTHORED",
    "operatorRef": "crm-operator-1042"
}
headers = {
    "Idempotency-Key": "3c555430-9e5a-44cc-98b6-9819319b6478",
    "Authorization": "Bearer <token>",
    "Content-Type": "application/json"
}

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

print(response.json())
```

```go Paid messages_sendPaidMessage_example
package main

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

func main() {

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

	payload := strings.NewReader("{\n  \"price\": {\n    \"minor\": \"1500\",\n    \"currency\": \"USD\"\n  },\n  \"attachments\": [\n    {\n      \"mediaAssetId\": \"cm4rb5k8e000fqz8wd3s7g2lx\"\n    },\n    {\n      \"mediaAssetId\": \"cm4rb9m2h000jqz8wf6v1k3pz\",\n      \"freeSample\": true\n    }\n  ],\n  \"body\": \"The full beach set, just for you — the first photo is on the house.\",\n  \"blurPreview\": true,\n  \"authorship\": \"HUMAN_AUTHORED\",\n  \"operatorRef\": \"crm-operator-1042\"\n}")

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

	req.Header.Add("Idempotency-Key", "3c555430-9e5a-44cc-98b6-9819319b6478")
	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 Paid messages_sendPaidMessage_example
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('POST', 'https://api.evvahub.com/partner/v1/accounts/cm4r7k2xq0001qz8w3n5v6b2d/conversations/cm4r8a1vz0007qz8wk2j9h4mt/paid-messages', [
  'body' => '{
  "price": {
    "minor": "1500",
    "currency": "USD"
  },
  "attachments": [
    {
      "mediaAssetId": "cm4rb5k8e000fqz8wd3s7g2lx"
    },
    {
      "mediaAssetId": "cm4rb9m2h000jqz8wf6v1k3pz",
      "freeSample": true
    }
  ],
  "body": "The full beach set, just for you — the first photo is on the house.",
  "blurPreview": true,
  "authorship": "HUMAN_AUTHORED",
  "operatorRef": "crm-operator-1042"
}',
  'headers' => [
    'Authorization' => 'Bearer <token>',
    'Content-Type' => 'application/json',
    'Idempotency-Key' => '3c555430-9e5a-44cc-98b6-9819319b6478',
  ],
]);

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

### Paid messages_sendPaidMessage_example

**Request**

```json
{
  "price": {
    "minor": "1500",
    "currency": "USD"
  },
  "attachments": [
    {
      "mediaAssetId": "cm4rb5k8e000fqz8wd3s7g2lx"
    },
    {
      "mediaAssetId": "cm4rb9m2h000jqz8wf6v1k3pz",
      "freeSample": true
    }
  ],
  "body": "The full beach set, just for you — the first photo is on the house.",
  "blurPreview": true,
  "authorship": "HUMAN_AUTHORED",
  "operatorRef": "crm-operator-1042"
}
```

**Response**

```json
{
  "approvalId": "apr_8sKq2VnT4xLm7RcB1pYw9ZdH",
  "code": "APPROVAL_REQUIRED",
  "error": "This action needs the approval of an authorised person",
  "expiresAt": "2026-12-03T14:31:00.000Z",
  "reason": "NO_POLICY",
  "requestId": "2ac01c39-6b45-4a0b-8db1-be67984d2cac",
  "status": "PENDING"
}
```

**SDK Code**

```python Paid messages_sendPaidMessage_example
import requests

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

payload = {
    "price": {
        "minor": "1500",
        "currency": "USD"
    },
    "attachments": [
        { "mediaAssetId": "cm4rb5k8e000fqz8wd3s7g2lx" },
        {
            "mediaAssetId": "cm4rb9m2h000jqz8wf6v1k3pz",
            "freeSample": True
        }
    ],
    "body": "The full beach set, just for you — the first photo is on the house.",
    "blurPreview": True,
    "authorship": "HUMAN_AUTHORED",
    "operatorRef": "crm-operator-1042"
}
headers = {
    "Idempotency-Key": "3c555430-9e5a-44cc-98b6-9819319b6478",
    "Authorization": "Bearer <token>",
    "Content-Type": "application/json"
}

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

print(response.json())
```

```go Paid messages_sendPaidMessage_example
package main

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

func main() {

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

	payload := strings.NewReader("{\n  \"price\": {\n    \"minor\": \"1500\",\n    \"currency\": \"USD\"\n  },\n  \"attachments\": [\n    {\n      \"mediaAssetId\": \"cm4rb5k8e000fqz8wd3s7g2lx\"\n    },\n    {\n      \"mediaAssetId\": \"cm4rb9m2h000jqz8wf6v1k3pz\",\n      \"freeSample\": true\n    }\n  ],\n  \"body\": \"The full beach set, just for you — the first photo is on the house.\",\n  \"blurPreview\": true,\n  \"authorship\": \"HUMAN_AUTHORED\",\n  \"operatorRef\": \"crm-operator-1042\"\n}")

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

	req.Header.Add("Idempotency-Key", "3c555430-9e5a-44cc-98b6-9819319b6478")
	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 Paid messages_sendPaidMessage_example
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('POST', 'https://api.evvahub.com/partner/v1/accounts/cm4r7k2xq0001qz8w3n5v6b2d/conversations/cm4r8a1vz0007qz8wk2j9h4mt/paid-messages', [
  'body' => '{
  "price": {
    "minor": "1500",
    "currency": "USD"
  },
  "attachments": [
    {
      "mediaAssetId": "cm4rb5k8e000fqz8wd3s7g2lx"
    },
    {
      "mediaAssetId": "cm4rb9m2h000jqz8wf6v1k3pz",
      "freeSample": true
    }
  ],
  "body": "The full beach set, just for you — the first photo is on the house.",
  "blurPreview": true,
  "authorship": "HUMAN_AUTHORED",
  "operatorRef": "crm-operator-1042"
}',
  'headers' => [
    'Authorization' => 'Bearer <token>',
    'Content-Type' => 'application/json',
    'Idempotency-Key' => '3c555430-9e5a-44cc-98b6-9819319b6478',
  ],
]);

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