# Reply or add a note

`POST /conversations/{conversation_id}/messages`

Adds an agent reply (sent to the customer) or an internal note (seen by your team only). Sends the `message.created` webhook.

Server: `https://api.relaypoint.example/v1`

Authentication: bearerAuth (http bearer)

## Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `conversation_id` | path | string | yes |  |

## Request body (required)

`application/json` · object

- `type` · string · required —  One of: `"reply"`, `"note"`.
- `body` · string · required
- `author_id` · string — The teammate it is sent as. Defaults to the key's owner.

## Example request (curl)

```shell
curl https://api.relaypoint.example/v1/conversations/conv_8h2k1x/messages \
  --request POST \
  --header 'Authorization: Bearer YOUR_TOKEN' \
  --header 'Content-Type: application/json' \
  --data '{
    "type": "reply",
    "body": "Thanks Jamie. Your signing secret was rotated on Monday; copy the new one from Settings › Integrations › Webhooks."
  }'
```

## Responses

### 201 — The new message.

`application/json` · Message

- `id` · string
- `type` · string —  One of: `"reply"`, `"note"`.
- `author` · object
  - `type` · string —  One of: `"customer"`, `"agent"`.
  - `name` · string
- `body` · string
- `created_at` · string<date-time>

```json
{
  "id": "msg_6t1v8e",
  "type": "reply",
  "author": {
    "type": "agent",
    "name": "Priya Shah"
  },
  "body": "Thanks Jamie. Your signing secret was rotated on Monday; copy the new one from Settings › Integrations › Webhooks.",
  "created_at": "2026-10-30T09:31:05Z"
}
```

### 400 — A parameter is missing or wrong. `error.field` names it.

`application/json` · Error

- `error` · object
  - `code` · string
  - `message` · string
  - `field` · string

### 404 — The id doesn't exist in this workspace.

`application/json` · Error

- `error` · object
  - `code` · string
  - `message` · string
  - `field` · string
