Skip to main content
get/knowledge-fs/spaces/{knowledge_base_id}/sources/{source_id}/files
Request example
Response
get/knowledge-fs/spaces/{knowledge_base_id}/sources/{source_id}/files

Authorization

Authorizationstringheaderrequired#

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_idstringrequired#
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.
source_idstringrequired#
Source ID. From List Sources.

Query parameters

bucketstring#
Bucket to browse, as named by the provider. Omit it to use the bucket configured on the source.
prefixstring#
To open a folder, send its returned id as prefix. Do not send its display name or construct a path. Omit this parameter to use the source's configured starting location.
continuationTokenstring#
A bucket's continuation_token from the previous response. Keep the same prefix and bucket selection. When no bucket was selected and the response's bucket is null, omit the bucket parameter.

Length: 1–4096

maxKeysinteger#
Files per bucket per response. When omitted, the source's configured value applies, or 20 if none is configured.

Range: 1–1000

Responses

application/json
Buckets with their files.
bucketsobject[]#
Buckets in the response.