Skip to main content
GET
Get All Indexes

列出所有索引

检索系统中所有可用知识库索引的综合列表。

端点

说明

该端点返回 SecureAI 系统中可用的所有知识库索引。它提供有关每个索引的详细信息,包括其类型、状态、创建日期和元数据。这对于发现可用的知识库及其功能非常有用。

身份验证

必填:API 密钥

查询参数

请求示例

成功响应

状态代码:200 OK

响应字段

索引类型

索引状态

用法示例

JavaScript

###Python

卷曲

错误响应

401 未经授权

429 请求过多

过滤示例

按类型过滤

按状态过滤

分页

用例

  • 发现:查找 RAG 操作的可用知识库
  • 管理:出于管理目的列出索引
  • 集成:发现应用程序集成的索引
  • 监控:检查索引状态和元数据
  • 过滤:查找特定类型的索引(系统、个人等)

速率限制

  • 默认:每分钟 100 个请求
  • 每日:每天 10,000 个请求
  • 每月:每月 300,000 个请求

注释

  • 该端点只能由管理员访问
  • 个人索引仅对其所有者可见
  • 群组索引对群组成员可见
  • 响应包括分配的用户和组信息
  • 分页使用页面参数,而不是偏移量
  • 按类型和状态过滤有助于缩小结果范围

授权

Authorization
string
header
必填

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

查询参数

page
integer
默认值:1

Page number for pagination

必填范围: x >= 1
limit
integer
默认值:50

Number of indexes per page

必填范围: 1 <= x <= 100

Search term for index name or shared index name

type
enum<string>

Filter by index type

可用选项:
personal,
general,
group
status
enum<string>
默认值:active

Filter by index status

可用选项:
active,
deleted,
all

响应

List of all indexes

success
boolean
示例:

true

indexes
object[]
pagination
object