curl
, axios
, or fetch
. Here’s an example using curl
:
public_content
: Unauthenticated users can read contents (but not metadata) of the file through a unique permanent URL provided by the API for each file. Without this policy the file URL returned by the API will be temporary and will expire after a short period of time.integrations
: Grants read, search, list access to all integrations of the bot that owns the file.Principal | Permissions |
---|---|
Public (unauthenticated/unauthorized users) | Can only download files that have the public_content access policy. |
Bot | Owns and manages its files with full permissions to access and manage them, regardless of the user that created the file. |
Integration | Has all permissions on the files that were created by that integration for the bot they’re installed on. |
Viewer workspace member | Can read, search, and list all files for the bot, regardless of creator, but can’t create or delete files. |
Developer, Manager or Administrator workspace member | Has all permissions on the bot’s files, regardless of creator. |
Billing Manager workspace member | No permissions on files. |
Category | Limit |
---|---|
Maximum uploaded file size | 1 GB |
Maximum payload size | |
Rate limits | Same as all other endpoints of our public API |
Tags | As defined in the Limits and Quotas of Botpress Cloud |
Search - Query | 1 KB maximum |
Search - Results | Maximum number of results: 50 |