Number Management

View, monitor, diagnose, and manage your BYON numbers.

After onboarding numbers via Embedded Signup, you can manage them from your App's detail page in the dashboard.

Viewing numbers

Each BYON number shows:

FieldDescription
Phone numberThe connected WhatsApp Business number
Display nameThe WhatsApp Business display name
HealthPer-number status: active or unhealthy
Connected sinceWhen the number was onboarded
ConversationsActive conversation count

Health status

Each BYON number has a per-number status driven by whether its Meta access token is broken:

StatusMeaningAction needed
activeToken is valid, messages flow normallyNone
unhealthyToken is broken (revoked/expired) — sends and receives failDisconnect and re-run Embedded Signup

App-level aggregate

Your App rolls its numbers up into an aggregate shown as healthy, degraded, or down:

  • healthy — all numbers active
  • degraded — at least one number unhealthy
  • down — all numbers unhealthy

Listing numbers

Webhooks can be missed. To reconcile your records with ours, list the numbers connected to your App. Both endpoints need an ak_ App key and only ever return that App's own numbers.

curl "https://api.pipes.bot/v1/numbers?limit=50" \
  -H "Authorization: Bearer ak_your_app_key"

Response

{
  "data": [
    {
      "numberId": "pn_abc123",
      "phoneNumber": "+55 11 99999-0000",
      "displayName": "Acme Store",
      "status": "active",
      "mode": "cloud_api",
      "metadata": { "customerId": "cus_123" },
      "connectedAt": "2026-11-01T10:29:41.000Z"
    }
  ],
  "nextCursor": null
}

Numbers come back oldest first, including the ones still finishing registration, so you can see every customer who started onboarding. limit defaults to 50 (max 100). When nextCursor isn't null, pass it back as ?cursor= to get the next page. Treat the cursor as opaque: it is a keyset over (connectedAt, numberId), so a number disconnected between two pages can't cut the listing short. A cursor this endpoint didn't issue returns 400 INVALID_CURSOR.

To fetch a single number, call GET /v1/numbers/{numberId}. It returns the same object, unwrapped.

Fields

FieldTypeDescription
numberIdstringThe same value as poolNumberId everywhere else in the API, and as data.numberId in number.onboarded. Use it to send messages
phoneNumberstringThe number as WhatsApp displays it (for example +55 11 99999-0000), not E.164
displayNamestringThe WhatsApp Business display name
statusstringSee below
modestringcloud_api, or coexistence when the number also stays on the WhatsApp Business app
metadataobject | nullThe metadata you passed to POST /v1/apps/token, or {} if you passed none. null for numbers connected before November 2026 and for numbers added from the dashboard
connectedAtstringISO timestamp of when the number was connected

status values

ValueMeaning
activeReady to send and receive
pendingRegistration with WhatsApp is still running
needs_pinThe customer has to enter the number's two-step verification PIN on the onboarding page
blockedToo many registration attempts. Retries are paused for a while
token_invalidMeta revoked the access token — the customer has to reconnect the number. Shown as unhealthy in the dashboard
inactiveConnected but disabled

status comes from PipesBot's own records and never calls Meta, so listing is cheap. For what Meta thinks of a number right now — quality rating, messaging limit tier, payment or verification problems — run Diagnostics on that number.

Error reference

StatusCodeDescription
400INVALID_REQUESTlimit is not a positive integer
400INVALID_CURSORcursor was not issued by this endpoint
401UNAUTHORIZEDMissing or invalid Authorization header, or invalid API key
403BYON_ONLYRequires an ak_ key (not pk_)
404NUMBER_NOT_FOUNDGET /v1/numbers/{numberId} only: the number doesn't exist, or belongs to another App

Diagnostics

A valid token doesn't mean your messages will be delivered. Meta accepts a send (HTTP 200 plus a wamid) even when the number, its WABA, or the business behind it can't deliver it. The failure only arrives later, as a failed status webhook. A common example is a WABA blocked by a payment method error (141006): inbound messages keep arriving, but none of your sends do.

Diagnostics asks Meta for the number's health_status, which covers every entity in the chain: the phone number, the WABA, the business, and the app. For each one you get whether it can send messages, the errors blocking it, and the fix Meta suggests.

Via dashboard

In your App's Numbers tab, click Diagnostics on a BYON number. The dialog shows:

  • The overall verdict, plus a badge for each entity with its errors, Meta's suggested fix, and any additional info (for example, a display name that is still pending approval)
  • Phone details: name status, connection status, platform, quality rating, and messaging limit tier
  • Send a test message, as a template (the default) or as text. It shows Meta's raw response. A 200 means Meta accepted the message, not that it was delivered.

Running Diagnostics from the dashboard also refreshes the number's health status. A number is marked unhealthy when Meta rejects the token, and goes back to active only after Meta answers successfully.

Via API

curl https://api.pipes.bot/v1/pool-numbers/pn_abc123/health \
  -H "Authorization: Bearer ak_your_app_key"

This endpoint skips the template-scope and WABA checks that the template endpoints run, so you can call it on a number that is misconfigured or broken.

Response

{
  "checkedAt": "2026-10-25T14:03:11.204Z",
  "canSendMessage": "BLOCKED",
  "entities": [
    {
      "type": "PHONE_NUMBER",
      "id": "100000000000001",
      "canSendMessage": "LIMITED",
      "errors": [
        {
          "code": 138024,
          "description": "WhatsApp Business calling cannot use SIP because it is not enabled",
          "solution": "Configure SIP using {PHONE_NUMBER_ID}/settings API",
          "area": "calling"
        }
      ],
      "additionalInfo": [
        "Your display name has not been approved yet. Your message limit will increase after the display name is approved."
      ]
    },
    {
      "type": "WABA",
      "id": "200000000000002",
      "canSendMessage": "BLOCKED",
      "errors": [
        {
          "code": 141006,
          "description": "There is an error with the payment method. This will block business initiated conversations.",
          "solution": "There was an error with your payment method. Please add a new payment method to the account.",
          "area": "messaging"
        }
      ],
      "additionalInfo": []
    },
    {
      "type": "BUSINESS",
      "id": "300000000000003",
      "canSendMessage": "LIMITED",
      "errors": [
        {
          "code": 141010,
          "description": "The Business has not passed business verification.",
          "solution": "Visit business settings and start or resolve the business verification request.",
          "area": "messaging"
        }
      ],
      "additionalInfo": []
    },
    {
      "type": "APP",
      "id": "400000000000004",
      "canSendMessage": "AVAILABLE",
      "errors": [],
      "additionalInfo": []
    }
  ],
  "phone": {
    "displayPhoneNumber": "+55 11 99999-0000",
    "verifiedName": "Acme Store",
    "status": "CONNECTED",
    "nameStatus": "AVAILABLE_WITHOUT_REVIEW",
    "qualityRating": "GREEN",
    "messagingLimitTier": "TIER_250",
    "platformType": "CLOUD_API",
    "codeVerificationStatus": null
  },
  "error": null
}
FieldDescription
checkedAtISO timestamp of the check
canSendMessageOverall verdict: AVAILABLE, LIMITED, or BLOCKED. null when Meta couldn't be queried (see error)
entities[].typePHONE_NUMBER, WABA, BUSINESS, or APP
entities[].canSendMessageVerdict for that entity
entities[].errors[]Meta's code, description, and suggested solution (null if Meta gave none)
entities[].errors[].areamessaging or calling. WhatsApp calling (SIP) errors (138xxx) appear in the same list but don't affect messaging
entities[].additionalInfoInformational notes from Meta, such as a pending display name
phoneNumber details as reported by Meta. null when the check failed
errornull on success. Otherwise { code, message, tokenInvalid }

canSendMessage values:

ValueMeaning
AVAILABLENo restrictions
LIMITEDCan send, with restrictions (for example a lower messaging limit until business verification or display name approval)
BLOCKEDCan't send. Check the messaging errors on the entity marked BLOCKED for the cause and fix

When Meta can't be queried

If the Graph call itself fails (expired token, wrong number id, network error), the endpoint still returns 200, with canSendMessage: null, empty entities, phone: null, and the cause in error:

{
  "checkedAt": "2026-10-25T14:03:11.204Z",
  "canSendMessage": null,
  "entities": [],
  "phone": null,
  "error": {
    "code": 190,
    "message": "Error validating access token: Session has expired.",
    "tokenInvalid": true
  }
}

tokenInvalid: true means Meta rejected the access token (codes 190 / 102). Disconnect the number and re-run Embedded Signup.

Error reference

StatusCodeDescription
401UNAUTHORIZEDMissing or invalid Authorization header, or not an ak_ key
403FORBIDDENThe number does not belong to your App
404POOL_NUMBER_NOT_FOUNDNumber not found, or not a BYON number

Disconnecting a number

Via dashboard

To remove a BYON number from your App:

  1. Navigate to the number in your App's detail page
  2. Click Disconnect
  3. Confirm the action

Via API

You can also disconnect a number programmatically:

curl -X DELETE https://api.pipes.bot/v1/pool-numbers/pn_abc123 \
  -H "Authorization: Bearer ak_your_app_key"

Response

{ "success": true }

Error reference

StatusCodeDescription
401UNAUTHORIZEDMissing or invalid Authorization header
403BYON_ONLYRequires an ak_ key (not pk_)
403FORBIDDENThe number does not belong to your App
404POOL_NUMBER_NOT_FOUNDPool number not found
404NOT_BYON_NUMBEROnly BYON numbers can be removed via API
500INTERNAL_SERVER_ERRORFailed to disconnect number

What happens when you disconnect

Disconnecting a number:

  • Removes the number from your App
  • Cleans up associated conversations
  • Revokes the webhook subscription with Meta (best-effort)
  • The number can be re-onboarded later if needed

Billing

Each active BYON number costs $5/month, billed as part of your Pro or Pro+ subscription. Disconnecting a number stops billing for it at the end of the current billing cycle.

Next steps

On this page