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

FieldTypeDescription
idstringInternal ID of the WhatsApp channel
namestringCustom label for the WhatsApp session
phone_numberstringRegistered 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"