capabilities.work

Share Private Files

A 3-step recipe with Backblaze. We can help you get access.

Recipe · 3 steps

Share Private Files

Issue a scoped download token and download a private file by name.

  1. Log in to the B2 API to obtain the authorization token and the cluster downloadUrl.
  2. Mint a time-limited token that authorizes downloads of files under the supplied name prefix from the private bucket.
  3. Download the named file from the private bucket. The scoped download authorization token minted in the previous step authorizes this request; the spec models b2_download_file_by_name with only bucketName and fileName path parameters, so onl
What you'll need to have ready
  • bucketId: The private bucket to authorize downloads from.
  • bucketName: The name of the bucket, used in the download-by-name path.
  • fileNamePrefix: Files must share this name prefix to be downloadable.
  • fileName: Full name of the file to download, including any prefix.
  • validDurationInSeconds: Seconds (1 to 604800) the download token remains valid.
For your developer

Arazzo workflow backblaze:share-private-files, 3 operations: authorizeAccount → getDownloadAuthorization → downloadFileByName. Specs on APIs.io.