๐ Get Web WhatsApp Channels for a Company
Retrieve all Web WhatsApp Channels (integration_2) that are active and associated with a company. Useful for managing or displaying available Web WhatsApp sessions.
๐ Endpoint
GET /api/v1/web-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 Web WhatsApp channels that are active (status: 1) and belong to the authenticated company.
โ Success (200)
[
{
"id": "57",
"name": "Dennis Support Line",
"phone_number": "+254700123456"
}
]๐ Field Reference
| Field | Type | Description |
|---|---|---|
id | string | Internal ID of the WhatsApp channel |
name | string | Custom label for the WhatsApp session |
phone_number | string | Registered WhatsApp phone number |
โ 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 Web WhatsApp channels.
๐งช Example Request
curl -X GET https://smart.botatende.com/api/v1/web-whatsapp \
-H "Authorization: Bearer YOUR_API_KEY"