Skip to content

Webhooks

Each bucket in Sendcrate has a dedicated webhook endpoint on the share origin:

POST <share_url>/hooks/<bucketId>

Each bucket gets its own per-bucket signing secret. Verified events mark the bucket’s webhook status live and are recorded in the organization audit log. Unsigned or invalidly signed requests are rejected.

Sendcrate verifies incoming webhook deliveries using either:

  • Sendcrate HMAC signature: x-sendcrate-signature: base64url(HMAC-SHA256(secret, rawBody))
  • Backblaze B2 native signature: x-bz-event-notification-signature: v1=<hex>

Paste the bucket’s webhook URL and secret from Sendcrate’s bucket settings directly into a Backblaze B2 Event Notification rule. Backblaze must be able to reach <share_url>/hooks/<bucketId> over the public internet.

Sendcrate polls an SQS queue rather than receiving HTTP webhooks directly from S3:

  1. Create an SQS queue in AWS and allow your S3 bucket to publish object-create and object-delete notifications to it.
  2. Grant your bucket IAM key sqs:ReceiveMessage and sqs:DeleteMessage on that queue.
  3. Paste the SQS queue URL into the bucket’s event settings in Sendcrate.

Attach R2 event notifications to a Cloudflare Queue and forward events with a small consumer Worker that signs each payload using x-sendcrate-signature and POSTs to <share_url>/hooks/<bucketId>.