> 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 an order message

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

Writes a text message in one of the creator's order conversations, as the creator.

**What the buyer sees**

The message is stored as the creator's (`senderRole: CREATOR`), with a `source` and `authorship` decided by EVVA. The buyer sees an ordinary creator message: no source, authorship or id reaches the buyer. Only text can be sent.

**Authorship**

The request must declare `authorship` (see [message authorship](/message-authorship)):

- `AI_AUTOMATED` needs `write:messages:automated`, and the creator's account must allow `BULK_MESSAGING`.
- `HUMAN_AUTHORED` or `AI_DRAFTED_HUMAN_SENT` needs `operatorRef` and `write:messages:operator`, for a live operator in the agency's CRM.

**Idempotency**

The `Idempotency-Key` header is optional. A retry with the same key replays the stored message. When the send limits refuse a message, nothing is written and a keyed request records nothing, so its retry is a fresh send. See [rate limits](/authentication/rate-limits).

**Errors**

- `400 AUTHORSHIP_REQUIRED` — `authorship` is missing.
- `400 AUTHORSHIP_INVALID` — the value is not one your application may declare.
- `403 AUTHORSHIP_NOT_PERMITTED` — the creator's consent does not cover the declared authorship.
- `403 CREATOR_SUSPENDED` — an automated message for a creator whose account does not allow `BULK_MESSAGING`.
- `409 IDEMPOTENCY_KEY_REUSED` — the key was already used for a different request.
- `429 TOO_MANY_MESSAGES` — a send limit is full. Nothing was written; wait `Retry-After`.

**Required scopes:** `write:orders`.

Reference: https://developers.evvahub.com/api-reference/orders/send-creator-order-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.
- `orderId` (string, required) — The order reference. Another creator's order, or one the creator's account bought, answers 404.

### 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 on the other order writes: the same semantics as `RefundIdempotencyKey` when present; blank means no key.

### Body (application/json)

This endpoint expects a PartnerOrderMessageRequest.

- `body` (string, required) — The creator route's own bound and normalisation apply.
- `authorship` (enum, optional) — REQUIRED for an application.
  - 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.

## Response

### 201

Sent, or a replay of the stored message for the same `Idempotency-Key`.

- `message` (PartnerOrderMessage, required) — An order message as the agency sees it: the ordinary message plus who sent it and how it was written. The buyer never sees these fields.

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

One of three refusals. Creator access was refused (see `CreatorForbidden`); the creator's consent does not cover your declared authorship (`AUTHORSHIP_NOT_PERMITTED`); or the message is automated and the creator's account does not allow `BULK_MESSAGING` (`CREATOR_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.

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

`IDEMPOTENCY_KEY_REUSED`: the key was already used for a different request.

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

Too many messages (`TOO_MANY_MESSAGES`, `details.level` names the limit) or 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

### PartnerOrderMessage

An order message as the agency sees it: the ordinary message plus who sent it and how it was written. The buyer never sees these fields.

- `id` (string, required)
- `senderRole` (enum, required)
  - Allowed values: `BUYER`, `CREATOR`
- `body` (string, required)
- `createdAt` (datetime, required)
- `source` (enum, optional) — Who sent it, decided by EVVA; null for older messages.
  - Allowed values: `CREATOR`, `BUYER`, `AGENCY_STAFF`, `PARTNER_APPLICATION`, `AI_AUTOMATION`
- `authorship` (enum, optional)
  - Allowed values: `UNRECORDED`, `HUMAN_AUTHORED`, `AI_DRAFTED_HUMAN_SENT`, `AI_GENERATED_APPROVED`, `AI_AUTOMATED`, `PLATFORM_AUTOMATED`
- `actorRef` (string, optional, nullable)
- `operatorRef` (string, optional, nullable) — The CRM operator ref an application declared — only on THIS agency's own messages.

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

## Examples

**Request**

```json
{
  "body": "Of course! I will re-record it today and send the new version tonight.",
  "authorship": "HUMAN_AUTHORED",
  "operatorRef": "crm-operator-7421"
}
```

**Response**

```json
{
  "message": {
    "id": "cm4rpb4m70014qz8wj7q2f5ke",
    "senderRole": "CREATOR",
    "body": "Of course! I will re-record it today and send the new version tonight.",
    "createdAt": "2026-12-02T09:22:48.915Z",
    "source": "PARTNER_APPLICATION",
    "authorship": "HUMAN_AUTHORED",
    "actorRef": "3f6c2a9e-8b1d-4c7a-9e2f-5d8b1a6c4e07",
    "operatorRef": "crm-operator-7421"
  }
}
```

**SDK Code**

```python Orders_sendCreatorOrderMessage_example
import requests

url = "https://api.evvahub.com/partner/v1/accounts/cm4r7k2xq0001qz8w3n5v6b2d/orders/cm4rn2g6m000zqz8wv4n8s2cd/messages"

payload = {
    "body": "Of course! I will re-record it today and send the new version tonight.",
    "authorship": "HUMAN_AUTHORED",
    "operatorRef": "crm-operator-7421"
}
headers = {
    "Idempotency-Key": "76a134ed-5c51-43d4-92f8-baf0c49d23be",
    "Authorization": "Bearer <token>",
    "Content-Type": "application/json"
}

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

print(response.json())
```

```go Orders_sendCreatorOrderMessage_example
package main

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

func main() {

	url := "https://api.evvahub.com/partner/v1/accounts/cm4r7k2xq0001qz8w3n5v6b2d/orders/cm4rn2g6m000zqz8wv4n8s2cd/messages"

	payload := strings.NewReader("{\n  \"body\": \"Of course! I will re-record it today and send the new version tonight.\",\n  \"authorship\": \"HUMAN_AUTHORED\",\n  \"operatorRef\": \"crm-operator-7421\"\n}")

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

	req.Header.Add("Idempotency-Key", "76a134ed-5c51-43d4-92f8-baf0c49d23be")
	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 Orders_sendCreatorOrderMessage_example
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('POST', 'https://api.evvahub.com/partner/v1/accounts/cm4r7k2xq0001qz8w3n5v6b2d/orders/cm4rn2g6m000zqz8wv4n8s2cd/messages', [
  'body' => '{
  "body": "Of course! I will re-record it today and send the new version tonight.",
  "authorship": "HUMAN_AUTHORED",
  "operatorRef": "crm-operator-7421"
}',
  'headers' => [
    'Authorization' => 'Bearer <token>',
    'Content-Type' => 'application/json',
    'Idempotency-Key' => '76a134ed-5c51-43d4-92f8-baf0c49d23be',
  ],
]);

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