API ReferenceFiles API
List Files
List files for bot
Query Parameters
nextToken?string
Provide the meta.nextToken value provided in the last API response to retrieve the next page of results
pageSize?integer
Number of items to return per page (default 20, max 100)
sortField?string
Sort results by this field
Value in
- "key"
- "size"
- "createdAt"
- "updatedAt"
- "status"
sortDirection?string
Sort results in this direction
Value in
- "asc"
- "desc"
ids?array<string>
Filter files by IDs.
Items
items <= 50indexed?boolean
Filter files by indexing state
Response Body
application/json
application/json
curl -X GET "https://example.com/v1/files"{ "files": [ { "id": "string", "botId": "string", "key": "string", "url": "string", "size": 0, "contentType": "string", "tags": { "property1": "string", "property2": "string" }, "metadata": { "property1": null, "property2": null }, "createdAt": "string", "updatedAt": "string", "accessPolicies": [ "integrations" ], "index": true, "status": "upload_pending", "failedStatusReason": "string", "expiresAt": "string", "owner": { "type": "bot", "id": "string", "name": "string", "alias": "string" }, "indexingStack": "v1" } ], "meta": { "nextToken": "string" }}{ "files": [ { "id": "string", "botId": "string", "key": "string", "url": "string", "size": 0, "contentType": "string", "tags": { "property1": "string", "property2": "string" }, "metadata": { "property1": null, "property2": null }, "createdAt": "string", "updatedAt": "string", "accessPolicies": [ "integrations" ], "index": true, "status": "upload_pending", "failedStatusReason": "string", "expiresAt": "string", "owner": { "type": "bot", "id": "string", "name": "string", "alias": "string" }, "indexingStack": "v1" } ], "meta": { "nextToken": "string" }}