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

FieldTypeDescription
idstringInternal ID of the 2BeBot channel
namestringDisplay name for the 2BeBot Channel Name
identifierstring2BeBot Channel identifier
phone_numberstringRegistered phone number
statusstringConnection 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"