Skip to main content
PUT

Overview

Remove the agent assigned to one of your WhatsApp integrations. The agent itself isn’t deleted, and the integration stays connected. The number has no agent until you assign one with Assign Agent to WhatsApp Number.

Prerequisites

Request

string
required
Your workspace API key. Create one from the profile menu in the dashboard → API Keys.
string
required
Integration ID (the _id from Get WhatsApp Numbers).

Response

The request also succeeds when the number has no agent.

Error Handling

Errors return status: false, with the reason in errorMessage.
  • 400 Bad Request – Invalid Phone Number ID.
  • 401 Unauthorized – Missing or invalid API key.
  • 404 Not Found – WhatsApp number not found: it doesn’t exist or wasn’t connected 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.