import requests
url = "https://api.diga.io/v1/agent/{agent_id}/version"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"data": [
{
"agent_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"modified_at": "2023-11-07T05:31:56Z",
"created_at": "2023-11-07T05:31:56Z",
"version_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"version_number": 123,
"version_created_at": "2023-11-07T05:31:56Z",
"voice": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"description": "<string>",
"preview_url": "<string>"
},
"language": "es",
"mode": "free",
"version_name": "<string>",
"is_draft": false,
"is_published": false,
"name": "<string>",
"description": "<string>",
"prompt": "<string>",
"greeting": "<string>",
"time_before_start": 123,
"voice_speed": 1,
"boosted_keywords": [
"<string>"
],
"max_reminder_count": 3,
"reminder_frequency_ms": 7500,
"reminder_messages": [],
"knowledge_base_ids": [],
"conversational_path_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"integrations": [],
"call_tools": [],
"dynamic_variables": {},
"background_audio": "call_center",
"pronunciation_dict": {}
}
],
"has_more": true,
"first_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"last_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"current_page": 123,
"total_pages": 123
}Retrieve a paginated list of all versions for a specific agent, including draft and published versions.
import requests
url = "https://api.diga.io/v1/agent/{agent_id}/version"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"data": [
{
"agent_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"modified_at": "2023-11-07T05:31:56Z",
"created_at": "2023-11-07T05:31:56Z",
"version_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"version_number": 123,
"version_created_at": "2023-11-07T05:31:56Z",
"voice": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"description": "<string>",
"preview_url": "<string>"
},
"language": "es",
"mode": "free",
"version_name": "<string>",
"is_draft": false,
"is_published": false,
"name": "<string>",
"description": "<string>",
"prompt": "<string>",
"greeting": "<string>",
"time_before_start": 123,
"voice_speed": 1,
"boosted_keywords": [
"<string>"
],
"max_reminder_count": 3,
"reminder_frequency_ms": 7500,
"reminder_messages": [],
"knowledge_base_ids": [],
"conversational_path_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"integrations": [],
"call_tools": [],
"dynamic_variables": {},
"background_audio": "call_center",
"pronunciation_dict": {}
}
],
"has_more": true,
"first_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"last_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"current_page": 123,
"total_pages": 123
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
x >= 11 <= x <= 100asc, desc Enum for Agent Modes.
free, path