Delete an agent
curl --request DELETE \
--url https://api.telleo.ai/v1/agents/{id} \
--header 'X-API-Key: <api-key>'import requests
url = "https://api.telleo.ai/v1/agents/{id}"
headers = {"X-API-Key": "<api-key>"}
response = requests.delete(url, headers=headers)
print(response.text)const options = {method: 'DELETE', headers: {'X-API-Key': '<api-key>'}};
fetch('https://api.telleo.ai/v1/agents/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"id": "<string>",
"object": "<string>",
"deleted": true
}Agents
Delete an agent
Deletes an agent nothing uses any more. While it is the default agent, an IVR step, a workflow’s AI call step, or has calls waiting, it is refused with agent_in_use and the list of places.
Scope: agents:manage.
DELETE
/
agents
/
{id}
Delete an agent
curl --request DELETE \
--url https://api.telleo.ai/v1/agents/{id} \
--header 'X-API-Key: <api-key>'import requests
url = "https://api.telleo.ai/v1/agents/{id}"
headers = {"X-API-Key": "<api-key>"}
response = requests.delete(url, headers=headers)
print(response.text)const options = {method: 'DELETE', headers: {'X-API-Key': '<api-key>'}};
fetch('https://api.telleo.ai/v1/agents/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"id": "<string>",
"object": "<string>",
"deleted": true
}