Get the default agent
curl --request GET \
--url https://api.telleo.ai/v1/settings/default-agent \
--header 'X-API-Key: <api-key>'import requests
url = "https://api.telleo.ai/v1/settings/default-agent"
headers = {"X-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};
fetch('https://api.telleo.ai/v1/settings/default-agent', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"object": "default_agent",
"agent_id": "<string>",
"agent": {
"id": "<string>",
"object": "<string>",
"name": "<string>",
"enabled": true,
"direction": "<string>",
"deleted": true
},
"ai_calling_provider": "<string>",
"warnings": [
{
"field": "variables.date",
"code": "reserved_variable",
"message": "{{date}} in the agent's script is always filled with the current date and time; this value does not replace it. The agent receives it only as information about the contact."
}
]
}Agents
Get the default agent
The agent your account’s workflow, bulk and manual AI calls use when they do not name one.
Scope: calls:read.
GET
/
settings
/
default-agent
Get the default agent
curl --request GET \
--url https://api.telleo.ai/v1/settings/default-agent \
--header 'X-API-Key: <api-key>'import requests
url = "https://api.telleo.ai/v1/settings/default-agent"
headers = {"X-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};
fetch('https://api.telleo.ai/v1/settings/default-agent', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"object": "default_agent",
"agent_id": "<string>",
"agent": {
"id": "<string>",
"object": "<string>",
"name": "<string>",
"enabled": true,
"direction": "<string>",
"deleted": true
},
"ai_calling_provider": "<string>",
"warnings": [
{
"field": "variables.date",
"code": "reserved_variable",
"message": "{{date}} in the agent's script is always filled with the current date and time; this value does not replace it. The agent receives it only as information about the contact."
}
]
}Authorizations
Your AI calling API key (vak_call_…). Authorization: Bearer <key> also works.
Response
The default agent.
Allowed value:
"default_agent"Show child attributes
Show child attributes
The provider your workflow and bulk AI calls use (VACADEMY_AI for Telleo agents).
Non-fatal notes about what was (not) done, e.g. mobile_number_missing.
Show child attributes
Show child attributes