Skip to main content
DELETE

Overview

Permanently delete a phone number you no longer use. It is removed from your phone number lists and can’t be selected for new campaigns. The number is not removed from campaigns that already use it, and the API doesn’t check for them. Campaigns that call from a deleted number can’t place calls or retries from it.

Prerequisites

  • An API key for your workspace
  • The phone number’s ID (_id from Get Phone Numbers). The number must have been added by the user who owns the API key.
  • Remove the number from any running campaign first with Update Campaign.

Request

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

Response

string
required
ID of the deleted phone number.

Error Handling

Errors return status: false, with the reason in errorMessage.
  • 400 Bad Request – Invalid Phone ID.
  • 401 Unauthorized – Missing or invalid API key.
  • 404 Not Found – Phone not found: the number doesn’t exist, is already deleted, or wasn’t added by the user who owns the API key.
  • 500 Internal Server Error – Unexpected server error.
Deletion can’t be undone. To use the number again, add it again with Add Phone Number; it gets a new ID.