Skip to main content
DELETE

Overview

Permanently delete a WhatsApp agent created by the user who owns the API key. The API doesn’t unassign the agent from a WhatsApp number. Remove it first with Remove Agent from WhatsApp Number, or assign another agent, so the number isn’t left pointing at a deleted agent.
This can’t be undone.

Prerequisites

Request

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

Response

Error Handling

Errors return status: false, with the reason in errorMessage.
  • 400 Bad Request – Invalid Agent ID.
  • 401 Unauthorized – Missing or invalid API key.
  • 404 Not Found – WhatsApp agent not found: it doesn’t exist, is already deleted, or wasn’t created by the user who owns the API key.
  • 429 Too Many Requests – More than 1,000 WhatsApp requests in 15 minutes from your IP address.
  • 500 Internal Server Error – Unexpected server error.