UC-005 — Manage WhatsApp Business Numbers
- Goal
- Verify and manage available WhatsApp Business numbers
- Channel
- Estimated time
- 10 minutes
Real-world scenarios
- ShopItalia — Check available numbers: Before launching a campaign, the marketing team verifies which WhatsApp Business numbers are active and ready for sending.
- MultiStore — Check onboarding status: The company has requested the activation of a new number for the "SportZone" brand and wants to check the onboarding status.
- AgenziaViaggi — Choose number for campaign: With 3 active numbers (one per brand), the team selects the correct number to associate with the summer campaign.
Number management flow
The diagram shows the main states of a WhatsApp Business number, as reported by Meta in status, and the resulting actions: use for sending, wait for onboarding or contact support. A CONNECTED number is ready only while its messageSendingStatus is not BLOCKED.
Prerequisites
- Active API Key with WhatsApp permissions
- At least one WhatsApp Business number registered on the platform
Step 1 — Retrieve the list of available numbers
Query the endpoint to get the WhatsApp Business numbers associated with your account. The list returns one page, 10 numbers by default, and leaves out DISCONNECTED numbers: raise limit to get them all in one request.
curl -X GET "https://api.qlara.ai/api/message-server/whatsapp/phone-numbers?limit=100" \
-H "X-Api-Key: YOUR_API_KEY"
Response — Number list
{
"data": [
{
"id": 5,
"messagingLimitTier": "TIER_10K",
"phoneNumber": "+39 02 1234 5678",
"phoneQuality": "GREEN",
"throughput": "STANDARD",
"verifiedName": "ShopItalia S.r.l.",
"messageSendingStatus": "AVAILABLE",
"codeVerificationStatus": "VERIFIED",
"status": "CONNECTED",
"healthErrors": [],
"healthInfo": [],
"about": "Moda e accessori, spedizione in 24h",
"address": "Via Torino 10, 20123 Milano",
"description": "Il negozio online di ShopItalia",
"email": "info@shopitalia.it",
"profilePictureUrl": "https://fs-lora-namespace-public.fsn1.your-objectstorage.com/b394ab72/efd4987c/39b4879f6fed01f0d622453be1488c93?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Expires=3600&X-Amz-Signature=...",
"vertical": "RETAIL",
"websites": ["https://shopitalia.it"],
"isOnBusinessApp": false,
"createdAt": "2025-11-15 09:00:00.000+0000",
"updatedAt": "2026-04-09 06:00:00.000+0000"
},
{
"id": 6,
"messagingLimitTier": null,
"phoneNumber": "+39 02 8765 4321",
"phoneQuality": "UNKNOWN",
"throughput": "STANDARD",
"verifiedName": "SportZone by ShopItalia",
"messageSendingStatus": "LIMITED",
"codeVerificationStatus": "NOT_VERIFIED",
"status": "PENDING",
"healthErrors": [],
"healthInfo": [],
"about": null,
"address": null,
"description": null,
"email": null,
"profilePictureUrl": null,
"vertical": null,
"websites": [],
"isOnBusinessApp": false,
"createdAt": "2026-04-08 14:30:00.000+0000",
"updatedAt": "2026-04-09 06:00:00.000+0000"
}
],
"page": 0,
"limit": 100,
"totalCount": 2,
"totalPages": 1
}
The list is paginated, 10 numbers per page by default (limit and page query parameters), and leaves out DISCONNECTED numbers. If totalCount is greater than the numbers returned, raise limit rather than paging: the list has no fixed order, so pages read in separate requests can skip or repeat numbers. Fields without a value are null. The id is the whatsappPhoneNumberId of a campaign and the phoneNumberId of a template.
phoneNumber is the number as Meta displays it, with + and the country code; it may contain spaces or dashes (e.g. +39 342 955 5976). Remove the non-digit characters before comparing it with an E.164 number.
Behind the scenes — Quality rating and messaging limit
- Quality rating: Meta assigns a quality score (
phoneQuality) based on user feedback. Possible values areGREEN(good),YELLOW(warning),RED(critical) andUNKNOWN(not rated yet). A RED rating can lead to number suspension. - Messaging limit: The tier (
messagingLimitTier) determines how many unique recipients you can message in 24 hours:TIER_50,TIER_250,TIER_1K(1,000),TIER_10K(10,000),TIER_100K(100,000),TIER_UNLIMITED, orTIER_NOT_SET;nulluntil Meta reports a tier for the number. The tier increases automatically with good quality rating. - PENDING status: A number in PENDING status is completing the verification process with Meta. The process includes OTP verification (
codeVerificationStatus) and display name review. - Sending status:
messageSendingStatustells whether Meta lets the number send:AVAILABLE,LIMITEDorBLOCKED. ABLOCKEDnumber cannot send even when itsstatusisCONNECTED, andGET /whatsapp/templatesleaves out its templates. When there is a problem,healthErrorsdescribes it, with the possible solution. Meta can also refuse sends when the WhatsApp Business account itself is blocked, which this response does not show. - Verified name: The Meta-verified name that appears in the recipient's WhatsApp chat header. It cannot be changed without a new verification request.
Step 2 — Check the details of a specific number
To get detailed information about a single number, use the id returned in the previous step.
curl -X GET https://api.qlara.ai/api/message-server/whatsapp/phone-numbers/5 \
-H "X-Api-Key: YOUR_API_KEY"
Response — Number details
{
"id": 5,
"messagingLimitTier": "TIER_10K",
"phoneNumber": "+39 02 1234 5678",
"phoneQuality": "GREEN",
"throughput": "STANDARD",
"verifiedName": "ShopItalia S.r.l.",
"messageSendingStatus": "AVAILABLE",
"codeVerificationStatus": "VERIFIED",
"status": "CONNECTED",
"healthErrors": [],
"healthInfo": [],
"about": "Moda e accessori, spedizione in 24h",
"address": "Via Torino 10, 20123 Milano",
"description": "Il negozio online di ShopItalia",
"email": "info@shopitalia.it",
"profilePictureUrl": "https://fs-lora-namespace-public.fsn1.your-objectstorage.com/b394ab72/efd4987c/39b4879f6fed01f0d622453be1488c93?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Expires=3600&X-Amz-Signature=...",
"vertical": "RETAIL",
"websites": ["https://shopitalia.it"],
"isOnBusinessApp": false,
"createdAt": "2025-11-15 09:00:00.000+0000",
"updatedAt": "2026-04-09 06:00:00.000+0000"
}
The detail has the same fields as the list, and also answers for numbers that the list leaves out, such as DISCONNECTED ones. It can be up to 10 minutes old, because message-server caches it, while the list is not cached.
Before launching large campaigns, verify that the phoneQuality is GREEN, that messageSendingStatus is not BLOCKED and that the messagingLimitTier is sufficient for the expected volume. A TIER_1K tier cannot handle a campaign with 5,000 recipients.
Expected result
| Step | Action | Result |
|---|---|---|
| 1 | GET /phone-numbers?limit=100 | Numbers (one page, DISCONNECTED excluded) with status and tier |
| 2 | GET /phone-numbers/{id} | Full details of a specific number |
Complete end-to-end example
# 1. Retrieve the active numbers in one page (raise limit if totalCount is higher)
echo "=== WhatsApp Business Numbers ==="
curl -s -X GET "https://api.qlara.ai/api/message-server/whatsapp/phone-numbers?limit=100" \
-H "X-Api-Key: YOUR_API_KEY" | jq '.data[] | {id, verifiedName, status, phoneQuality, messagingLimitTier}'
# 2. Find connected, not blocked numbers with sufficient tier for the campaign
echo "=== Numbers ready for campaign (CONNECTED, not BLOCKED, TIER >= 10K) ==="
curl -s -X GET "https://api.qlara.ai/api/message-server/whatsapp/phone-numbers?limit=100" \
-H "X-Api-Key: YOUR_API_KEY" | jq '[.data[] | select(.status == "CONNECTED" and .messageSendingStatus != "BLOCKED" and (.messagingLimitTier == "TIER_10K" or .messagingLimitTier == "TIER_100K" or .messagingLimitTier == "TIER_UNLIMITED"))]'
# 3. Details of the chosen number
PHONE_ID=5
echo "=== Number details ${PHONE_ID} ==="
curl -s -X GET "https://api.qlara.ai/api/message-server/whatsapp/phone-numbers/${PHONE_ID}" \
-H "X-Api-Key: YOUR_API_KEY" | jq .
Variants
Filter numbers by status
To quickly find only connected numbers client-side:
curl -s -X GET "https://api.qlara.ai/api/message-server/whatsapp/phone-numbers?limit=100" \
-H "X-Api-Key: YOUR_API_KEY" \
| jq '[.data[] | select(.status == "CONNECTED")]'
Monitor onboarding status
For a number in PENDING status, perform periodic polling. The detail can be up to 10 minutes old, and the platform reads the status from Meta right after the onboarding and verification steps and otherwise periodically, so a change made on Meta's side can take a few hours to show: poll every 10 minutes, and read status only from a 200 answer.
# Check every 10 minutes until the status changes
PHONE_ID=6
while true; do
HTTP=$(curl -s -o body.json -w '%{http_code}' -X GET "https://api.qlara.ai/api/message-server/whatsapp/phone-numbers/${PHONE_ID}" \
-H "X-Api-Key: YOUR_API_KEY")
if [ "$HTTP" = "200" ]; then
STATUS=$(jq -r '.status' body.json)
echo "$(date): Status = $STATUS"
if [ "$STATUS" != "PENDING" ]; then
echo "Onboarding completed with status: $STATUS"
break
fi
elif [ "$HTTP" = "401" ] || [ "$HTTP" = "404" ]; then
echo "$(date): Error $HTTP: $(cat body.json)"
exit 1
else
echo "$(date): HTTP $HTTP, retrying at the next round"
fi
sleep 600
done
Common errors
404 Not Found — Number not found
{
"status": "fail",
"data": "PHONE_NUMBER_NOT_FOUND"
}
Solution: Verify the number ID with a GET on the full list: it must be the numeric id of a number of your account. The ID may have changed after a reconfiguration.
401 Unauthorized — Missing or invalid API Key
The endpoint answers 401 with an empty body.
Solution: Verify that the X-Api-Key header is present and that the key is active in the platform dashboard.
Next steps
- UC-008 — Bulk WhatsApp Campaign: Use the chosen number for a bulk campaign
- UC-006 — WhatsApp Template Workflow: Create templates for the selected number
- UC-007 — Templates with Tracked Links: Add tracking to templates
References
- API Reference — WhatsApp Phone Numbers: Full phone numbers endpoint documentation
- WhatsApp Guide: WhatsApp channel specifications and onboarding
- Authentication Guide: Details on API Key and Basic Auth