---
title: "Add a message to a conversation"
method: POST
path: "/conversations/{id}/messages"
tags: ["conversations"]
---

# Add a message to a conversation

`POST /conversations/{id}/messages`

## Request

- Base URL: `https://corebee.ai/api/v1`
- URL: `https://corebee.ai/api/v1/conversations/{id}/messages`
- Auth: HTTP bearer

## Path parameters

- `id` string, uuid, required

## Request body

- MessageCreate
  - `content` string, required
  - `sender_type` 'agent' | 'customer' | 'agent_bot'
  - `content_type` integer
  - `message_type` integer
  - `private` boolean

## Response `201`

Created

- object
  - `data` Message, required
    - `id` string, uuid
    - `conversation_id` string, uuid
    - `content` string
    - `content_type` integer
    - `message_type` integer
    - `sender_type` 'agent' | 'customer' | 'agent_bot': Who sent the message.
    - `private` boolean
    - `status` integer
    - `created_at` string, date-time

## Other responses

- `400`: Validation error
- `401`: Invalid or missing credential
- `404`: Not found

---

[API](https://skmtc.dev/corebee/apis/corebee-api.md) · [All operations](https://skmtc.dev/corebee/apis/corebee-api/llms.txt) · [OpenAPI document](https://skmtc.dev/corebee/apis/corebee-api/revisions/a48ea543b4dc?raw)
