๐Ÿ“„ 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

FieldTypeDescription
idstringInternal ID of the WABA channel
verified_namestringDisplay name for the WhatsApp Business Account
quality_ratingstringQuality rating (GREEN, YELLOW, RED)
phone_numberstringRegistered phone number
waba_idstringMeta WABA ID
statusstringConnection status (1, 0)
messaging_limitstringMessaging 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"