---
title: "Create message"
method: POST
path: "/messages"
tags: ["Messages"]
---

# Create message

`POST /messages`

## Request

- Base URL: `https://api.weav.com/v1`
- URL: `https://api.weav.com/v1/messages`
- Auth: HTTP bearer

Note: API currently validates sender_type as customer|user. The API does not accept `metadata` or `is_ai_assisted` in requests.

## Request body

- object
  - `conversation_id` string, uuid, required
  - `sender_type` 'customer' | 'user', required
  - `sender_id` string, uuid, nullable
  - `content` string, required

## Response `201`

Message created successfully

- Message
  - `id` string, uuid
  - `conversation_id` string, uuid
  - `sender_type` 'customer' | 'user' | 'agent' | 'system'
  - `sender_id` string, uuid, nullable
  - `customer_id` string, uuid, nullable
  - `content` string
  - `sent_at` string, date-time
  - `is_internal` boolean
  - `from` string[], nullable
  - `to` string[], nullable
  - `cc` string[], nullable
  - `bcc` string[], nullable
  - `email_status` string, nullable
  - `email_error_message` string, nullable
  - `created_at` string, date-time, nullable

## Other responses

- `400`: Validation error
- `401`: Unauthorized

---

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