Skip to main content
GET
/
v1
/
chatbots
/
account
/
{accountId}
/
all-chatbots
Get All Chatbots in Account
curl --request GET \
  --url https://interhemispheric-unwet-paulene.ngrok-free.dev/api/v1/chatbots/account/{accountId}/all-chatbots \
  --header 'Authorization: Bearer <token>'
{
  "success": true,
  "message": "Success",
  "data": {
    "chatbots": [
      {
        "chatbotId": "361628903185318481",
        "name": "Support Bot",
        "description": "Handles customer queries",
        "isActive": true,
        "createdByUserId": "360596271623307865",
        "createdAt": "2024-01-15T10:30:00.000Z",
        "updatedAt": "2024-01-20T14:00:00.000Z"
      },
      {
        "chatbotId": "372841056294817362",
        "name": "Sales Assistant",
        "description": "Helps with sales queries",
        "isActive": false,
        "createdByUserId": "360596271623307865",
        "createdAt": "2024-02-10T08:00:00.000Z",
        "updatedAt": "2024-03-01T09:00:00.000Z"
      }
    ],
    "count": 2,
    "userRole": "SUPER_ADMIN"
  }
}
Use this endpoint when you need an account-level view of all chatbots within a specific account — for example, on an account settings or management page where an admin or owner wants to see every chatbot regardless of who created it or who is assigned to it. No per-user filtering is applied; any member with the CHATBOT_VIEW permission will receive the full list. If you instead need to fetch all chatbots a specific user has access to across all their accounts (filtered by their role), use the Get All My Chatbots endpoint.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

accountId
string
required

ID of the account to fetch chatbots from

Example:

"360596271623307865"

Response

Success

success
boolean
Example:

true

message
string
Example:

"Success"

data
object