API ReferenceChat
POST /chat/conversations/{id}/attachments
Upload de attachment (pré-mensagem)
POST
/chat/conversations/{id}/attachmentsAuth: accessTokenMultipart upload. Cria message_attachments sem message_id ainda. ID retornado é usado em send_message.attachmentIds.
Request
Esta requisição não tem corpo.
Response
200
Sem corpo na resposta.
Erros
Sem respostas de erro documentadas.
Exemplos
curl -X POST 'http://localhost:3003/chat/conversations/{id}/attachments' \
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer SEU_ACCESS_TOKEN' \
-d '{}'await fetch('http://localhost:3003/chat/conversations/{id}/attachments', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
Authorization: 'Bearer ' + accessToken,
},
body: JSON.stringify({}),
})