Skip to content

Post Message

POST
/api/chat/threads/{thread_uuid}/messages
curl --request POST \
--url https://example.com/api/chat/threads/example/messages \
--header 'Content-Type: application/json' \
--data '{}'

Post a message to a thread.

Applies rate limiting (15 msgs/30s), input validation, and deduplication.

Args: thread_uuid: Thread UUID payload: {body_text: str, dedupe_key?: str}

Returns: Created message object

Raises: 429: Rate limit exceeded (includes Retry-After header) 400: Invalid message content 403: Unauthorized access 404: Thread not found

thread_uuid
required
Thread Uuid
string
Media typeapplication/json
Payload
object
key
additional properties
any
Examplegenerated
{}

Successful Response

Media typeapplication/json
Examplegenerated
example

Validation Error

Media typeapplication/json
HTTPValidationError
object
detail
Detail
Array<object>
ValidationError
object
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string
Examplegenerated
{
"detail": [
{
"loc": [
"example"
],
"msg": "example",
"type": "example"
}
]
}