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"}
}'
// Verify webhook signature
const crypto = require('crypto');
const signature = req.headers['sharebrand-signature'];
const expected = crypto.createHmac('sha256', 'YOUR_WEBHOOK_SECRET')
.update(JSON.stringify(payload)).digest('hex');
{
"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 Payments
Sell files directly and receive payments via your Stripe account.
Cloud Storage
Sync files with AWS S3, Google Cloud Storage, or other providers.
Webhooks
Receive event notifications for uploads, downloads, and more.
Custom Domains
Host your branded portal on your own domain.
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' }
});
# Example: Handle Stripe webhook for payment confirmation
import stripe
stripe.api_key = 'YOUR_STRIPE_SECRET_KEY'
@stripe.webhook_view('payment_intent.succeeded')
def fulfill_file_access(payload):
file_id = payload['data']['object']['metadata']['fileId']
# Grant access to file_id in Sharebrand
pass
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/*"
}]
}
Create a service account key and upload the JSON file to Sharebrand settings.
Your GCS bucket name, e.g., sharebrand-files.
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.
Custom Domain Setup
Host your client portal on a custom domain for a fully white-labeled experience.
Point a CNAME record to portal.sharebrand.com and verify in Sharebrand dashboard.
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.
Last updated today
Built with Documentation.AI