{ "opencollection": "1.0.0", "info": { "name": "Backblaze B2 Native Application Keys Files API", "version": "v4" }, "request": { "auth": { "type": "bearer", "token": "{{bearerToken}}" } }, "items": [ { "info": { "name": "Files", "type": "folder" }, "items": [ { "info": { "name": "Backblaze B2 Native API Get Upload URL", "type": "http" }, "http": { "method": "POST", "url": "https://api.backblazeb2.com/b2api/v4/b2_get_upload_url", "body": { "type": "json", "data": "{}" } }, "docs": "Gets a URL for uploading a single file to a bucket. The URL returned is specific to the bucket and can only be used to upload to that bucket." }, { "info": { "name": "Backblaze B2 Native API Upload File", "type": "http" }, "http": { "method": "POST", "url": "https://api.backblazeb2.com/b2api/v4/b2_upload_file", "headers": [ { "name": "Authorization", "value": "3_en0Y0j2f-0r0BVLS8vN9GJTWA-pLEP" }, { "name": "X-Bz-File-Name", "value": "photos%2Fimage.jpg" }, { "name": "Content-Type", "value": "image/jpeg" }, { "name": "Content-Length", "value": "102400" }, { "name": "X-Bz-Content-Sha1", "value": "a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4e5f6a1b2" } ] }, "docs": "Uploads one file to B2, returning its unique file ID. The file data is the request body. Before calling this function, b2_get_upload_url must be called to get the URL and authorization token." }, { "info": { "name": "Backblaze B2 Native API Download File by ID", "type": "http" }, "http": { "method": "GET", "url": "https://api.backblazeb2.com/b2api/v4/b2_download_file_by_id", "params": [ { "name": "fileId", "value": "4_h4a48fe8875c6214145260818", "type": "query", "description": "The unique file ID to download" } ] }, "docs": "Downloads one file by its file ID. Can be used to download a specific version of a file." }, { "info": { "name": "Backblaze B2 Native API Download File by Name", "type": "http" }, "http": { "method": "GET", "url": "https://api.backblazeb2.com/b2api/v4/b2_download_file_by_name/:bucketName/:fileName", "params": [ { "name": "bucketName", "value": "my-media-bucket", "type": "path", "description": "Name of the bucket containing the file" }, { "name": "fileName", "value": "photos/image.jpg", "type": "path", "description": "Full name of the file including any prefix" } ] }, "docs": "Downloads one file from a public or private bucket by name." }, { "info": { "name": "Backblaze B2 Native API Get File Info", "type": "http" }, "http": { "method": "POST", "url": "https://api.backblazeb2.com/b2api/v4/b2_get_file_info", "body": { "type": "json", "data": "{}" } }, "docs": "Gets information about one file stored in B2." }, { "info": { "name": "Backblaze B2 Native API Delete File Version", "type": "http" }, "http": { "method": "POST", "url": "https://api.backblazeb2.com/b2api/v4/b2_delete_file_version", "body": { "type": "json", "data": "{}" } }, "docs": "Deletes one version of a file from B2. If the version you delete is the latest version, and there are older versions, then the most recent older version will become the current version of the file." }, { "info": { "name": "Backblaze B2 Native API List File Names", "type": "http" }, "http": { "method": "POST", "url": "https://api.backblazeb2.com/b2api/v4/b2_list_file_names", "body": { "type": "json", "data": "{}" } }, "docs": "Lists the names of all files in a bucket, starting at a given name. Returns at most 1000 file names, but it can be set to return fewer." }, { "info": { "name": "Backblaze B2 Native API List File Versions", "type": "http" }, "http": { "method": "POST", "url": "https://api.backblazeb2.com/b2api/v4/b2_list_file_versions", "body": { "type": "json", "data": "{}" } }, "docs": "Lists all of the versions of all of the files contained in one bucket, in alphabetical order by file name, and by reverse of date/time uploaded for versions of files with the same name." }, { "info": { "name": "Backblaze B2 Native API Copy File", "type": "http" }, "http": { "method": "POST", "url": "https://api.backblazeb2.com/b2api/v4/b2_copy_file", "body": { "type": "json", "data": "{}" } }, "docs": "Creates a new file by copying from an existing file. It copies the source file's contents and optionally overrides some of the source file's metadata." }, { "info": { "name": "Backblaze B2 Native API Hide File", "type": "http" }, "http": { "method": "POST", "url": "https://api.backblazeb2.com/b2api/v4/b2_hide_file", "body": { "type": "json", "data": "{}" } }, "docs": "Hides a file so that downloading by name will not find the file, but previous versions of the file are still stored. Can be used to effectively delete a file if versioning is enabled." } ] } ], "bundled": true }