Skip to main content
GET

Overview

List the WhatsApp numbers connected by the user who owns the API key, with the agent assigned to each. The list isn’t paginated.

Prerequisites

  • An API key for your workspace

Request

string
required
Your workspace API key. Create one from the profile menu in the dashboard → API Keys.

Response

array[object]
Your WhatsApp numbers. Empty if you have none.
string
Integration ID. Use it as phoneNumberId in the other WhatsApp endpoints.
string
The WhatsApp number.
string
basic or pro.
object | null
The assigned agent as { _id, agentName }, or null.
string
The stored AiSensy token, in plain text. Don’t log the response.

Error Handling

  • 401 Unauthorized – Missing or invalid 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.