---
title: "Add Message to Thread"
method: POST
path: "/inbox/{thread_id}/messages"
tags: ["Inbox"]
---

# Add Message to Thread

`POST /inbox/{thread_id}/messages`

## Request

- Base URL: `https://app.boei.help/api/v1`
- URL: `https://app.boei.help/api/v1/inbox/{thread_id}/messages`
- Auth: HTTP bearer

Add a new message to an existing thread.

CRITICAL: sender_type=agent records the message as a reply from your team; sender_type=contact (default) records it as an incoming message. This stores the message in the inbox only, it does not email or chat the visitor.

## Request body

- object
  - `message` string, required: The message body.
  - `sender_type` string, nullable: Sender type (contact, agent). Default: contact.
  - `sender_name` string, nullable: Sender's name.

## Response `201`

- object
  - `data` object
    - `id` integer
    - `direction` string
    - `sender_type` string
    - `sender_name` string
    - `body` string
    - `content_type` string
    - `created_at` string

---

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