curl --request POST \
--url https://www.tryunleashx.com/api/v1/global/delete-agent \
--header 'Content-Type: application/json' \
--header 'token: <token>' \
--data '
{
"agent_id": 123
}
'curl --request POST \
--url https://www.tryunleashx.com/api/v1/global/delete-agent \
--header 'Content-Type: application/json' \
--header 'token: <token>' \
--data '
{
"agent_id": 123
}
'/api/v1/global/agents/delete
token: <your_api_token>
api_access_token: <your_api_token>
{
"agent_id": 123
}
agent_id as a query parameter:
POST /api/v1/global/agents/delete?agent_id=123
| Field | Type | Description |
|---|---|---|
agent_id | integer | ID of the agent to delete |
200 OK
{
"success": true,
"message": "Voice agent deleted successfully",
"data": {
"agent_id": 123
}
}
{
"error": true,
"message": "Agent ID is required"
}
{
"error": true,
"message": "Invalid Auth Key or Session Expired"
}
{
"error": true,
"message": "Agent not found"
}
curl -X POST https://www.tryunleashx.com/api/v1/global/agents/delete \
-H "Content-Type: application/json" \
-H "token: your_api_token_here" \
-d '{
"agent_id": 123
}'
curl -X POST "https://www.tryunleashx.com/api/v1/global/agents/delete?agent_id=123" \
-H "Content-Type: application/json" \
-H "token: your_api_token_here"
Was this page helpful?