> 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

# Quote a price without a conversation

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

Returns the same quote as `POST /partner/v1/accounts/{creatorId}/conversations/{conversationId}/paid-messages/quote`, for the creator without a conversation.

`alreadySold` is null, since there is no fan to ask about. `economics` is null unless your effective access to the creator covers `read:revenue`.

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

Reference: https://developers.evvahub.com/api-reference/paid-messages/quote-creator-paid-price

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

### Body (application/json)

This endpoint expects a PaidMessageQuoteRequest.

- `price` (PaidMessageQuoteRequestPrice, required)
- `attachments` (list of PaidMessageQuoteRequestAttachmentsItems, optional) — Optional. The files this price would sell, as the send would take them; never validated by the quote.
- `body` (string, optional)
- `blurPreview` (boolean, optional)
- `viewOnce` (boolean, optional)
- `expiresAt` (datetime, optional, nullable)
- `expectedLastMessageId` (string, optional)
- `fencingToken` (PaidMessageQuoteRequestFencingToken, optional)
- `takeover` (boolean, optional)
- `automationRunId` (string, optional)
- `authorship` (enum, optional)
  - Allowed values: `AI_AUTOMATED`, `HUMAN_AUTHORED`, `AI_DRAFTED_HUMAN_SENT`
- `operatorRef` (string, optional)

## Response

### 200

The quote.

- `quote` (PaidMessageQuote, required)

## 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, or not with this token: `GRANT_REVOKED` (no active link to the creator), `NOT_ASSIGNED`, `OAUTH_SCOPE_MISSING` (the creator has not consented to the scope), `INSUFFICIENT_SCOPE` (the token lacks it), `CREATOR_CONTEXT_MISMATCH`, `AGENCY_SUSPENDED`.

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

### PaidMessageQuoteRequestPrice

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

### PaidMessageQuoteRequestAttachmentsItems

- `mediaAssetId` (string, required)
- `caption` (string, optional)
- `freeSample` (boolean, optional) — A sample is given, not sold: never reported in `alreadySold`.

### PaidMessageQuoteRequestFencingToken

- string
- integer

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

**Request**

```json
{
  "price": {
    "minor": "999",
    "currency": "USD"
  }
}
```

**Response**

```json
{
  "quote": {
    "price": {
      "minor": "999",
      "currency": "USD"
    },
    "alreadySold": null,
    "economics": null
  }
}
```

**SDK Code**

```python Paid messages_quoteCreatorPaidPrice_example
import requests

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

payload = { "price": {
        "minor": "999",
        "currency": "USD"
    } }
headers = {
    "Authorization": "Bearer <token>",
    "Content-Type": "application/json"
}

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

print(response.json())
```

```go Paid messages_quoteCreatorPaidPrice_example
package main

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

func main() {

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

	payload := strings.NewReader("{\n  \"price\": {\n    \"minor\": \"999\",\n    \"currency\": \"USD\"\n  }\n}")

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

	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_quoteCreatorPaidPrice_example
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('POST', 'https://api.evvahub.com/partner/v1/accounts/cm4r7k2xq0001qz8w3n5v6b2d/paid-messages/quote', [
  'body' => '{
  "price": {
    "minor": "999",
    "currency": "USD"
  }
}',
  'headers' => [
    'Authorization' => 'Bearer <token>',
    'Content-Type' => 'application/json',
  ],
]);

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