01 · Definition
What is a phone number ID?
A phone number ID is the identifier Meta assigns to a business phone number on the WhatsApp Business Platform. It is a Graph API node ID, a long numeric string such as 106540352242922, and it is what the Cloud API addresses. Messages are sent with POST /{PHONE_NUMBER_ID}/messages, and media is uploaded to /{PHONE_NUMBER_ID}/media. Registration, two-step verification and the business profile all hang off the same ID.
It is distinct from the number customers see. The dialable number (display_phone_number, for example +91 98765 43210) is for people. The phone number ID is for machines, and the API never accepts the display number in its place. It is also distinct from the WhatsApp Business Account ID (WABA ID) that owns it. One WABA can hold several numbers, each with its own phone number ID, and calls about templates or account settings go to the WABA ID instead.
The ID appears in both directions of traffic. Outbound, it is in the URL of every send. Inbound, every webhook includes metadata.phone_number_id alongside display_phone_number, which tells your server which of your numbers the customer wrote to. That matters as soon as you run more than one number, for example separate numbers for sales and support.
Key takeaways
- A phone number ID is the Graph API node ID of one registered business number, and it appears in every send URL.
- It is not the dialable number:
display_phone_numberis for people, whilephone_number_idis for the API. - List a WABA's numbers and their IDs with
GET /{WABA_ID}/phone_numbers. - Webhooks carry
metadata.phone_number_id, so replies can go out from the number that received the message. - Each number has its own ID, and editing the display name or business profile does not change it.
02How does InfiQ help with a phone number ID?
On InfiQ your API key is tied to your account, so a send to /v1/messages carries no phone number ID in the URL. The body is the one Meta documents.
InfiQ API reference03 · Operation
How does a phone number ID work?
A number is added to a WABA
When a business number is added to the WhatsApp Business Account, through Embedded Signup or WhatsApp Manager, it gets a phone number ID straight away, before it can send.
Look the ID up
Call
GET /{WABA_ID}/phone_numbersto list every number with itsid,display_phone_number,verified_name,quality_ratingand verification status. The App Dashboard's API Setup panel shows it too.Verify and register it
Ownership verification and
POST /{PHONE_NUMBER_ID}/registerboth target the ID. Until registration succeeds, sends from that ID fail.Send from it
Every message is a POST to
/{PHONE_NUMBER_ID}/messages. The ID in the URL decides which number, display name and throughput the message uses.Route replies by it
Read
entry[].changes[].value.metadata.phone_number_idon each webhook, and reply from the same ID so the conversation stays on one number.
04 · Specifications
A phone number ID: key facts and limits
| Format | Numeric string (Graph node ID), often 15+ digits |
|---|---|
| Send endpoint | POST /{PHONE_NUMBER_ID}/messages |
| Lookup | GET /{WABA_ID}/phone_numbers |
| In webhooks | value.metadata.phone_number_id |
| Changes on display name edit? | No; name and profile edits keep the ID |
| Numbers per portfolio | 2 at first; up to 20 once verified or at the 2,000 limit |
05 · Code samples
A phone number ID in code
curl -X POST "https://api.infiq.in/v1/messages" \-H "X-INFIQ-API-KEY: {INFIQ_API_KEY}" \-H "Content-Type: application/json" \-d '{"messaging_product": "whatsapp","to": "919812345678","type": "text","text": { "body": "Your replacement charger ships today." }}'
A free-form text like this needs an open customer service window. Outside it, send a template.
06Playground
A working model of Phone Number ID. Use its controls to replay it step by step.
Find the ID inside a phone_numbers response
{"data": [{"verified_name": "Orders Desk","code_verification_status": "VERIFIED","display_phone_number": "+91 98765 43210","quality_rating": "GREEN","platform_type": "CLOUD_API","throughput": {"level": "STANDARD"},"id": "106540352242922"},{"verified_name": "Support Desk","code_verification_status": "VERIFIED","display_phone_number": "+91 98765 43211","quality_rating": "GREEN","platform_type": "CLOUD_API","throughput": {"level": "STANDARD"},"id": "113629874455012"}],"paging": {"cursors": {"before": "QVFIUmZA1dDBR","after": "QVFIUnRkdnZA4"}}}
Field 8: paging.cursors — Large WABAs return numbers in pages. Follow the after cursor to see the rest.
07 · Cautions
Common mistakes with a phone number ID
Putting the phone number in the URL
/919876543210/messagesis not a valid object. The API answers with error 100, saying the object does not exist or cannot be loaded because of missing permissions. Use the phone number ID.Sending from the WABA ID
WABA IDs and phone number IDs look alike. Templates are created on the WABA, and messages are sent from the number. Label both clearly in config, for example
WABA_IDandPHONE_NUMBER_ID.Hard-coding one ID when you have several numbers
Copy-pasted send code keeps sending from the first number. Choose the ID for each message from the webhook or from your routing table.
Assuming the ID survives every move
Display name and profile edits keep the ID. If a number is deleted and added again, or moved to another WABA, read the ID from the API again instead of assuming it carried over.
08 · Worked example: Two numbers, one backend
Example: Two numbers, one backend
A Chennai electronics chain runs one number for order updates and another for after-sales support, both under one WABA. Its backend stores a map from phone number ID to team. When a customer replies to a delivery update, the webhook's metadata.phone_number_id identifies the orders number. The reply goes to the orders queue, and the answer is sent from the same ID. A warranty question sent to the support number lands with service agents, with no keyword guessing needed.
09 · Rationale
Why does a phone number ID matter?
The phone number ID is the first thing that has to work in any WhatsApp integration, and the first thing that breaks when a second number is added. Sends from the wrong ID go out under the wrong display name and quality rating. A mistyped ID produces an error that looks like a permissions problem. A router that ignores metadata.phone_number_id mixes conversations from different numbers into one inbox.
10 · Recommended practice
Best practices for a phone number ID
- Keep the phone number ID, WABA ID and display number together in one config record per number.
- Log
metadata.phone_number_idon every webhook. It is the fastest way to debug misrouted replies. - Check
code_verification_statusand registration before sending from a new ID. - Store IDs as strings, never as numbers, to avoid precision loss in JavaScript.
11 · Questions and answers
Phone Number ID FAQs
- Is the phone number ID the same as my WhatsApp number?
- No. Your number, such as +91 98765 43210, is what customers dial. The phone number ID is a separate numeric ID that the API uses to address that number. The two are permanently linked but never interchangeable in code.
- Where can I find my WhatsApp phone number ID?
- Call
GET /{WABA_ID}/phone_numberswith an access token, or open API Setup in the Meta App Dashboard. If a provider such as InfiQ runs your integration, its dashboard shows the ID for each number. - What is the difference between a phone number ID and a WABA ID?
- The WABA ID identifies the WhatsApp Business Account, where templates and account settings live. The phone number ID identifies one number inside it, which is the number messages are sent from. One WABA can have several phone number IDs.
- Does the phone number ID change if I change my display name?
- No. Changes to the display name, profile photo or about text leave the ID unchanged. You only need to read it again if the number itself is removed and added back, or moved to a different WABA.
- Why do I get an 'object does not exist' error when sending?
- Usually the ID in the URL is wrong: a display number, a WABA ID or a mistyped digit. It can also mean the token's app has no access to that number. A
GET /{PHONE_NUMBER_ID}call with the same token checks both.