Delete Agent
Delete a voice AI agent and all its configurations
DELETE
/
voice-ai
/
agents
/
{agentId}
Delete Agent
curl --request DELETE \
--url https://services.leadconnectorhq.com/voice-ai/agents/{agentId} \
--header 'Authorization: Bearer <token>' \
--header 'Version: <version>'const options = {
method: 'DELETE',
headers: {Version: '<version>', Authorization: 'Bearer <token>'}
};
fetch('https://services.leadconnectorhq.com/voice-ai/agents/{agentId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://services.leadconnectorhq.com/voice-ai/agents/{agentId}"
headers = {
"Version": "<version>",
"Authorization": "Bearer <token>"
}
response = requests.delete(url, headers=headers)
print(response.text){
"statusCode": 400,
"message": "Bad Request"
}{
"statusCode": 401,
"message": "Invalid token: access token is invalid",
"error": "Unauthorized"
}{
"statusCode": 422,
"message": [
"Unprocessable Entity"
],
"error": "Unprocessable Entity"
}Response
Agent deleted successfully
Last modified on March 7, 2026
Was this page helpful?
Delete Agent
curl --request DELETE \
--url https://services.leadconnectorhq.com/voice-ai/agents/{agentId} \
--header 'Authorization: Bearer <token>' \
--header 'Version: <version>'const options = {
method: 'DELETE',
headers: {Version: '<version>', Authorization: 'Bearer <token>'}
};
fetch('https://services.leadconnectorhq.com/voice-ai/agents/{agentId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://services.leadconnectorhq.com/voice-ai/agents/{agentId}"
headers = {
"Version": "<version>",
"Authorization": "Bearer <token>"
}
response = requests.delete(url, headers=headers)
print(response.text){
"statusCode": 400,
"message": "Bad Request"
}{
"statusCode": 401,
"message": "Invalid token: access token is invalid",
"error": "Unauthorized"
}{
"statusCode": 422,
"message": [
"Unprocessable Entity"
],
"error": "Unprocessable Entity"
}