Skip to main content
DELETE

Overview

Permanently delete an agent created by the user who owns the API key, together with all its saved versions and unsaved drafts. The API doesn’t check whether phone numbers or campaigns still use the agent, and doesn’t unassign it from them. Assign another agent to those phone numbers before deleting, or their calls won’t have an agent.
Deleting an agent can’t be undone.

Prerequisites

  • An API key for your workspace
  • The agent’s ID, from Get Agents

Request

string
required
Your workspace API key. Create one from the profile menu in the dashboard → API Keys.
string
required
ID of the agent to delete.

Response

string
required
Agent deleted successfully.

Error Handling

Errors return status: false, with the reason in errorMessage.
  • 400 Bad Request – id isn’t a valid ID.
  • 401 Unauthorized – Missing or invalid API key.
  • 404 Not Found – Agent not found: the agent doesn’t exist or wasn’t created by the user who owns the API key.
  • 500 Internal Server Error – Unexpected server error.
Knowledge bases, phone numbers and call history are not deleted with the agent.