# Messages

> Besday Messages API: read an order’s message thread and send messages to the creator from your own system.

Source: https://besday.com/docs/api/messages · Updated 2026-12-03 · OpenAPI: https://besday.com/api/v1/openapi.json

Each paid order has one thread between your brand and the creator. Messages sent here show on besday.com too.

## The message object

One message in an order’s thread between your brand and the creator. Contact details (emails, phone numbers, handles) are hidden automatically.

| Field | Type | Description |
|---|---|---|
| `object` | string | Always `message`. One of: `message`. |
| `id` | string | Unique id. |
| `order_id` | string | The order. |
| `from` | string | Who wrote it. One of: `brand`, `creator`, `besday`. |
| `body` | string | The text, as delivered. |
| `created_at` | string | ISO 8601 timestamp (UTC) |
| `read_at` | string or null | When the other side read it. ISO 8601 timestamp (UTC) |

Example:

```json
{
  "object": "message",
  "id": "msg_5b1c0e",
  "order_id": "prj_01HZX8Q4V2",
  "from": "creator",
  "body": "Got the serum today! Filming tomorrow morning in natural light.",
  "created_at": "2026-12-05T21:14:00.000Z",
  "read_at": null
}
```

## List messages

`GET /api/v1/orders/{id}/messages`

The order’s message thread with the creator, oldest first.

- Scope: `read`
- Returns: 200 a list of `message` objects

Path parameters:

| Name | Type | Required | Description |
|---|---|---|---|
| `id` | string | yes | The order id. |

cURL:

```bash
curl "https://besday.com/api/v1/orders/prj_01HZX8Q4V2/messages" \
  -H "Authorization: Bearer $BESDAY_API_KEY"
```

Node.js:

```javascript
const res = await fetch("https://besday.com/api/v1/orders/prj_01HZX8Q4V2/messages", {
  headers: {
    Authorization: `Bearer ${process.env.BESDAY_API_KEY}`,
  },
});
const data = await res.json();
if (!res.ok) throw new Error(`${data.error.code}: ${data.error.message}`);
```

Python:

```python
import os, uuid, requests

res = requests.get(
    "https://besday.com/api/v1/orders/prj_01HZX8Q4V2/messages",
    headers={
        "Authorization": f"Bearer {os.environ['BESDAY_API_KEY']}",
    },
    timeout=30,
)
res.raise_for_status()
print(res.json())
```

Response (200):

```json
{
  "object": "list",
  "data": [
    {
      "object": "message",
      "id": "msg_5b1c0e",
      "order_id": "prj_01HZX8Q4V2",
      "from": "creator",
      "body": "Got the serum today! Filming tomorrow morning in natural light.",
      "created_at": "2026-12-05T21:14:00.000Z",
      "read_at": null
    }
  ],
  "has_more": false,
  "next_cursor": null
}
```

Errors: `not_found`.


## Send a message

`POST /api/v1/orders/{id}/messages`

Writes to the creator in the order’s thread. Messages open once the order is paid. Contact details are hidden automatically.

- Scope: `read_write`
- Returns: 201 `message`
- Supports `Idempotency-Key`

Path parameters:

| Name | Type | Required | Description |
|---|---|---|---|
| `id` | string | yes | The order id. |

Body parameters (JSON):

| Name | Type | Required | Description |
|---|---|---|---|
| `body` | string | yes | The message text. |

cURL:

```bash
curl -X POST "https://besday.com/api/v1/orders/prj_01HZX8Q4V2/messages" \
  -H "Authorization: Bearer $BESDAY_API_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{
  "body": "The serum ships today. Tracking is in your Besday inbox."
}'
```

Node.js:

```javascript
const res = await fetch("https://besday.com/api/v1/orders/prj_01HZX8Q4V2/messages", {
  method: "POST",
  headers: {
    Authorization: `Bearer ${process.env.BESDAY_API_KEY}`,
    "Idempotency-Key": crypto.randomUUID(),
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    "body": "The serum ships today. Tracking is in your Besday inbox."
  }),
});
const data = await res.json();
if (!res.ok) throw new Error(`${data.error.code}: ${data.error.message}`);
```

Python:

```python
import os, uuid, requests

res = requests.post(
    "https://besday.com/api/v1/orders/prj_01HZX8Q4V2/messages",
    headers={
        "Authorization": f"Bearer {os.environ['BESDAY_API_KEY']}",
        "Idempotency-Key": str(uuid.uuid4()),
    },
    json={
      "body": "The serum ships today. Tracking is in your Besday inbox."
    },
    timeout=30,
)
res.raise_for_status()
print(res.json())
```

Response (201):

```json
{
  "object": "message",
  "id": "msg_5b1c0f",
  "order_id": "prj_01HZX8Q4V2",
  "from": "brand",
  "body": "The serum ships today. Tracking is in your Besday inbox.",
  "created_at": "2026-12-05T21:14:00.000Z",
  "read_at": null,
  "contact_details_hidden": false
}
```

Errors: `parameter_invalid`, `order_state`, `rate_limited`, `not_found`.

