Agents
Delete Agent
Delete a voice agent and all associated data
DELETE
Delete Agent
Permanently delete a voice agent and all its associated data including trainings, actions, and phone number associations. This action cannot be undone.Endpoint
Path parameters
The unique identifier of the voice agent to delete.
Request headers
Bearer token for authentication. Format:
Bearer talq_your_environment_token_hereExample requests
Response
Success Response (200 OK)
Response fields
Indicates if the operation was successful.
Success message confirming the agent was deleted.
Error responses
404 Not Found
401 Unauthorized
403 Forbidden
409 Conflict
Error codes
| Code | Description | HTTP Status |
|---|---|---|
AGENT_NOT_FOUND | Specified agent does not exist | 404 |
INVALID_TOKEN | Authentication token is invalid or missing | 401 |
UNAUTHORIZED | User does not have permission to delete this agent | 403 |
AGENT_HAS_ACTIVE_CALLS | Agent cannot be deleted while it has active calls | 409 |
AGENT_IS_PUBLISHED | Published agents must be unpublished before deletion | 409 |
Important notes
Published agents must be unpublished first. If the agent is currently published, you must unpublish it before deletion.
Related endpoints
- List Agents:
GET /api/v1/agents - Get Agent:
GET /api/v1/agents/{agent_id} - Unpublish Agent:
POST /api/v1/agents/{agent_id}/unpublish - Create Agent:
POST /api/v1/agents