Agents
List revisions
Every saved version of the agent, newest first. Each item is the full agent exactly as it was saved at that revision. limit is 1–100 (default 20). When has_more is true, send next_cursor back as cursor; it is the revision number the next page starts at.
GET
/
v2
/
agents
/
{agent_id}
/
revisions
List revisions
curl --request GET \
--url https://sandbox.voice.miraiminds.co/v2/agents/{agent_id}/revisions \
--header 'Authorization: Bearer <token>'import requests
url = "https://sandbox.voice.miraiminds.co/v2/agents/{agent_id}/revisions"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const url = 'https://sandbox.voice.miraiminds.co/v2/agents/{agent_id}/revisions';
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch(url, options)
.then(res => res.json())
.then(json => console.log(json))
.catch(err => console.error(err));{
"data": [
{
"revision": 2,
"draft": false,
"archived": false,
"analysis": {
"enabled": false
},
"id": "agt_01K2M4P7QRSTVWXYZ0A1B2C3",
"object": "agent",
"name": "सर्विस रिमाइंडर",
"system_prompt": "आप आशु हैं, मिराई मोटर्स के सर्विस एडवाइज़र. {{name}} जी की {{vehicle}} की सर्विस {{due_date}} को ड्यू है. हिंदी में बात करें, छोटे वाक्य बोलें, और ग्राहक से सर्विस की तारीख कन्फर्म करें.",
"first_message": "नमस्ते, आशु बोल रहा हूं. सर्विस की बात करनी थी.",
"voice": {
"voice_id": "neha",
"language": "hi"
},
"language": "hi",
"max_duration_secs": 300,
"end_call": {
"enabled": true,
"message": "धन्यवाद, आपका दिन शुभ हो.",
"confirm": true
},
"voicemail": {
"action": "hangup"
},
"background_sound": {
"sound": "off"
},
"behavior": {
"interruptions": "normal",
"adaptive_interruptions": true,
"pass_through": [],
"date_awareness": true
},
"secondary_languages": [
"en"
],
"tools": [],
"created_at": "2026-08-11T09:14:02Z",
"updated_at": "2026-08-11T09:22:10Z"
},
{
"revision": 1,
"draft": false,
"archived": false,
"analysis": {
"enabled": false
},
"id": "agt_01K2M4P7QRSTVWXYZ0A1B2C3",
"object": "agent",
"name": "सर्विस रिमाइंडर",
"system_prompt": "आप आशु हैं, मिराई मोटर्स के सर्विस एडवाइज़र. {{name}} जी की {{vehicle}} की सर्विस {{due_date}} को ड्यू है. हिंदी में बात करें, छोटे वाक्य बोलें, और ग्राहक से सर्विस की तारीख कन्फर्म करें.",
"first_message": "नमस्ते, मैं आशु बोल रहा हूं मिराई मोटर्स से. एक मिनट है आपके पास?",
"voice": {
"voice_id": "ashu",
"language": "hi"
},
"language": "hi",
"max_duration_secs": 300,
"end_call": {
"enabled": true,
"message": "धन्यवाद, आपका दिन शुभ हो.",
"confirm": true
},
"voicemail": {
"action": "hangup"
},
"background_sound": {
"sound": "off"
},
"behavior": {
"interruptions": "normal",
"adaptive_interruptions": true,
"pass_through": [],
"date_awareness": true
},
"secondary_languages": [
"en"
],
"tools": [],
"created_at": "2026-08-11T09:14:02Z",
"updated_at": "2026-08-11T09:14:02Z"
}
],
"has_more": false,
"next_cursor": ""
}{
"error": {
"code": "not_found",
"message": "agent not found"
}
}Authorizations
Response
Newest first
⌘I
List revisions
curl --request GET \
--url https://sandbox.voice.miraiminds.co/v2/agents/{agent_id}/revisions \
--header 'Authorization: Bearer <token>'import requests
url = "https://sandbox.voice.miraiminds.co/v2/agents/{agent_id}/revisions"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const url = 'https://sandbox.voice.miraiminds.co/v2/agents/{agent_id}/revisions';
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch(url, options)
.then(res => res.json())
.then(json => console.log(json))
.catch(err => console.error(err));{
"data": [
{
"revision": 2,
"draft": false,
"archived": false,
"analysis": {
"enabled": false
},
"id": "agt_01K2M4P7QRSTVWXYZ0A1B2C3",
"object": "agent",
"name": "सर्विस रिमाइंडर",
"system_prompt": "आप आशु हैं, मिराई मोटर्स के सर्विस एडवाइज़र. {{name}} जी की {{vehicle}} की सर्विस {{due_date}} को ड्यू है. हिंदी में बात करें, छोटे वाक्य बोलें, और ग्राहक से सर्विस की तारीख कन्फर्म करें.",
"first_message": "नमस्ते, आशु बोल रहा हूं. सर्विस की बात करनी थी.",
"voice": {
"voice_id": "neha",
"language": "hi"
},
"language": "hi",
"max_duration_secs": 300,
"end_call": {
"enabled": true,
"message": "धन्यवाद, आपका दिन शुभ हो.",
"confirm": true
},
"voicemail": {
"action": "hangup"
},
"background_sound": {
"sound": "off"
},
"behavior": {
"interruptions": "normal",
"adaptive_interruptions": true,
"pass_through": [],
"date_awareness": true
},
"secondary_languages": [
"en"
],
"tools": [],
"created_at": "2026-08-11T09:14:02Z",
"updated_at": "2026-08-11T09:22:10Z"
},
{
"revision": 1,
"draft": false,
"archived": false,
"analysis": {
"enabled": false
},
"id": "agt_01K2M4P7QRSTVWXYZ0A1B2C3",
"object": "agent",
"name": "सर्विस रिमाइंडर",
"system_prompt": "आप आशु हैं, मिराई मोटर्स के सर्विस एडवाइज़र. {{name}} जी की {{vehicle}} की सर्विस {{due_date}} को ड्यू है. हिंदी में बात करें, छोटे वाक्य बोलें, और ग्राहक से सर्विस की तारीख कन्फर्म करें.",
"first_message": "नमस्ते, मैं आशु बोल रहा हूं मिराई मोटर्स से. एक मिनट है आपके पास?",
"voice": {
"voice_id": "ashu",
"language": "hi"
},
"language": "hi",
"max_duration_secs": 300,
"end_call": {
"enabled": true,
"message": "धन्यवाद, आपका दिन शुभ हो.",
"confirm": true
},
"voicemail": {
"action": "hangup"
},
"background_sound": {
"sound": "off"
},
"behavior": {
"interruptions": "normal",
"adaptive_interruptions": true,
"pass_through": [],
"date_awareness": true
},
"secondary_languages": [
"en"
],
"tools": [],
"created_at": "2026-08-11T09:14:02Z",
"updated_at": "2026-08-11T09:14:02Z"
}
],
"has_more": false,
"next_cursor": ""
}{
"error": {
"code": "not_found",
"message": "agent not found"
}
}