Backblaze B2
Upload and list files in Backblaze B2 cloud storage.
On this page
Connect
Auth type: API key (secret_text). Paste the API key (or token) from the provider's settings into the connect dialog. It is encrypted at rest and only decrypted on the server when an action runs.
- In the editor: Backend panel, Integrations tab, then Connect. This connects it for the project.
- For every project in a workspace: Workspace settings, Integrations.
- Owners and admins choose which integrations members may connect in the admin panel (Integrations tab), and can attach their own OAuth app there.
Call it from a workflow
Pass the action name and its input. The call resolves with { success, output, error? }; a missing connection resolves with success false and the reason. See ctx.integrations.invoke and ctx.integrations.call.
// .workflow.js (native ctx)
export async function run(ctx) {
const res = await ctx.integrations.invoke("backblaze", "read-backblaze-file", {
"key": "<key>"
});
if (!res.success) throw new Error(res.error);
ctx.log.info("Backblaze B2 answered", { output: res.output });
}// defineWorkflow module (@app/sdk ctx)
import { defineWorkflow } from "@app/sdk";
export default defineWorkflow({
id: "backblaze-read-backblaze-file",
name: "Backblaze B2: Read File",
description: "Calls Backblaze B2 when a row is created.",
trigger: { type: "entity_event", entity: "tickets", event: "created" },
async run(ctx, event) {
const res = await ctx.integrations.call("backblaze", {
"action": "read-backblaze-file",
"key": "<key>"
}) as { success: boolean; error?: string };
if (!res.success) throw new Error(res.error);
},
});curl -X POST "$APP_ORIGIN/__appbricx/connector-proxy/backblaze/read-backblaze-file" \
-H "Authorization: Bearer $APP_KEY" \
-H "content-type: application/json" \
-d '{"props":{"key":"<key>"}}'Actions
read-backblaze-filein catalog
Read File. Read a file from Backblaze bucket to use it in other steps.
| Input | Type | Description |
|---|---|---|
keyrequired | text | The key of the file to read. include extension if file has any extension. |
upload-backblaze-filein catalog
Upload File. Upload an File to bucket.
| Input | Type | Description |
|---|---|---|
filerequired | file | File |
fileNameoptional | text | my-file-name (no extension). write full path if you want to store in the directories or sub-directories. |
acloptional | one of "private" | "public-read" | "public-read-write" | "authenticated-read" | "aws-exec-read" | "bucket-owner-read" | "bucket-owner-full-control" | ACL |
typerequired | one of "image/png" | "image/jpeg" | "image/gif" | "audio/mpeg" | "audio/wav" | "video/mp4" | "application/pdf" | "application/msword" | "text/plain" | "application/json" | Type |
Details
- Id
backblaze- Category
- Data and storage
- Tags
- storage, cloud, backup, files
- Package
@activepieces/piece-backblaze@0.1.3- Tier
- Community