Skip to content

Backblaze B2

Backblaze B2 works with Sendcrate over B2’s S3-compatible API and supports native signed event notification webhooks for live change detection.

In Sendcrate, go to Add bucket and choose Backblaze B2:

Field Example / Notes
Endpoint URL https://s3.<region>.backblazeb2.com (for example https://s3.us-west-004.backblazeb2.com) — found on your bucket page in Backblaze
Bucket name Your B2 bucket name
Path-style addressing Off by default (bucket.s3.<region>.backblazeb2.com)
Access key ID / Secret access key B2 keyID and applicationKey
Public base URL (optional) Custom domain or CDN fronting a public B2 bucket (enables Public delivery)
  1. In the Backblaze Console, go to App Keys → Add a New Application Key.
  2. Restrict Allow access to Bucket(s) to your specific bucket.
  3. Choose Read and Write (or Read Only if you do not need browser uploads or drop links).
  4. Enable Allow List All Bucket Names only if required by your tooling; Sendcrate only needs access to the configured bucket.
  5. Copy keyID as Access key ID and applicationKey as Secret access key.
  • Gated, Proxied, and Direct links work out of the box.
  • Public links are unavailable by default because Backblaze B2 ACLs are bucket-level only. If you have a public B2 bucket fronted by a custom domain or CDN, set Public base URL to enable Public links on that bucket.

In Backblaze Console → your bucket → CORS Rules, choose Share everything in this bucket with every origin only if appropriate, or configure an S3-compatible CORS rule for https://app.sendcrate.io and https://send.sendcrate.io (or your self-hosted origins) via the S3 API:

[
{
"AllowedHeaders": ["*"],
"AllowedMethods": ["GET", "PUT", "HEAD"],
"AllowedOrigins": [
"https://app.sendcrate.io",
"https://send.sendcrate.io"
],
"ExposeHeaders": ["ETag", "Content-Length", "Content-Range"],
"MaxAgeSeconds": 3000
}
]

In Backblaze Console → your bucket → Lifecycle Settings, select Use custom lifecycle rules and add a rule targeting .sendcrate/staging/ to hide and delete objects after 1 day, or apply the standard S3 lifecycle rule (including AbortIncompleteMultipartUpload after 1 day) using the AWS CLI pointed at your B2 S3 endpoint:

Terminal window
aws s3api put-bucket-lifecycle-configuration \
--endpoint-url https://s3.us-west-004.backblazeb2.com \
--bucket my-b2-bucket \
--lifecycle-configuration '{
"Rules": [
{
"ID": "sendcrate-staging",
"Filter": { "Prefix": ".sendcrate/staging/" },
"Status": "Enabled",
"Expiration": { "Days": 1 },
"AbortIncompleteMultipartUpload": { "DaysAfterInitiation": 1 }
}
]
}'

Live change detection (Event Notifications)

Section titled “Live change detection (Event Notifications)”

Backblaze B2 can notify Sendcrate directly whenever objects are created or deleted outside Sendcrate:

  1. Save the bucket in Sendcrate first. Sendcrate generates a bucket-specific Webhook URL (<share_url>/hooks/<bucketId>) and displays its Webhook secret once.
  2. In Backblaze Console → your bucket → Event Notifications, create a new rule:
    • Events: Object Created (b2:ObjectCreated:*) and Object Deleted (b2:ObjectDeleted:*)
    • Target URL: Paste the Sendcrate Webhook URL
    • Signing Secret: Paste the Sendcrate Webhook secret
  3. Sendcrate automatically verifies Backblaze’s x-bz-event-notification-signature: v1=<hex> header on every delivery and records events in the audit log.