Skip to main content

Credentials

1. Create an application key

  1. Sign in to Backblaze -> B2 Cloud Storage
  2. Go to Application Keys -> Add a New Application Key
  3. Scope it to your bucket with at least Read access
  4. Copy the keyID (access key id) and applicationKey (secret access key)
  5. Note your bucket’s endpoint region from the bucket details (e.g. us-west-004) and the bucket name
The endpoint is derived from region as s3.<region>.backblazeb2.com.

2. Set environment variables

# .env.development
B2_BUCKET=my-bucket
B2_REGION=us-west-004
B2_ACCESS_KEY_ID=...   # B2 keyID
B2_SECRET_ACCESS_KEY=...   # B2 applicationKey
For Python configuration, see the Backblaze resource docs.