Skip to main content
GET
Get Available Knowledge Bases

Get Available Knowledge Bases

Retrieve available knowledge bases (indexes) that your API key can access.

Endpoint

Description

Retrieve available knowledge bases (indexes) that your API key can access. Includes personal indexes, shared indexes, and the Zero-Knowledge option.

Authentication

Required: API Key

Request

Response

Success Response (200)

Response Fields

Index Object

Index Types

Restrictions Object

Error Responses

401 Unauthorized

Example Usage

JavaScript/Node.js

Python

cURL

Special Indexes

Zero-Knowledge

The Zero-Knowledge index is a special system index that provides direct AI responses without knowledge base retrieval. Use this when you want:
  • Pure AI responses without RAG
  • Testing AI model capabilities
  • General conversation without specific context

Notes

  • The Zero-Knowledge index is always available
  • Personal indexes are created by the user
  • Access to indexes depends on your permissions
  • Use the index ID in chat completion requests

授权

Authorization
string
header
必填

API key authentication using Bearer token format. Example: Authorization: Bearer sk-your-api-key-here

响应

List of available knowledge bases

success
boolean
示例:

true

indexes
object[]
restrictions
object