Retrieve Response
Retrieve a single response.
GET /agents/{agentId}/conversations/{conversationId}/response/{responseId}
Path Parameters
Section titled “Path Parameters”agentId string Required
The agent id
conversationId string Required
The conversation id
responseId string Required
The response id
Response Type
Section titled “Response Type”type InconvoResponseRetrieve = { id: string; input: { message: string; context: Record<string, unknown>; }; output: { type: "text" | "chart" | "table"; message: string; chart?: { $schema: "https://vega.github.io/schema/vega-lite/v5.json"; // ... vega-lite spec }; table?: { head: string[]; body: string[][]; }; };}; Request
import Inconvo from "@inconvoai/node";
const inconvo = new Inconvo({ apiKey: process.env.INCONVO_API_KEY});
const response = await inconvo.agents.conversations.response.retrieve( "resp_abc123", { agentId: "agt_123", conversation_id: "convo_abc123" });
console.log(response);{ "id": "e45f7d78-36d5-4130-926a-78e334255609", "input": { "message": "What are the top products last year?", "context": { "organisationId": 1 } }, "output": { "type": "table", "message": "Top products by quantity sold in 2025 (2025-01-01 to 2025-12-31).", "table": { "head": ["Product", "Quantity Sold"], "body": [ ["iPhone 15", "8456"], ["MacBook Pro", "3421"], ["AirPods Pro", "2890"], ["iPad Pro", "2134"], ["Apple Watch", "1876"] ] } }}