Get All Agent Responses
GET
/v2/api/agent/{agent_id}/response
Agent Response
How This Endpoint Works
agent_id
as a path parameter to specify which agent's responses should be retrieved.Viewing Your Agent ID
agent_id
, refer to this guide:How to View Your Agent ID
Complete Guide on Managing Agent Responses
Complete Guide on Agent Responses & Chat Logs
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request GET '/v2/api/agent//response?query_source&items_per_page&page'
Response Response Example
{
"success": true,
"message": "Agent Response Found Successfully.",
"data": {
"count": 41,
"num_pages": 5,
"current_page": 1,
"agent_responses": [
{
"id": 10921,
"comments": [],
"feedback": [],
"question": "What is the overview of the approach combining a pre-trained retriever with a pre-trained seq2seq model?",
"response": {
"query": "detailed overview of the method that integrates a pre-trained retrieval model with a pre-trained sequence-to-sequence (seq2seq) model",
"answer": "Sorry, I cannot find the answer in the available sources.",
"run_id": "92cc760c-6739-4ea0-b2cf-164c9b9ba074",
"history": [
{
"bot": "Sorry, I cannot find the answer in the available sources.",
"user": "What is the overview of the approach combining a pre-trained retriever with a pre-trained seq2seq model?"
}
],
"indexes": [],
"sources": "",
"success": true,
"cache_hit": false,
"agent_mode": "",
"corpus_ids": [
645
],
"references": [
{
"url": "example.pdf",
"order": 1,
"number": 0
}
],
"instructions": [],
"total_tokens": 3384,
"prompt_prefix": "",
"prompt_tokens": 2633,
"completion_tokens": 751,
"followup_questions": []
},
"created_by": "user@example.com",
"created_on": "2025-01-28T20:52:37.043472Z",
"is_deleted": false,
"total_tokens": 3384,
"prompt_tokens": 2633,
"completion_tokens": 751,
"cache_hit": false,
"query_source": "web",
"message_id": null,
"cost": "0.01692",
"chat_thread": 4342,
"agent": 952,
"user": 1,
"llm_config": 8
}
]
}
}
Request
Path Params
agent_id
integerÂ
required
Query Params
query_source
stringÂ
optional
Example:
web
items_per_page
integerÂ
optional
Example:
10
page
integerÂ
optional
Example:
1