Skip to main content
GET
List Query Records

Authorizations

Authorization
string
header
required

Every request authenticates with an API key: Authorization: Bearer {API_KEY}. App endpoints take an app API key; knowledge endpoints take a knowledge base API key (Get Started).

Keep keys server-side; never embed them in client code. Requests with a missing or invalid key fail with HTTP 401 (unauthorized).

Path Parameters

knowledge_base_id
string<uuid>
required

Knowledge base ID: the last segment of the Service API endpoint shown in the knowledge base's API Access dialog (…/knowledge-fs/spaces/<knowledge base ID>), and the segment after /datasets/new/ in the address bar.

Query Parameters

cursor
string

Cursor from the previous page's next_cursor.

Required string length: 1 - 1000
source
enum<string>

Return only records produced by one kind of caller: service_api for API keys, workflow for workflow nodes, agent or mcp for those clients. retrieval_test is accepted but returns no records through this API.

Available options:
retrieval_test,
workflow,
service_api,
agent,
mcp
limit
integer
default:50

Records per page.

Required range: 1 <= x <= 100

Response

One page of query records.

data
object[]

Query records, newest first.

next_cursor
string | null

Cursor for the next page, or null on the last page. Send it back as cursor.