cURL
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
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
Your bot ID.
File ID or Key
An object containing the file metadata and URL
The response is of type object.
object
Was this page helpful?