Set the default agent
curl --request PUT \
--url https://api.telleo.ai/v1/settings/default-agent \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"agent_id": "17ea33d2-5b6c-4c1e-9a1f-2d4e6f8a9b0c"
}
'import requests
url = "https://api.telleo.ai/v1/settings/default-agent"
payload = { "agent_id": "17ea33d2-5b6c-4c1e-9a1f-2d4e6f8a9b0c" }
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({agent_id: '17ea33d2-5b6c-4c1e-9a1f-2d4e6f8a9b0c'})
};
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
Set the default agent
Makes an enabled agent that places calls (outbound or both) your account’s default. Only this one setting changes.
Scope: agents:manage.
PUT
/
settings
/
default-agent
Set the default agent
curl --request PUT \
--url https://api.telleo.ai/v1/settings/default-agent \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"agent_id": "17ea33d2-5b6c-4c1e-9a1f-2d4e6f8a9b0c"
}
'import requests
url = "https://api.telleo.ai/v1/settings/default-agent"
payload = { "agent_id": "17ea33d2-5b6c-4c1e-9a1f-2d4e6f8a9b0c" }
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({agent_id: '17ea33d2-5b6c-4c1e-9a1f-2d4e6f8a9b0c'})
};
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.
Body
application/json
Response
The new default.
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