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 are installed on. |
Viewer workspace member | Can read, search, and list all files for the bot, regardless of creator, but cannot 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. |