Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Your bot ID.
Path Parameters
File ID or Key
Response
An object containing the file metadata and URL
curl --request GET \
--url https://api.botpress.cloud/v1/files/{id} \
--header 'Authorization: Bearer <token>' \
--header 'x-bot-id: <api-key>'{
"file": {
"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",
"failedStatusReason": "<string>",
"expiresAt": "<string>",
"owner": {
"type": "bot",
"id": "<string>",
"name": "<string>"
}
}
}Get file
curl --request GET \
--url https://api.botpress.cloud/v1/files/{id} \
--header 'Authorization: Bearer <token>' \
--header 'x-bot-id: <api-key>'{
"file": {
"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",
"failedStatusReason": "<string>",
"expiresAt": "<string>",
"owner": {
"type": "bot",
"id": "<string>",
"name": "<string>"
}
}
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Your bot ID.
File ID or Key
An object containing the file metadata and URL
Show child attributes
Was this page helpful?