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.
Supported signatures
Section titled “Supported signatures”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>
Provider setup
Section titled “Provider setup”Backblaze B2
Section titled “Backblaze B2”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.
Amazon S3
Section titled “Amazon S3”Sendcrate polls an SQS queue rather than receiving HTTP webhooks directly from S3:
- Create an SQS queue in AWS and allow your S3 bucket to publish object-create and object-delete notifications to it.
- Grant your bucket IAM key
sqs:ReceiveMessageandsqs:DeleteMessageon that queue. - Paste the SQS queue URL into the bucket’s event settings in Sendcrate.
Cloudflare R2
Section titled “Cloudflare R2”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>.