curl --request GET \
--url https://api.botpress.cloud/v1/files \
--header 'Authorization: Bearer <token>' \
--header 'x-bot-id: <x-bot-id>'{
"files": [
{
"id": "<string>",
"botId": "<string>",
"key": "<string>",
"url": "<string>",
"size": 123,
"contentType": "<string>",
"tags": {},
"metadata": {},
"createdAt": "<string>",
"updatedAt": "<string>",
"accessPolicies": [
"integrations"
],
"index": true,
"status": "upload_pending",
"owner": {
"type": "bot",
"id": "<string>",
"name": "<string>"
},
"failedStatusReason": "<string>",
"expiresAt": "<string>",
"indexingStack": "v1"
}
],
"meta": {
"nextToken": "<string>"
}
}List files for bot
curl --request GET \
--url https://api.botpress.cloud/v1/files \
--header 'Authorization: Bearer <token>' \
--header 'x-bot-id: <x-bot-id>'{
"files": [
{
"id": "<string>",
"botId": "<string>",
"key": "<string>",
"url": "<string>",
"size": 123,
"contentType": "<string>",
"tags": {},
"metadata": {},
"createdAt": "<string>",
"updatedAt": "<string>",
"accessPolicies": [
"integrations"
],
"index": true,
"status": "upload_pending",
"owner": {
"type": "bot",
"id": "<string>",
"name": "<string>"
},
"failedStatusReason": "<string>",
"expiresAt": "<string>",
"indexingStack": "v1"
}
],
"meta": {
"nextToken": "<string>"
}
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bot id
Integration id
Integration alias
Integration name
User Id
User Role
Provide the meta.nextToken value provided in the last API response to retrieve the next page of results
Sort results by this field
key, size, createdAt, updatedAt, status Sort results in this direction
asc, desc Filter files by IDs.
50Was this page helpful?