Get agent history with pagination
GET
/api/v2/agents/{agent_id}/history
Agentsv2
page (int): Page number for pagination (default: 1)
items_per_page (int): Number of items per page (default: 10)
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request GET '/api/v2/agents//history'
Response Response Example
200 - Success Response
{
"success": true,
"message": "Agent history fetched successfully",
"data": {
"history_records": [
{
"history_id": 1,
"history_date": "2024-03-20T10:00:00Z",
"history_change_reason": "Initial checkpoint",
"agent_name": "Test Agent",
"domain": "Test Domain",
"sample_q1": "Sample Question 1",
"sample_q2": "Sample Question 2",
"sample_q3": "Sample Question 3",
"prefix_prompt": "Test prefix prompt",
"access": "Public",
"status": "Live",
"agent_type": {
"id": 1,
"name": "QnA"
},
"llm_config": {
"id": 47,
"model_deployment": [
"gpt-4.1"
],
"model_name": "GPT 4.1",
"is_enabled": true,
"is_default": false
},
"character_voice": {
"id": 1,
"voice_name": "Default Voice",
"voice_identifier": "en-US-JennyNeural",
"gender": "Female"
},
"caching_enabled": true,
"react_enabled": true,
"reasoning_mode": "react",
"instructions": [
"instruction1",
"instruction2"
],
"modified_by": "user@example.com"
}
],
"total_records": 1,
"current_page": 1,
"total_pages": 1
}
}
Request
Path Params
agent_id
integerÂ
required
Query Params
items_per_page
integerÂ
optional
Default:
10
page
integerÂ
optional
Default:
1