Core ConceptsIntegrations

Integrations and Custom Connections

Connect Sharebrand with third-party services to streamline workflows, payments, and automation for your team.

curl -X POST https://api.example.com/webhooks/sharebrand \
  -H "Sharebrand-Signature: {signature}" \
  -d '{
    "event": "file.downloaded",
    "data": {"fileId": "abc123", "userEmail": "client@example.com"}
  }'
{
  "status": "success",
  "received": true
}

Overview

Sharebrand supports seamless integrations with popular services to enhance your file sharing workflows. Connect payment processors like Stripe for direct sales, link cloud storage for automated file management, set up webhooks for real-time notifications, and configure custom domains for branded experiences. These integrations help you automate tasks, accept payments securely, and maintain a professional client-facing presence.

Stripe Integration

Integrate Stripe to sell files directly through Sharebrand. Clients purchase access via your branded links, and payments flow straight to your Stripe account with no fees from Sharebrand.

Create Stripe Account

Sign up at Stripe and obtain your secret key from the dashboard.

Connect in Sharebrand

Navigate to Account Settings > Integrations, paste your sk_live_... key, and save.

Enable File Sales

On any file share link, toggle "Sell Access" and set your price.

// Example: Create a payment intent for file access
const stripe = require('stripe')('YOUR_STRIPE_SECRET_KEY');

const paymentIntent = await stripe.paymentIntents.create({
  amount: 1999, // $19.99
  currency: 'usd',
  metadata: { fileId: 'sharebrand-file-123' }
});

Test with Stripe's test mode using sk_test_... keys before going live.

Cloud Storage Providers

Link your Sharebrand account to cloud storage for automatic backups and syncing. Choose your provider and follow the setup.

Generate Access Keys

In AWS IAM, create a user with S3 read/write permissions.

Connect in Sharebrand

Enter your AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY.

// Example bucket policy for Sharebrand sync
{
  "Version": "2012-10-17",
  "Statement": [{
    "Effect": "Allow",
    "Principal": {"AWS": "arn:aws:iam::YOUR_ACCOUNT:user/sharebrand"},
    "Action": ["s3:GetObject", "s3:PutObject"],
    "Resource": "arn:aws:s3:::your-bucket/*"
  }]
}

Webhooks for Notifications

Webhooks notify your app of events like file uploads, downloads, or payment confirmations. Set up a public endpoint to receive payloads from https://api.example.com/webhooks/sharebrand.

header
Sharebrand-Signaturestring
Required

HMAC SHA256 signature for verification.

Custom Domain Setup

Host your client portal on a custom domain for a fully white-labeled experience.

Custom domains require SSL certificates. Sharebrand auto-provisions Let's Encrypt certs after verification.

Next Steps

Explore these integrations to supercharge your Sharebrand setup.

API Reference

Dive into full REST API for advanced custom integrations.