Conversations
Obter conversa
Changed onRecupera as mensagens de uma conversa.
get/conversations/{id}
Request
- Base URLhttps://api.meuassistente.rdstationmentoria.com.br/rest
- AuthHTTP bearer
Path parameters
id, string required
Identificador da conversa
Response
Successful response
object required
id, string required
Identificador da conversa
title, string required
Título
createdAt, string date-time
Data de criação
status, 'active' | 'finished'
Status
summary, string nullable
Resumo da conversa
messages, object[]
Histórico completo de mensagens trocadas nesta conversa, ordenadas cronologicamente.
Cada mensagem possui:
- id: identificador único da mensagem
- conversationId: identificador da conversa à qual a mensagem pertence
- role: quem falou (system, assistant, user, tool)
- name: nome associado à mensagem, se aplicável
- content: conteúdo textual da mensagem
- toolCallId: identificador da chamada de ferramenta associada, se houver
- toolCalls: lista de chamadas de ferramentas associadas, se houver
- metadata: metadados adicionais em formato livre
- feedback: indica se há feedback (booleano ou null)
- usage: informações de uso, como tokens (se disponíveis)
- createdAt e updatedAt: datas de criação e atualização da mensagem
Exemplo de retorno
[
{
"id": "msg_abc123",
"conversationId": "convo_001",
"role": "user",
"name": "João",
"content": "Olá, tudo bem?",
"createdAt": "2025-07-08T14:30:00.000Z",
"updatedAt": "2025-07-08T14:30:00.000Z"
},
{
"id": "msg_def456",
"conversationId": "convo_001",
"role": "assistant",
"name": null,
"content": "Olá! Como posso te ajudar?",
"feedback": true,
"usage": {
"inputTokens": 6,
"outputTokens": 9,
"totalTokens": 15
},
"createdAt": "2025-07-08T14:30:02.000Z",
"updatedAt": "2025-07-08T14:30:02.000Z"
}
]
Changes
- info
the
createdAtresponse's property default value changed from2026-12-05T00:25:36.124Zto2026-12-05T01:25:43.710Zfor the status - info
the
createdAtresponse's property default value changed from2026-12-05T00:25:36.125Zto2026-12-05T01:25:43.710Zfor the status - info
the
updatedAtresponse's property default value changed from2026-12-05T00:25:36.125Zto2026-12-05T01:25:43.710Zfor the status
- info