Secure documents & video
with one API call
Tokenized links with watermarks, tracking, and expiry. For PDFs, Office docs, images, and video. Self-hostable. The open-source DocSend alternative.
$ curl -X POST https://api.cloakshare.dev/v1/links \ -H "Authorization: Bearer ck_live_a1b2c3d4" \ -F file=@proposal.pdf \ -F expires_in="72h" \ -F watermark=true \ -F require_email=true // Response: {"data": { "secure_url": "https://view.cloakshare.dev/s/lnk_xK9mP2", "status": "active", "page_count": 6, "rules": {"watermark": true, "require_email": true} }}
Secure video sharing
with HLS streaming
Upload MP4, MOV, or WebM files. Cloak transcodes to adaptive HLS with 720p and 1080p quality tiers. Canvas-based watermark overlay tracks every viewer. Anti-download protections prevent screen recording and content ripping.
- + Adaptive bitrate HLS streaming (720p + 1080p)
- + Canvas watermark overlay on every frame
- + Watch time analytics and completion tracking
- + Per-segment signed URLs with auto-refresh
- + Safari/iOS native HLS with dynamic manifests
- + Anti-download: no right-click, no PiP, no save
$ curl -X POST /v1/links \ -H "Authorization: Bearer ck_live_..." \ -F file=@training.mp4 \ -F watermark=true \ -F require_email=true // Response: {"data": { "secure_url": "https://view.cloakshare.dev/s/lnk_v8kQ3", "file_type": "video", "video_metadata": { "duration": 324, "qualities": ["720p", "1080p"] } }}
How it works
Three API calls. That’s all it takes to secure, share, and track any document or video.
Upload via API
POST your file to /v1/links.
PDFs, Office docs, images, or video. Set expiry, watermark, email gate in one call.
curl -X POST /v1/links \
-F file=@deck.pdf \
-F expires_in="72h"
Share the secure link
Recipients open the link in a browser. They see an email gate, then a watermarked viewer. Documents render to canvas. Videos stream via HLS. No downloads.
https://view.cloakshare.dev/s/xK9mP2
Track engagement
See who viewed it, how long they spent, which pages they read or how much video they watched. Get webhook notifications in real-time.
GET /v1/links/:id/analytics
{"views": 3, "avg_duration": 45} Everything you need
Enterprise-grade document and video security, accessible via a simple REST API.
Video Sharing
Upload MP4/MOV/WebM. Adaptive HLS streaming with 720p + 1080p. Canvas watermark on every frame.
Office Documents
DOCX, PPTX, XLSX converted server-side via LibreOffice. Same security as PDFs.
Dynamic Watermarks
Viewer's email baked into every page and video frame. Unique per session.
Link Expiry
Time-based or view-count limits. Revoke access instantly.
Email Gate
Only verified email addresses can view. Restrict by domain.
Page-Level Analytics
Time per page, watch time, completion rate, device, geo, and more.
Webhooks
Real-time notifications when someone views your document or video.
Custom Domains
Serve content from docs.your-saas.com with auto-SSL.
Password Protection
Add a password gate on top of email verification.
Teams & RBAC
Invite team members with admin, member, or viewer roles.
Embeddable Viewer
iframe into your app with PostMessage API integration.
One-Click Revocation
Kill access to any document or video with a single API call.
Try it — no signup required
See how Cloak secures a document or video in under 10 seconds. This uses the real API.
Drop a PDF or video here, or click to upload
PDF: max 10 pages, 20 MB · Video: MP4/MOV/WebM, 50 MB
Or try a sample:
Configure
Integrate in 5 minutes
Follow along — this code runs against the real API.
# Upload a file and get a secure link # Works with PDF, DOCX, PPTX, XLSX, images, and video curl -X POST https://api.cloakshare.dev/v1/links \ -H "Authorization: Bearer YOUR_API_KEY" \ -F file=@proposal.pdf \ -F expires_in="72h" \ -F require_email=true \ -F watermark=true
Response
{
"data": {
"id": "lnk_xK9mP2nQ",
"secure_url": "https://view.cloakshare.dev/s/lnk_xK9mP2nQ",
"status": "active",
"page_count": 6,
"rules": {
"expires_at": "2026-03-03T...",
"watermark": true
}
}
} # The secure_url is what you send
# to your recipient.
#
# They see a secure viewer:
# - Email gate
# - Watermarked pages (or video frames)
# - No download button
# - Canvas rendering / HLS streaming
https://view.cloakshare.dev/s/lnk_xK9mP2nQ Q4 Proposal
6 pages · PDF
email@example.com
Secured by Cloak
# Check analytics on your link curl https://api.cloakshare.dev/v1/links/lnk_xK9mP2nQ/analytics \ -H "Authorization: Bearer YOUR_API_KEY"
Response
{
"data": {
"total_views": 3,
"unique_viewers": 2,
"avg_duration": 45,
"viewers": [{
"email": "john@acme.com",
"duration": 62,
"completion": 0.83,
"country": "US"
}]
}
} # Set up a webhook for view events curl -X POST https://api.cloakshare.dev/v1/webhooks \ -H "Authorization: Bearer YOUR_API_KEY" \ -d '{ "url": "https://your-app.com/webhook", "events": ["link.viewed"] }'
You'll receive
{
"type": "link.viewed",
"data": {
"link_id": "lnk_xK9mP2nQ",
"viewer_email": "john@acme.com",
"duration": 62,
"completion": 0.83
}
} That’s it. 4 API calls to secure, share, and track any document or video.
Built for
Sales teams
Stop competitors from seeing your pricing. Track which prospects actually read your proposals and follow up at the right time.
Fundraising
Track which investors read your pitch deck, how long they spent, and which sections they skipped. Prioritize warm leads.
Platforms
Add secure document and video sharing to your app in 5 minutes. One API, no viewer to build, no infrastructure to manage.
Training & Education
Share training videos with watermarked, tracked access. Know who watched, how far they got, and prevent unauthorized redistribution.
Simple, transparent pricing
Start free. Scale as you grow. No per-seat pricing.
Free
For side projects and evaluation
- + 50 links/month
- + 500 views/month
- + PDF & image support
- + Watermarks
- + Email gate
- + View tracking
- + 7-day max expiry
- + "Secured by Cloak" badge
Starter
For growing teams
- + 500 links/month
- + 10,000 views/month
- + Everything in Free
- + Office docs (DOCX, PPTX, XLSX)
- + No badge
- + Webhooks
- + Password protection
- + Teams & RBAC
- + 90-day max expiry
Growth
For production workloads
- + 2,500 links/month
- + 25,000 views/month
- + Everything in Starter
- + Video sharing (MP4, MOV, WebM)
- + HLS streaming (720p + 1080p)
- + Custom domains
- + Custom branding
- + Audit log
- + Priority support
- + 1-year max expiry
Scale
For enterprise needs
- + 10,000 links/month
- + 100,000 views/month
- + Everything in Growth
- + Unlimited video transcoding
- + Embedded viewer
- + White-label
- + SSO/SAML
- + Dedicated support
- + No expiry limits
Open source & self-hostable
Cloak is open source and MIT licensed. Self-host on your own infrastructure with Docker,
inspect the code, or contribute. Enable video support with ENABLE_VIDEO=true.
The cloud version adds CDN delivery, analytics, webhooks, custom domains, and managed infrastructure.
Get started in 30 seconds:
git clone https://github.com/cloakshare/cloakshare
cd cloak && docker compose up
CloakShare