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"
]
}
],
"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.
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"
]
}
],
"has_more": true
}