Get All Brains

GET/v1/brains

Retrieve a list of all available brains/knowledge bases.

What is a Brain?

A brain (also known as a knowledge base) is a collection of documents and information that provides context and knowledge to agentic avatars. Brains enable avatars to answer questions intelligently by accessing stored information, FAQs, documentation, and other knowledge sources.

Key Features:

  • Knowledge Storage: Store documents, FAQs, and other information
  • AI Integration: Used by agentic avatars to provide intelligent responses
  • Status Tracking: Monitor brain status (ready, processing, etc.)
  • Document Management: Track the number of documents in each brain

Request History

Log in to see full request history

TIMESTATUSUSER AGENT
Make a request to see history.

0 Requests This Month

Query Parameters

All query parameters are optional. Use them to filter and paginate the results.

ParameterTypeDescription
pageinteger
optional
Page number for pagination. Default: 1
limitinteger
optional
Number of items per page. Default: 20
typestring
optional
Filter by brain type (e.g., knowledge_base). If not specified, all brain types are returned.

Request Example

shell
curl -X GET "https://api.konpro.ai/v1/brains?page=1&limit=20&type=knowledge_base" \
  -H "x-api-key: <your-api-key>" \
  -H "Content-Type: application/json"

Response

FieldTypeDescription
brainsarrayArray of brain objects. Each object contains the brain/knowledge base details.
paginationobjectPagination information object containing page, limit, total, and total_pages

Brain Object

FieldTypeDescription
idstringUnique identifier of the brain/knowledge base
namestringName of the brain/knowledge base
descriptionstringDescription of the brain/knowledge base
typestringType of the brain (e.g., knowledge_base)
document_countintegerNumber of documents stored in the brain
last_updatedstringISO 8601 timestamp of when the brain was last updated
statusstringCurrent status of the brain (e.g., ready, processing)

Pagination Object

FieldTypeDescription
pageintegerCurrent page number
limitintegerNumber of items per page
totalintegerTotal number of brains matching the query
total_pagesintegerTotal number of pages available

Sample Successful Response

json
{
  "brains": [
    {
      "id": "002a9215-dc48-4537-91cb-93ac182e4e93",
      "name": "Customer Support Knowledge Base",
      "description": "Comprehensive FAQ and support documentation",
      "type": "knowledge_base",
      "document_count": 150,
      "last_updated": "2024-01-01T00:00:00Z",
      "status": "ready"
    }
  ],
  "pagination": {
    "page": 1,
    "limit": 20,
    "total": 10,
    "total_pages": 1
  }
}

Notes

  • This endpoint requires authentication using the x-api-key header.
  • All query parameters are optional. If not specified, the endpoint returns all brains with default pagination.
  • Use the type parameter to filter brains by type (e.g., knowledge_base).
  • The response includes pagination information to help you navigate through multiple pages of results.
  • Only brains/knowledge bases that belong to your account are returned.
  • The status field indicates whether the brain is ready to use (ready) or still processing (processing).
  • Brains can be used in agentic avatars by referencing the brain_id when creating an agentic avatar.
  • For error descriptions, see Error Responses.

Table of Contents