Add a message to a conversation
POST/api/v1/conversations/:conversation_id/messages
Creates a document from the message text and attaches it to the conversation at the given position. If position is omitted, it is appended at the end.
Request
Responses
- 201
- 400
- 401
- 403
- 404
- 409
- 413
- 429
- 500
Message added
Invalid request body
Unauthorized
Forbidden
Conversation or actor not found
CONVERSATION_POSITION_CONFLICT — another message took the requested position first.
REQUEST_REJECTED — the request body is over the size the body parser accepts
QUOTA_EXCEEDED — a requests quota on the calling API key or its project is spent for the window; Retry-After says when it reopens
Response Headers
Retry-After
Seconds until the quota window admits a request again
Unexpected server error — INTERNAL_ERROR, with the raw message never forwarded