Get Agent Responses By Project
GET
/v2/api/project/{project_id}/agent-response
Agent Response
How This Endpoint Works
project_id
as a path parameter to fetch responses related to a specific project.What is a Project ID?
How to View Your Project ID
project_id
, refer to this guide:How to View Your Project ID
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request GET '/v2/api/project//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": 2,
"agent_responses": [
{
"id": 101,
"comments": [
"string"
],
"feedback": [
"string"
],
"agent": {
"id": 5,
"agent_name": "Support Bot",
"agent_type": {
"name": "QnA"
},
"created_by": "admin@example.com",
"created_on": "2024-11-12T01:48:44.959126Z",
"agent_image": "https://example.com/default-agent.png",
"user": 3,
"project": 2
},
"question": "Hello, how can I reset my password?",
"response": {
"query": "Hello, how can I reset my password?",
"answer": "You can reset your password by clicking 'Forgot Password' on the login page.",
"references": [
"string"
],
"agent_mode": "QnA"
},
"created_by": "user@example.com",
"created_on": "2025-01-02T21:55:50.071072Z",
"query_source": "web",
"user": 4,
"chat_thread": 3
}
]
}
}
Request
Path Params
project_id
integerÂ
required
Query Params
query_source
stringÂ
optional
items_per_page
integerÂ
optional
page
integerÂ
optional