Skip to main content
GET
List Source Files

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.

source_id
string<uuid>
required

Source ID. From List Sources.

Query Parameters

bucket
string

Bucket to browse, as named by the provider. Omit it to use the bucket configured on the source.

prefix
string

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.

continuationToken
string

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.

Required string length: 1 - 4096
maxKeys
integer

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

Required range: 1 <= x <= 1000

Response

Buckets with their files.

buckets
object[]

Buckets in the response.