๐ Get WhatsApp Business Accounts (WABAs) for a Company
Retrieve all WhatsApp Business Accounts (WABAs) registered under a company. This is useful for listing available channels for sending messages.
๐ Endpoint
GET /api/v1/whatsapp๐ Authentication
All requests must include a valid API key passed as a Bearer token in the Authorization header:
You can get your API key from the /companies page.
Authorization: Bearer YOUR_API_KEY๐ฅ Request
No query or path parameters are required.
๐ค Response
Returns a list of all WABA channels connected to the authenticated company.
โ Success (200)
[
{
"id": "103",
"verified_name": "Smart Inc",
"quality_rating": "GREEN",
"phone_number": "+1234567890",
"waba_id": "784902102909382",
"status": "1",
"messaging_limit": "TIER_1"
}
]๐ Field Reference
| Field | Type | Description |
|---|---|---|
id | string | Internal ID of the WABA channel |
verified_name | string | Display name for the WhatsApp Business Account |
quality_rating | string | Quality rating (GREEN, YELLOW, RED) |
phone_number | string | Registered phone number |
waba_id | string | Meta WABA ID |
status | string | Connection status (1, 0) |
messaging_limit | string | Messaging tier (TIER_1, TIER_2, etc.) |
โ Unauthorized (401)
{
"error": "Unauthorized"
}Returned if the API key is missing or invalid.
โ Internal Server Error (500)
{
"error": "Internal Server Error"
}Returned if there is a problem fetching the WABAs from the database.
๐งช Example Request
curl -X GET https://smart.botatende.com/api/v1/whatsapp \
-H "Authorization: Bearer YOUR_API_KEY"