Get a WhatsApp number
One number, with its status, quality and messaging limit, and what it can send. A number in another workspace answers 404.
Set up WhatsApp first. Connect a WhatsApp number in the dashboard or with Connect numbers. Included on every paid plan. See plans.
number_idrequiredcurl -X GET 'https://backend.omnidim.io/api/v1/whatsapp/numbers/{number_id}' \ -H 'Authorization: Bearer YOUR_API_KEY'
{ "id": 412, "phone_number": "+15551234567", "provider": "meta", "name": "string", "status": "active", "account_restriction": "string", "agent_id": 0, "quality_rating": "string", "messaging_limit": "string", "capabilities": { "types": [ "text" ], "reply_to": false, "window_enforced": false, "delivery_status": "push", "template_sync": false } }
BearerAuthAuthorizationBearer <token>Bearer token authentication. Obtain your API key from the OmniDimension dashboard.
number_id*integerId of a WhatsApp number in your workspace, from
listWhatsappNumbers.
A number in another workspace answers 404.
Response body
application/jsonThe number.
application/jsonid?integerphone_number?stringprovider?stringWho carries the number. meta is the WhatsApp Cloud API.
"meta""twilio""sensibot""interakt"name?stringThe label you gave the number.
status?stringactive can send. restricted is limited by WhatsApp.
disconnected is missing its credentials, so it cannot send.
"active""restricted""disconnected"account_restriction?stringWhatsApp's own restriction on the account, when there is one.
agent_id?integerThe agent that answers this number, when one is attached.
quality_rating?stringWhatsApp's quality rating. Meta numbers only.
messaging_limit?stringHow many customers you can start chats with in 24 hours. Meta numbers only.
capabilities?What this number can send, and how its delivery status is learned.
Preview numbers to connect
Lists the numbers on your WhatsApp Business Account with their health, and connects nothing. The access token is checked first, against the same rules as connecting, so a preview that passes can connect.
List templates
The number's message templates, as last synced, oldest first. Pass status=approved to see exactly the templates a send accepts. Sync the list with syncWhatsappTemplates first if a template you expect is missing.
