๐ Get 2BeBot Channels for a Company
Retrieve all 2BeBot Channels registered under a company. This is useful for listing available channels for sending messages.
๐ Endpoint
GET /api/v1/2bebot๐ 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",
"name": "Smart Inc",
"identifier": "123456",
"phone_number": "+1234567890",
"status": "1"
}
]๐ Field Reference
| Field | Type | Description |
|---|---|---|
id | string | Internal ID of the 2BeBot channel |
name | string | Display name for the 2BeBot Channel Name |
identifier | string | 2BeBot Channel identifier |
phone_number | string | Registered phone number |
status | string | Connection status (1, 0) |
โ 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/2bebot \
-H "Authorization: Bearer YOUR_API_KEY"