For the complete documentation index, see llms.txt. This page is also available as Markdown.

GET /v1/knowledge-bases/{knowledge_base_id}/resources

List Resources

get

List files in the knowledge base with optional cursor pagination.

How to use

List resources and inspect processing status. Use cursor pagination and retain resource_id for detail reads. Do not treat a listed pending/parsed resource as indexed.

Authentication and permissions

Required permissions: kbs.read. Resource and owner access checks also apply.

Authorizations
AuthorizationstringRequired

Personal API key (sk_...) or supported user access JWT. See Authentication and authorization for endpoint restrictions and scopes. Use exactly one Authorization header.

Path parameters
knowledge_base_idstring · uuidRequired
Query parameters
cursorstring · nullableOptional

Optional identifier for the page that should be returned. If it is not provided, the first page will be returned.

Example: NTUwZTg0MDAtZTI5Yi00MWQ0LWE3MTYtNDQ2NjU1NDQwMDAw
page_sizeinteger · min: 1 · max: 100Optional

Number of items to be returned in the page.

Default: 50
directionstring · enumOptional

Direction for pagination: 'next' to advance through pages (older items), 'prev' to go back (newer items)

Default: nextPossible values:
Responses
200

Successful Response

application/json
Other propertiesanyOptional
get/v1/knowledge-bases/{knowledge_base_id}/resources
curl
curl --fail-with-body -sS \
  "$STACKAI_BASE_URL/v1/knowledge-bases/${KNOWLEDGE_BASE_ID}/resources" \
  -H "Authorization: Bearer $STACKAI_API_KEY"
{
  "ANY_ADDITIONAL_PROPERTY": "anything"
}

Last updated

Was this helpful?