POST
/api/v1/chat/conversations/:id/messagesEnviar mensagem
Contrato OpenAPI
operationId: createChatMessage · Implementada
Baixar o contrato OpenAPI 3.1.
Parâmetros
| Nome | Local | Obrigatório | Tipo |
|---|---|---|---|
id | path | sim | string |
Idempotency-Key | header | sim | string |
Accept | header | não | string |
Schema do request
JSON
{
"additionalProperties": false,
"properties": {
"attachmentIds": {
"items": {
"maxLength": 200,
"minLength": 1,
"type": "string"
},
"maxItems": 5,
"type": "array",
"uniqueItems": true
},
"content": {
"maxLength": 20000,
"minLength": 1,
"type": "string"
},
"responseMode": {
"default": "json",
"enum": [
"json",
"sse"
],
"type": "string"
},
"socialUrl": {
"format": "uri",
"maxLength": 2048,
"pattern": "^https://(?:[^/?#@]+\\.)?(?:tiktok\\.com|instagram\\.com|youtube\\.com|youtu\\.be|facebook\\.com|fb\\.watch|twitter\\.com|x\\.com)(?::[0-9]+)?(?:[/?#]|$)",
"type": "string"
}
},
"required": [
"content"
],
"type": "object"
}Respostas
| HTTP | Significado |
|---|---|
200 | Replay JSON de um turno existente ou stream SSE do turno |
202 | Turno aceito |
default | Erro padronizado |
⚠️ Narrativa ausente. Método, autenticação, schemas e respostas abaixo vêm do contrato OpenAPI canônico.