GET

List Knowledge Bases

Returns a paginated list of knowledge bases in your sub-account.

GEThttps://api.vantaxai.com/v1/knowledge-bases

Knowledge bases are returned newest-first. Use the `limit` and `starting_after` cursor parameters to page through large collections.

Headers

  • Authorizationstringrequired

    Bearer authentication with your secret API key.

    example: Bearer vx_live_3fa9c2…

Query Parameters

  • sub_account_idstringrequired

    The sub-account to list knowledge bases for.

    example: sub_8a1f4c2e

  • limitintegeroptional

    Number of records to return (1–100). Defaults to 20.

    example: 20

  • starting_afterstringoptional

    Cursor for pagination — a knowledge base id to start after.

    example: kb_71ac0

Request

curl https://api.vantaxai.com/v1/knowledge-bases?sub_account_id=sub_8a1f4c2e \
  -H "Authorization: Bearer vx_live_3fa9c2..."

Response

{
  "success": true,
  "data": [
    {
      "id": "kb_71ac0",
      "name": "Clinic FAQ",
      "description": "Front-desk answers about hours, insurance, and booking",
      "sub_account_id": "sub_8a1f4c2e",
      "source_count": 12,
      "created_at": "2026-01-14T10:30:00Z"
    }
  ],
  "pagination": {
    "total": 3,
    "limit": 20,
    "has_more": false
  }
}