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:
| Field | Description |
|---|---|
| Phone number | The connected WhatsApp Business number |
| Display name | The WhatsApp Business display name |
| Health | Per-number status: active or unhealthy |
| Connected since | When the number was onboarded |
| Conversations | Active conversation count |
Health status
Each BYON number has a per-number status driven by whether its Meta access token is broken:
| Status | Meaning | Action needed |
|---|---|---|
| active | Token is valid, messages flow normally | None |
| unhealthy | Token is broken (revoked/expired) — sends and receives fail | Disconnect 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
| Field | Type | Description |
|---|---|---|
numberId | string | The same value as poolNumberId everywhere else in the API, and as data.numberId in number.onboarded. Use it to send messages |
phoneNumber | string | The number as WhatsApp displays it (for example +55 11 99999-0000), not E.164 |
displayName | string | The WhatsApp Business display name |
status | string | See below |
mode | string | cloud_api, or coexistence when the number also stays on the WhatsApp Business app |
metadata | object | null | The 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 |
connectedAt | string | ISO timestamp of when the number was connected |
status values
| Value | Meaning |
|---|---|
active | Ready to send and receive |
pending | Registration with WhatsApp is still running |
needs_pin | The customer has to enter the number's two-step verification PIN on the onboarding page |
blocked | Too many registration attempts. Retries are paused for a while |
token_invalid | Meta revoked the access token — the customer has to reconnect the number. Shown as unhealthy in the dashboard |
inactive | Connected 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
| Status | Code | Description |
|---|---|---|
| 400 | INVALID_REQUEST | limit is not a positive integer |
| 400 | INVALID_CURSOR | cursor was not issued by this endpoint |
| 401 | UNAUTHORIZED | Missing or invalid Authorization header, or invalid API key |
| 403 | BYON_ONLY | Requires an ak_ key (not pk_) |
| 404 | NUMBER_NOT_FOUND | GET /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
200means 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
}| Field | Description |
|---|---|
checkedAt | ISO timestamp of the check |
canSendMessage | Overall verdict: AVAILABLE, LIMITED, or BLOCKED. null when Meta couldn't be queried (see error) |
entities[].type | PHONE_NUMBER, WABA, BUSINESS, or APP |
entities[].canSendMessage | Verdict for that entity |
entities[].errors[] | Meta's code, description, and suggested solution (null if Meta gave none) |
entities[].errors[].area | messaging or calling. WhatsApp calling (SIP) errors (138xxx) appear in the same list but don't affect messaging |
entities[].additionalInfo | Informational notes from Meta, such as a pending display name |
phone | Number details as reported by Meta. null when the check failed |
error | null on success. Otherwise { code, message, tokenInvalid } |
canSendMessage values:
| Value | Meaning |
|---|---|
AVAILABLE | No restrictions |
LIMITED | Can send, with restrictions (for example a lower messaging limit until business verification or display name approval) |
BLOCKED | Can'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
| Status | Code | Description |
|---|---|---|
| 401 | UNAUTHORIZED | Missing or invalid Authorization header, or not an ak_ key |
| 403 | FORBIDDEN | The number does not belong to your App |
| 404 | POOL_NUMBER_NOT_FOUND | Number not found, or not a BYON number |
Disconnecting a number
Via dashboard
To remove a BYON number from your App:
- Navigate to the number in your App's detail page
- Click Disconnect
- 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
| Status | Code | Description |
|---|---|---|
| 401 | UNAUTHORIZED | Missing or invalid Authorization header |
| 403 | BYON_ONLY | Requires an ak_ key (not pk_) |
| 403 | FORBIDDEN | The number does not belong to your App |
| 404 | POOL_NUMBER_NOT_FOUND | Pool number not found |
| 404 | NOT_BYON_NUMBER | Only BYON numbers can be removed via API |
| 500 | INTERNAL_SERVER_ERROR | Failed 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
- Go-live checklist — What to check before your first real customer
- Build a platform — Monitor every customer's number