Delete Agent
curl --request DELETE \
--url https://api.agentline.cloud/v1/agents/{agent_id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.agentline.cloud/v1/agents/{agent_id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.delete(url, headers=headers)
print(response.text)const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.agentline.cloud/v1/agents/{agent_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}Agents
Delete Agent
Delete an AI voice agent.
Permanently removes the agent, its calls, messages, and conversations, and detaches any phone numbers assigned to it. Detached numbers remain active on your account and can be reassigned to another agent.
DELETE
/
v1
/
agents
/
{agent_id}
Delete Agent
curl --request DELETE \
--url https://api.agentline.cloud/v1/agents/{agent_id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.agentline.cloud/v1/agents/{agent_id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.delete(url, headers=headers)
print(response.text)const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.agentline.cloud/v1/agents/{agent_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}