HomeUser GuidesAPI Reference
Get Started
HomeAPI Reference
Authentication
Branches
Contact Groups
Contacts
Conversations
Error HandlingInvoices
Messages
Orders
Rate LimitingSDKs & Code ExamplesTemplatesTicketsAPI VersioningWABA NumbersWebhooks
User GuideAPI ReferenceWABA Numbers

WABA Numbers

API for viewing and managing linked WhatsApp Business numbers

Reading time: 2 minutes

WABA Numbers

View and manage WhatsApp Business numbers linked to your account.


Get WABA Numbers List

GET{{base_url}}/waba-numbers

View all connected WhatsApp Business numbers.

Example Request

Example Requestbash
curl -X GET "https://api.awalchat.com/api/developer/waba-numbers" \
-H "Accept: application/json" \
-H "X-Awal-Signature-256: sha256=abc..." \
-H "X-Timestamp: 1704124800" \
-H "X-Domain: your-workspace" \
-H "X-Client-ID: your-client-id"

Example Response

Response200 OK
{
"status": true,
"data": [
  {
    "id": 1,
    "phone_number": "96650000000",
    "phone_number_id": "123456789012345",
    "verified_name": "My Business",
    "quality_rating": "GREEN",
    "status": "CONNECTED",
    "message_template_count": 25,
    "created_at": "2024-01-10T10:00:00Z",
    "updated_at": "2024-01-20T14:30:00Z"
  },
  {
    "id": 2,
    "phone_number": "96650000001",
    "phone_number_id": "987654321098765",
    "verified_name": "Another Business",
    "quality_rating": "YELLOW",
    "status": "CONNECTED",
    "message_template_count": 10,
    "created_at": "2024-01-15T11:00:00Z",
    "updated_at": "2024-01-18T09:15:00Z"
  }
]
}

Field Information

ParameterTypeRequiredDescription
idintegerNoNumber ID in the system
phone_numberstringNoPhone number in international format
phone_number_idstringNoNumber ID in Meta (used in API)
verified_namestringNoVerified name from Meta
quality_ratingstringNoQuality rating: GREEN, YELLOW, RED
statusstringNoConnection status: CONNECTED, DISCONNECTED
message_template_countintegerNoNumber of approved templates

Important Notes

āœ…

Quality Rating

  • GREEN - Excellent quality, no issues
  • YELLOW - Medium quality, may need improvement
  • RED - Low quality, number may be suspended
āš ļø

Connection Status

  • CONNECTED - Connected and working normally
  • DISCONNECTED - Not connected, check connection settings
šŸ’”

phone_number_id

  • This ID is required in all API requests
  • Use it in phone_number_id parameter in all requests
  • Keep it secure and don't share it

Use Cases

1. Get phone_number_id

// Get numbers list
const numbers = await getWabaNumbers();
 
// Use phone_number_id in requests
const phoneNumberId = numbers.data[0].phone_number_id;
 
// Use it in API request
await sendMessage(phoneNumberId, {
  phone: "96650000000",
  body: "Hello"
});

2. Check Number Status

const numbers = await getWabaNumbers();
const number = numbers.data[0];
 
if (number.status === 'CONNECTED' && number.quality_rating === 'GREEN') {
  console.log('Number is ready to use');
} else {
  console.warn('Check number status');
}

Error Codes

CodeDescriptionCauseSolution
401UnauthorizedInvalid authenticationCheck authentication
404Not FoundNo connected numbersCheck WhatsApp settings

Related Sections

Authentication

Request authentication

View Guide
View

Messages

Send messages using numbers

View Guide
View

Technical Support

Need help?

  • šŸ“§ Email: support@awalchat.com
  • šŸ’¬ Live Chat: Available in the dashboard
  • šŸ“± WhatsApp: Contact us directly via WhatsApp
  • šŸ“š Examples: Check Code Examples