List agents
curl --request GET \
--url https://api.telleo.ai/v1/agents \
--header 'X-API-Key: <api-key>'import requests
url = "https://api.telleo.ai/v1/agents"
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/agents', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"object": "list",
"data": [
{
"id": "<string>",
"object": "agent",
"name": "<string>",
"language": "hi-IN",
"uses_contact_name": true,
"variables": [
"course",
"city"
],
"enabled": true,
"direction": "outbound",
"voice": "hi-IN-Chirp3-HD-Kore",
"tts_model": "google",
"updated_at": "2023-11-07T05:31:56Z"
}
],
"has_more": true
}
Agents
List agents
The agents you can name as agent_id: every agent that is turned on and can call out. Each lists the placeholders its script uses, so you know which variables to send. With include_disabled=true, every agent of your account, including those turned off and inbound-only ones.
Scope: calls:read.
GET
/
agents
List agents
curl --request GET \
--url https://api.telleo.ai/v1/agents \
--header 'X-API-Key: <api-key>'import requests
url = "https://api.telleo.ai/v1/agents"
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/agents', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"object": "list",
"data": [
{
"id": "<string>",
"object": "agent",
"name": "<string>",
"language": "hi-IN",
"uses_contact_name": true,
"variables": [
"course",
"city"
],
"enabled": true,
"direction": "outbound",
"voice": "hi-IN-Chirp3-HD-Kore",
"tts_model": "google",
"updated_at": "2023-11-07T05:31:56Z"
}
],
"has_more": true
}