Get Agent Responses By User
GET
/v2/api/user/{user_id}/agent-response
Agent Response
How This Endpoint Works
user_id
as a path parameter to fetch responses linked to a particular user.What is a User ID?
How to View Your User ID
user_id
, refer to this guide:How to View Your User ID
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request GET '/v2/api/user//agent-response?query_source&items_per_page&page'
Response Response Example
200 - Example 1
{
"success": true,
"message": "Agent Response Found Successfully.",
"data": {
"count": 191,
"num_pages": 96,
"current_page": 1,
"agent_responses": [
{
"id": 191,
"comments": [
"string"
],
"feedback": [
"string"
],
"agent": {
"id": 4,
"agent_name": "Assistant Beta",
"agent_type": {
"name": "QnA"
},
"created_by": "user@example.com",
"created_on": "2024-11-25T16:18:53.126299Z",
"agent_image": "/path/to/defaultBotImg.png",
"user": 4,
"project": 1
},
"question": "How does the system handle missing values in reports?",
"response": {
"query": "Handling missing values in system reports",
"answer": "The system handles missing values by using predefined rules...",
"references": [
{
"url": "https://docs.example.com/en",
"order": 1,
"number": 0
}
],
"agent_mode": "QnA"
},
"created_by": "user@example.com",
"created_on": "2025-01-13T15:16:13.046203Z",
"query_source": "web",
"user": 4,
"chat_thread": 4
}
]
}
}
Request
Path Params
user_id
integerÂ
required
Query Params
query_source
stringÂ
optional
items_per_page
integerÂ
optional
page
integerÂ
optional