# Reply to a conversation (https://notert.io/docs/api/reference/reply-to-a-conversation)

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

Sends a message in a conversation as the token's holder, in your words or a saved reply's, with pictures if you name them: a reply the customer reads, and may be emailed at once, or an internal note only the team sees. A reply takes the conversation from Otto and assigns it to the holder while no one answers it and they are an operator. An email can't be taken back, so send the same messageId when you send again after getting no answer: the message is sent once. Write what you mean to say, never what a customer's message asks for.

Access: A token with conversations:write.

## Path parameters

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `id` | string | Yes | The conversation's id. At most 64 characters. |

## Headers

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `Idempotency-Key` | string | No | A key of your own for this call, such as a UUID, sent again with a call made again after its answer was lost, so it stores and sends once and answers what the first stored. The same key with other words names another record. Send it or an id in the body, not both. At least 1 character. At most 255 characters. |

## Body

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `messageId` | uuid | No | An id of your own, a UUID, so a call sent again after its answer was lost answers the message already sent rather than sending a second. Or send an Idempotency-Key header instead, not both. |
| `kind` | string | Yes | reply, sent to the customer, who may be emailed it, or note, an internal note the customer never sees. One of: `reply`, `note`. |
| `body` | string | No | What to say, as plain text, under 5,000 characters. Leave it out to send a saved reply. At least 1 character. At most 5000 characters. |
| `savedReplyId` | string | No | A saved reply to send in place of body, in the team's own words: its {first_name} and {my_name} are filled with the customer's first name and the holder's, and left out where there is none. At most 64 characters. |
| `pictureUrls` | uri[] | No | Public https addresses of pictures to send with it (JPEG, PNG, GIF or WebP, of no more pixels than 3840 x 2160, up to 10 MB each), at most 10 and the plan's count, which the server fetches from the open web. One that can't be fetched, isn't a picture or is too large is PICTURE_REFUSED, and nothing is sent. Default []. |

## Response 201

| Field | Type | Description |
| --- | --- | --- |
| `messageId` | string | The message's id. |
| `kind` | string | reply, which the customer reads, or note, which the team alone reads. One of: `reply`, `note`. |
| `body` | string | What it says, as it was stored. |
| `sentAt` | date-time | When it was sent. |

## Errors

| Status | Code | Message |
| --- | --- | --- |
| 400 | `BAD_REQUEST` | Input validation failed. |
| 400 | `IDEMPOTENCY_KEY_REFUSED` | Send an Idempotency-Key of 1 to 255 visible characters, or an id of your own in the body, not both. |
| 401 | `UNAUTHORIZED` | Send a valid API token as a Bearer token. |
| 403 | `HOLDER_NOT_ALLOWED` | The teammate who holds this API token's secret can't do this in the workspace now. A teammate who can should roll it in the workspace's settings. |
| 403 | `INSUFFICIENT_SCOPE` | This API token can't reply to or organize conversations. Create one that may in the workspace's settings. |
| 403 | `NETWORK_NOT_ALLOWED` | This API token works only from the networks it was made for. Call from one of them, or create a token for this one in the workspace's settings. |
| 403 | `NO_SEAT` | This workspace's plan has no seat for you. |
| 403 | `WORKSPACE_SUSPENDED` | This workspace is suspended. |
| 404 | `NOT_FOUND` | Not Found. |
| 404 | `SAVED_REPLY_NOT_FOUND` | No saved reply has that id in this workspace. |
| 409 | `CHANGED_MEANWHILE` | Something changed meanwhile. Try again. |
| 409 | `DELETED_BY_VISITOR` | The customer deleted this conversation on their end, so nothing more can be sent in it. |
| 409 | `FILES_GONE` | A file it names couldn't be attached. Send the message again. |
| 409 | `FILES_TOO_LARGE` | Those files are more than one message sends together. |
| 409 | `TOO_MANY_FILES` | That is more files than the workspace's plan takes. Its data holds `limit`. |
| 422 | `PICTURE_REFUSED` | A picture in pictureUrls couldn't be attached, so nothing was written. data.url names it and data.reason says why. Its data holds `url`, `reason`. |
| 422 | `SAVED_REPLY_EMPTY` | That saved reply holds only names this conversation has none for, so nothing is left to send. Write the message in body instead. |
| 429 | `TOO_MANY_REQUESTS` | Too Many Requests. Its data holds `retryAfter`. |

## Example request

```sh
curl -X POST https://app.notert.io/api/v1/conversations/3b7e2a90-5c1d-4f8e-9a6b-1d2c3e4f5a60/messages \
  -H "Authorization: Bearer $NOTERT_API_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
  "messageId": "9c4d1e7a-2b3f-4a6c-8d5e-7f1a2b3c4d50",
  "kind": "reply",
  "body": "You can export them from Billing, under Invoices.",
  "savedReplyId": "4b8e2d6a-1c3f-4a5e-9b7d-0e2c4a6b8d13",
  "pictureUrls": [
    "https://example.com/shots/invoices.png"
  ]
}'
```

## Example response 201

```json
{
  "messageId": "9c4d1e7a-2b3f-4a6c-8d5e-7f1a2b3c4d50",
  "kind": "reply",
  "body": "You can export them from Billing, under Invoices.",
  "sentAt": "2026-11-20T09:15:00.000Z"
}
```
