# Culacc - EU Cloud Storage with End-to-End Encryption, Backups of 40 Apps, Media Hosting and a Developer API for Storing, Sending and Editing Files > Culacc is a privacy-focused cloud storage service hosted in the EU (Germany). > Files can be end-to-end encrypted, so Culacc itself can't read them. Culacc > backs up and syncs 40 apps and email accounts (Google Drive, OneDrive, Dropbox, > Slack, Notion, GitHub and more), so you keep using them and have everything in > one place. It also has browser-side file tools that don't upload files to any > server, editors for photos, documents and audio, public media hosting for > websites, and a developer API: apps store their users' files in Culacc, send > them to people by link or email, delete them when done, and add an Edit button > for photos, videos, documents and PDFs. 5GB storage free forever. Paid storage from > EUR 0.50 per 100GB per month. 10GB of media traffic free each month, then > EUR 1 per TB. Accepts card and cryptocurrency (100+ coins). GDPR compliant, > operated from Slovakia, data on EU servers, no ads, no tracking. ## Storage - [Pricing](https://culacc.com/pricing): EUR 0.50/100GB/month, free 5GB tier - [Privacy](https://culacc.com/privacy): EU-hosted, files encrypted at rest (AES-256-GCM), optional end-to-end encryption - File versioning: every change is kept as a version and can be restored - Share files and whole folders of any size, with password, expiry and download limits; "Can edit" links let friends edit and add files without an account - Windows app (Microsoft Store): syncs the folders you choose, every change kept as a version ## End-to-end encryption - Chosen at sign-up, or later from the dashboard: "Encrypt everything" or "Only folders I choose" - Files, file names and folders are encrypted in your browser or the Culacc app before upload (AES-256-GCM); Culacc stores only encrypted data - Keys come from a separate E2EE password that never leaves your device, with a recovery code - Encrypted files work in the normal dashboard: viewers, versions, trash, search and previews (made on your device) - Share links carry the key after the # in the link, which browsers never send to a server, or open with a password - Edit encrypted files with the Crafting apps in your browser; the file is decrypted only there - Publishing an encrypted file, or opening it in Google or Microsoft viewers, is your choice per file and hands over only that file's key - Windows app: type the E2EE password once; Windows keeps the key, and synced folders are encrypted on the computer before upload - Connected cloud storage, chosen per app: "Through my computer" (the Culacc app downloads each file from the other service, encrypts and uploads it; Culacc never has the file) or "Straight to Culacc" (encrypted the moment it arrives, so syncing goes on with the computer off; the file passes through Culacc's server unencrypted for that moment, and only if you agree) ## Backups and sync (40 apps) - Cloud storage: Google Drive, OneDrive, Dropbox, Box, pCloud, MEGA, Filen, Zoho WorkDrive, Seafile, any S3-compatible bucket (AWS, Wasabi, Backblaze B2, Cloudflare R2), WebDAV (Nextcloud, ownCloud), your own server over SFTP or FTPS - Email: Outlook, Fastmail, Migadu, and any IMAP mailbox (Seznam, GMX, Zoho Mail, iCloud, Yahoo and more), with attachments - Work: Slack, Notion, Jira & Confluence, Asana, Trello, monday.com, ClickUp, Linear, Airtable, Zoom cloud recordings - Design: Canva, Figma, Penpot - Code: GitHub, GitLab, Bitbucket (every repository as a git bundle) - Forms and signatures: Typeform, Tally, JotForm, Docusign, Dropbox Sign - Websites and shops: WordPress, Shopify - Changed files are kept as new versions, so a file deleted or overwritten in the other app can still be restored - No need to move away from Google, Microsoft or Dropbox: connect them and Culacc keeps a copy ## Edit your files (Crafting apps) - In the browser: PhotoCraft, LightCraft, VectorCraft and DesignCraft for images and design, WordCraft, GridCraft, DeckCraft and PdfCraft for documents, spreadsheets, presentations and PDFs, SoundCraft for audio, CADCraft for CAD - FilmCraft and EffectCraft edit video in the Windows app, on your own computer - With connected accounts, files also open in Google Docs, Sheets and Slides, Microsoft Word, Excel and PowerPoint, and Canva - Saves come back as new versions; saving in another format keeps it as its own file ## Tools (all run in-browser, no upload) - [Merge PDF](https://culacc.com/tools/merge-pdf) - [Compress PDF](https://culacc.com/tools/compress-pdf) - [Sign PDF](https://culacc.com/tools/sign-pdf) - [Compress Image](https://culacc.com/tools/compress-image) - [Convert Files](https://culacc.com/tools/convert) ## Media hosting for websites - Publish any image, video, audio file or PDF to a stable public URL on media.culacc.com - Images are resized and converted to WebP on request, so phones download far less - Responsive HTML is generated for you: a picture element with srcset, or a video element - Videos stream with range requests; poster frames are made automatically - A link can be turned off at any time, or limited to the sites you name - Traffic: 10GB free per user each month, then EUR 1 per TB, counted to the cent - Every user has a monthly spending limit they control; serving stops at it rather than surprising them - The same allowance covers every way of using Culacc: website, API, plugins and apps ## Developer API - REST API at https://culacc.com/api/v1, plain HTTPS and JSON, usable from any language - API keys (clc_live_...) with per-key permissions (files:read, files:write, shares:write, links:write, webhooks:write), rate limits and address restrictions - Official npm package for JavaScript and TypeScript: @culacc/sdk (npm install @culacc/sdk), Node 18+ or browsers, no dependencies - Upload from your server or straight from your users' browsers; files up to 5TB (in parts, resumable); whole folders from disk; rename, replace or keep versions when a name is taken - List, search, make folders, and delete files and folders (to the trash, or for good to free the space) - Share files and folders as a link or by email from your code (see below) - Publish files to the web, with image options in the URL: width, height, format, quality, fit - Webhooks, signed: file.uploaded, file.deleted, file.published, file.unpublished, file.edited, share.created, share.expired, share.revoked, traffic.limit_reached - Docs: https://culacc.com/developers - Full reference as Markdown: https://culacc.com/docs/api.md - Everything for AI assistants in one file: https://culacc.com/llms-full.txt - OpenAPI 3.1: https://culacc.com/docs/openapi.json ## Send files to your users from your app (shares) - Upload and send in one call: culacc.send([{ name, data }], { to: 'client@example.com', expiresInDays: 7 }) - Or share files and folders already in Culacc (by id or path): culacc.shares.create({ items, to, title, message, password, canEdit, expiresInDays }) - Culacc emails the link (up to 20 addresses at a time, "Your Name via Culacc", replies go to you), or you send the link yourself - The recipient needs no account: a share page with previews, a download per file, everything as one ZIP, optional password, expiry, and editing in the browser when allowed - Shared folders are live: files added later appear for the recipient; one folder and one link per customer makes a client portal - Your own reference on every share (externalRef); list, change, send again, add or remove files - Stop a share at any time; deleteFiles or autoDelete deletes its files for good when it ends, so one-off deliveries don't fill storage; anything still in another share or published is kept - Downloads through shares made with the API (and of files uploaded through it) count as traffic on the developer's meter: 10 GB a month free, then EUR 1 per TB, under their spending limit; GET /v1/shares/traffic and each share's traffic field show how much - Share emails: 200 a day per account with a paid plan, 20 on the free plan, 3 a day to the same address; no links in free-plan messages - Guide: https://culacc.com/developers/send-files/ ## Guides for developers - Send files to your users from your app: https://culacc.com/developers/send-files/ - Upload files of any size: https://culacc.com/developers/upload-files/ - Add an Edit button to your website: https://culacc.com/developers/edit-button/ - Host images and video for your website: https://culacc.com/developers/media-hosting/ ## Edit with Culacc (an Edit button for any website) - A developer adds one script (https://culacc.com/api/edit/sdk.js) and one server call (culacc.edit.createSession) - Their visitors click Edit, choose an app and edit in a Culacc window over the page; no Culacc account needed - Apps: image editor (crop with preset shapes, rotate, flip, brightness, contrast, saturation), PhotoCraft (layers), LightCraft (light and colour), VectorCraft (SVG, PDF), PdfCraft (combine, fill in, sign), WordCraft (DOCX), GridCraft (XLSX, CSV), DeckCraft (PPTX), CADCraft (DXF, DWG), DesignCraft (IDML), SoundCraft (audio), video trimmer (trim, crop to square, 16:9, 9:16 or 4:5, remove sound), Google Docs, Sheets and Slides in the visitor's own account, and a viewer - Visitors can also add a new file from their device, Google Drive, Dropbox or OneDrive, which saves the developer building an upload form - The result is saved in the developer's Culacc storage, published, and sent back to the page and to a file.edited webhook - The developer chooses the apps, allowed sites, output format and versioning (off by default; keep the original or every version, with revert) - Billed to the developer: traffic as media traffic, editing time 60 CPU minutes free a month then EUR 0.20 per CPU hour, under the same spending limit - Guide: https://culacc.com/developers/edit-button/ - Docs: https://culacc.com/developers#edit-with-culacc ## Integrations - Culacc for WordPress: plugin in the WordPress.org plugin directory; use your Culacc files inside wp-admin and back up the site - Culacc for Webflow: place images and videos from Culacc straight into the Designer - Culacc plugin for Figma: place files and PDF pages into designs - Figma backups: every change to a Figma file saved to Culacc as a PDF version - Shopify: back up your store - Any other site: publish a file and paste the link or the generated HTML, or add the Edit with Culacc button ## Features - 5GB free, no credit card required - Paid storage from EUR 0.50/100GB/month or EUR 5/100GB/year - Optional end-to-end encryption: everything, or only the folders you choose - Backups of 40 apps and email accounts, with versions - File and folder sharing with password, expiry, download limits and "Can edit" links - Browser editors (Crafting apps), file versioning, Windows sync app - Public media hosting with image resizing and video streaming - Bitcoin, Ethereum, USDC, USDT, Solana, BNB and 100+ crypto accepted - EU-based, GDPR compliant, no ads, no tracking ## Pricing - Free: 5GB forever - 100GB extra: EUR 0.50/month or EUR 5/year - 500GB extra: EUR 2.50/month or EUR 25/year - 1TB extra: EUR 5.00/month or EUR 50/year - Media traffic: 10GB free each month, then EUR 1 per TB - Editing time for Edit with Culacc: 60 CPU minutes free each month, then EUR 0.20 per CPU hour - Traffic and editing time are added to your existing Culacc invoice, so there is no second payment fee ## FAQ Q: Is there a free plan? A: Yes, 5GB free forever, no card needed. Q: Is Culacc end-to-end encrypted? A: If you choose it, yes: at sign-up (or later) choose to encrypt everything or only the folders you pick. Those files are encrypted on your device before upload, and Culacc can't read them. Q: What if I forget my E2EE password? A: Use the recovery code you got when you set it up. Culacc can't reset it for you: without the password or the recovery code, encrypted files can't be opened. Q: Can I share end-to-end encrypted files? A: Yes. The key travels in the link after the #, or the link opens with a password; the person opening it needs no account. Q: Do I have to stop using Google Drive or Dropbox? A: No. Connect them and Culacc keeps a backup with versions; Culacc works as a bridge between your apps. Q: Which apps can Culacc back up? A: 40, including Google Drive, OneDrive, Dropbox, Box, pCloud, MEGA, S3, WebDAV, SFTP, Outlook and IMAP email, Slack, Notion, GitHub, Figma, Canva, WordPress and Shopify. Q: Is there a desktop app? A: Yes, for Windows in the Microsoft Store. It syncs the folders you choose and keeps every change as a version, end-to-end encrypted if you want. Q: Can I pay with Bitcoin? A: Yes, BTC, ETH, USDC and 100+ coins accepted. Q: Is it GDPR compliant? A: Yes, operated from Slovakia EU, data on EU servers. Q: How does it compare to Google Drive? A: Cheaper, accepts crypto, EU-based, no ads, optional end-to-end encryption, and it can back up Google Drive itself. Q: What happens when my storage is full? A: You get an email at 90% and again near 98%. If it fills up, syncing pauses on every app until there is space again; nothing is deleted. Q: What happens when a plan expires? A: Free 5GB tier, files safe for 90 days then deleted above 5GB. Q: Can I use Culacc to host images for my website? A: Yes, publish a file and use its link; 10GB of traffic a month is free. Q: What does website traffic cost? A: EUR 1 per TB after the free 10GB, charged to the cent on your next invoice. Q: What happens if I go over my traffic limit? A: Published files stop loading until the next month, or until you raise your limit; nothing is deleted. Q: Do I need a card to publish files? A: Only to go past the free 10GB a month; without one, serving simply stops there. Q: Is there an API? A: Yes: a REST API and an npm package (@culacc/sdk) to upload files of any size, make folders, delete, share by link or email, publish with image transformations, add an editor to your site, and get webhooks. See https://culacc.com/developers Q: Can my app send its users files through Culacc? A: Yes: upload from your code, then share the files or folders as a link or have Culacc email it, with expiry, a password and editing if you like. The recipient needs no account. Stop the share, or let it delete its files when it ends. See https://culacc.com/developers/send-files/ Q: Can I use the API from Python or PHP? A: Yes, it's plain HTTPS and JSON; examples in curl and Python are in the docs, and an OpenAPI 3.1 description is at https://culacc.com/docs/openapi.json Q: How big can files uploaded through the API be? A: Up to 5TB each; over 500MB they go in parts, which the npm package handles for you. Q: Can my website's users edit photos and videos without leaving my site? A: Yes, with Edit with Culacc: one script and one server call, and visitors need no Culacc account. See https://culacc.com/developers#edit-with-culacc ## Links - Website: https://culacc.com - Sign up free: https://culacc.com - Developer docs: https://culacc.com/developers - Developer docs for AI assistants, in one file: https://culacc.com/llms-full.txt - npm package: https://www.npmjs.com/package/@culacc/sdk - Support: andrej@culacc.com - Privacy: https://culacc.com/privacy - Terms: https://culacc.com/terms --- # Culacc for developers: everything in one file This file joins Culacc's developer guides and the full API reference (2026-12-05). The same content is at https://culacc.com/developers (HTML), https://culacc.com/docs/api.md (the reference alone) and https://culacc.com/docs/openapi.json (OpenAPI 3.1). --- Source: https://culacc.com/developers/send-files/ # Guide: Send files to your users from your app Your app makes an invoice, an export, a set of photos or a project delivery, and your user should get it. With Culacc you upload it, share it as a link (or let Culacc email the link), and decide when it stops working and whether the files are deleted afterwards. The person who gets it needs no account. ## What your user gets A share page on culacc.com with your title and message: a preview of every file, a download button for each one, **Download all** as a ZIP, and folders they can open. You can add a password, an expiry date, and "Can edit", which lets them edit the files in the browser (documents, spreadsheets, PDFs, photos, drawings, audio). If you email it, each person gets their own email, from "Your Name via Culacc" when you give a sender name, and their replies come to you. ## Before you start 1. Make a free Culacc account at . 2. In **Settings → Developers**, press **New key** and tick **files:read**, **files:write** and **shares:write**. Keep the key on your server. 3. `npm install @culacc/sdk` (Node 18 or newer), or call the REST API from any language. ## Send files in one call ```js const { Culacc } = require('@culacc/sdk'); const culacc = new Culacc({ key: process.env.CULACC_KEY }); const { share, emails } = await culacc.send([ { name: 'invoice-1042.pdf', data: pdfBuffer }, // bytes you have in memory { localPath: './exports/orders-march.xlsx' }, // a file on disk, any size ], { to: 'client@example.com', // or a list, up to 20; leave out to only get the link senderName: 'Acme Studio', title: 'Your March documents', message: 'Here are the invoice and the order export.', expiresInDays: 7, autoDelete: true, // delete the files when the link expires externalRef: 'customer-381', // your own id, to find the share again folder: '/Customers/381', // where the files go in your storage }); console.log(share.url); // https://culacc.com/bundle/… console.log(emails); // [{ email: 'client@example.com', status: 'sent' }] ``` `send()` uploads new content (in parts when it's big), then makes the share. You can mix in files that are already in Culacc by id or path: `culacc.send([4821, '/Contracts/acme.pdf'], { to: … })`. ## Share files and folders you already have ```js const { share } = await culacc.shares.create({ items: ['/Customers/381'], // a folder: everything in it, now and later title: 'Acme: project files', canEdit: true, password: 'blue-river-42', expiresInDays: 0, // never expires }); ``` A shared folder is live: files you put into it later appear for your user without a new link. That makes it a simple client portal: one folder and one link per customer. | Option | What it does | |---|---| | `items` | files and folders, by id or path (up to 200; a folder can hold any number) | | `to`, `senderName`, `replyTo`, `message` | email it now; replies go to your account's address unless you set `replyTo` | | `expiresInDays`, `expiresAt`, `never` | 30 days by default; `0` means never | | `password` | asked for on the share page | | `canEdit` | people with the link can edit the files | | `externalRef` | your own reference, to find the share later | | `autoDelete` | delete the files for good when the share expires or is stopped | ## Find, change and send again ```js const { shares } = await culacc.shares.list({ externalRef: 'customer-381', status: 'active' }); const { share } = await culacc.shares.get(shares[0].id); // items, views, downloads, recipients await culacc.shares.update(share.id, { expiresInDays: 30, password: null }); await culacc.shares.send(share.id, 'accounts@example.com'); // the same link to someone else await culacc.shares.addItems(share.id, ['/Customers/381/invoice-1043.pdf']); ``` ## Stop sharing, and clean up ```js await culacc.shares.revoke(share.id); // the link stops working at once await culacc.shares.revoke(share.id, { deleteFiles: true }); // and its files are deleted for good ``` With `autoDelete: true` you don't have to remember: when the share expires, Culacc deletes its files and gives the space back. Files that another active share still holds, or that are published on the web, are kept and reported instead, so a cleanup never breaks another link. To delete files yourself at any time: ```js await culacc.files.delete('/Customers/381/old-export.xlsx'); // to the trash await culacc.files.delete('/Customers/381/old-export.xlsx', { permanent: true }); // for good ``` ## Know what happened Webhooks tell your server about it, signed so you can check they're real: ```js await culacc.webhooks.create({ url: 'https://your-app.com/hooks/culacc', events: ['share.created', 'share.expired', 'share.revoked', 'file.deleted'], }); ``` `share.expired` carries your `externalRef`, and for an `autoDelete` share how many files were deleted and how many bytes were freed. ## From Python, PHP or anything else ```python import os, requests API, H = "https://culacc.com/api/v1", {"Authorization": f"Bearer {os.environ['CULACC_KEY']}"} share = requests.post(f"{API}/shares", headers=H, json={ "items": ["/Customers/381"], "to": "client@example.com", "senderName": "Acme Studio", "expiresInDays": 7, "autoDelete": True, }).json()["share"] print(share["url"]) ``` ## Limits and costs - Up to 200 files and folders per share, 20 addresses per email, 200 share emails a day per account (20 on the free plan, which also can't put links in the message), 3 a day to the same address. - Files up to 5 TB each. - Storage at your Culacc price (5 GB free, then €0.50 per 100 GB a month). Making shares and sending emails costs nothing extra. - Downloads through your shares are traffic on your meter, like published files: 10 GB a month free, then €1 per TB, under the monthly spending limit you set. Each share shows `traffic.bytesThisMonth`; `GET /v1/shares/traffic` has the month's total. ## Reference - [Sharing files](/developers#sharing-files) and [Deleting files](/developers#deleting-files) in the API reference - [Upload files of any size](/developers/upload-files/) - OpenAPI: --- Source: https://culacc.com/developers/upload-files/ # Guide: Upload files of any size to Culacc from your code Store what your users upload, your app's exports, backups or media in Culacc's EU storage. The bytes go straight to storage, never through Culacc's API server or (for browser uploads) yours. Files can be as big as 5 TB. ## From your server (Node) ```js const { Culacc } = require('@culacc/sdk'); const culacc = new Culacc({ key: process.env.CULACC_KEY }); // a key with files:write // Bytes you have in memory: a Buffer, Uint8Array or Blob const photo = await culacc.upload(buffer, { name: 'photo.jpg', path: '/Users/42/Photos' }); // A file on disk, any size, without reading it all into memory const backup = await culacc.uploadFile('./db-backup.tar.gz', { path: '/Backups', onProgress: ({ loaded, total }) => console.log(Math.round(loaded / total * 100) + '%'), }); // A whole folder, keeping its subfolders const { folder, files, failed } = await culacc.uploadFolder('./site-export', { path: '/Sites/acme' }); ``` Missing folders in `path` are made. Files over 64 MB go in parts, four at a time, and a part that fails is sent again on its own. ## When the name is taken | `onConflict` | What happens | |---|---| | `rename` (default) | the new file becomes `photo (1).jpg` | | `replace` | the existing file gets the new contents and keeps its id, so shares and published links go on working; the old contents are deleted | | `version` | the same, but the old contents stay as an earlier version | | `fail` | an error (409) | ```js await culacc.uploadFile('./prices.csv', { path: '/Feeds', onConflict: 'replace' }); ``` ## Straight from your user's browser Your key stays on your server. Your server asks Culacc for an upload address and hands the page only that address: ```js // Your server (Express) app.post('/api/upload-start', requireLogin, async (req, res) => { const { name, size, type } = req.body; const up = await culacc.uploads.create({ name, size, mime: type, path: `/Users/${req.user.id}` }); res.json({ uploadId: up.uploadId, uploadUrl: up.uploadUrl }); }); app.post('/api/upload-done', requireLogin, async (req, res) => { const { file } = await culacc.uploads.complete(req.body.uploadId); res.json(file); // save file.id with your user }); ``` ```js // Your page const f = input.files[0]; const { uploadId, uploadUrl } = await post('/api/upload-start', { name: f.name, size: f.size, type: f.type }); await fetch(uploadUrl, { method: 'PUT', body: f }); const file = await post('/api/upload-done', { uploadId }); ``` For files over 500 MB the answer has a `multipart` plan instead of an `uploadUrl`: slices of `partSize` bytes, each PUT to its own address. Each address takes exactly the `size` it lists, so send each slice as a buffer or blob (with its `Content-Length`). Ask for more addresses with `culacc.uploads.parts(uploadId, { from: 101 })`. ## By hand, from any language ``` POST /v1/uploads { "name": "film.mp4", "size": 2147483648, "path": "/Video" } PUT the bytes (or each part to its address) POST /v1/uploads//done ``` Size is what storage really received; more than you announced is refused. `GET /v1/uploads/` shows which parts have arrived, so an interrupted upload can carry on. `DELETE /v1/uploads/` cancels and removes the parts. ## Folders, deleting, finding files ```js await culacc.folders.create('/Users/42/Invoices'); const { files } = await culacc.files.list({ path: '/Users/42', limit: 100 }); await culacc.files.delete(files[0].id, { permanent: true }); // frees the space at once ``` ## Know when it's there The `file.uploaded` webhook fires for every finished upload, with the file's id, name, path and size. ## Limits and costs - One file: up to 5 TB. Up to 500 MB in one PUT, above that in parts of 32 MB or more. - An upload has 15 minutes to finish (24 hours in parts); unfinished ones are cleaned up. - Free space is checked when an upload starts (counting the ones already on their way) and again when it's done; up to 50 uploads can be on their way at once. - Uploads count toward storage (5 GB free, then €0.50 per 100 GB a month), not traffic. ## Reference - [Uploading](/developers#uploading) and [Big files, in parts](/developers#big-files-in-parts) in the API reference - [Send files to your users](/developers/send-files/) --- Source: https://culacc.com/developers/edit-button/ # Guide: Add an Edit button to your website Let your visitors edit a photo, video, document, spreadsheet, presentation, PDF, drawing or recording without leaving your site and without a Culacc account. They press **Edit**, a Culacc window opens over your page, they pick an app, and the result is saved in your Culacc storage and sent back to your page and your server. ## The apps your visitors can use | App | For | Opens | |---|---|---| | Image editor | quick crops, rotate, brightness | JPG, PNG, WebP, GIF, AVIF | | PhotoCraft | layers, masks, brushes (Photoshop-style) | PNG, JPG, WebP | | LightCraft | light and colour (Lightroom-style) | JPG, PNG, TIFF, WebP | | VectorCraft | vector drawings | SVG, PDF | | PdfCraft | combine, fill in, sign, comment | PDF | | WordCraft | documents | DOCX, DOC, ODT, RTF | | GridCraft | spreadsheets | XLSX, XLS, ODS, CSV | | DeckCraft | presentations | PPTX | | CADCraft | CAD drawings | DXF, DWG | | DesignCraft | page layout (InDesign-style) | IDML, INDD | | SoundCraft | audio: cut, fade, many tracks | WAV, MP3, FLAC, OGG, M4A | | Video trimmer | trim and crop video | MP4, MOV, WebM | | Google Docs, Sheets & Slides | in the visitor's own Google account | Office files | The Crafting apps (PhotoCraft to SoundCraft) run in the visitor's browser. You choose which apps appear. ## 1. Set it up in Culacc **Settings → Developers → Edit with Culacc**: add your site under **Allowed sites** (`http://localhost` works while you build), switch on the apps you want, and choose what happens on save: replace the file, keep the original, or keep every version. Make a key with **files:write**. ## 2. Your server starts a session ```js const { Culacc } = require('@culacc/sdk'); const culacc = new Culacc({ key: process.env.CULACC_KEY }); app.post('/api/culacc-session', requireLogin, async (req, res) => { const { editorUrl } = await culacc.edit.createSession({ origin: 'https://your-site.com', fileId: req.body.fileId, // leave out to let the visitor add a new file apps: ['photocraft', 'image-editor'], externalRef: String(req.user.id), }); res.json({ editorUrl }); // the page never sees your key }); ``` ## 3. Your page opens it ```html ``` It opens as a window over the page (full screen on phones), a popup, or a full-page redirect. The result has the file's id, name, size and published address. ## 4. Your server hears about every save Subscribe to the `file.edited` webhook: it arrives even if the visitor closes the tab, with the `externalRef` you passed. ## Costs You pay for what your visitors use; they pay nothing. Storage at your usual price, traffic 10 GB a month free then €1 per TB, editing time 60 CPU minutes a month free then €0.20 per CPU hour, all under one monthly spending limit you set. ## Reference - [Edit with Culacc](/developers#edit-with-culacc) in the API reference - [Upload files of any size](/developers/upload-files/) --- Source: https://culacc.com/developers/media-hosting/ # Guide: Host images and video for your website Put product photos, blog images, videos, audio and PDFs on a fast, stable public address, resized and converted to WebP for each screen. Culacc makes the responsive HTML for you. Storage and delivery are in the EU. ## Publish a file ```js const { Culacc } = require('@culacc/sdk'); const culacc = new Culacc({ key: process.env.CULACC_KEY }); // files:write and links:write const file = await culacc.upload(buffer, { name: 'hero.jpg', path: '/Site' }); const { link, html } = await culacc.files.publish(file.id); link.url // https://media.culacc.com/aB3…/hero.jpg html // with WebP srcset, width, height and lazy loading ``` Nothing is public until you publish it, and switching a link off stops it at once. ## Resize on the way out Add parameters to any published image address: ``` https://media.culacc.com/aB3…/hero.jpg?w=800&format=webp ``` | Parameter | Meaning | |---|---| | `w`, `h` | width and height in pixels | | `format` | `webp`, `jpeg`, `png`, or `auto` for whatever the browser prefers | | `q` | quality, 1 to 100 | | `fit` | `cover`, `contain` or `inside` | ```js culacc.image(link.url, { width: 800, format: 'webp' }) ``` Versioned addresses are cached for a year. Videos stream with range requests, so seeking works, and get a poster frame. ## Keep other sites from embedding your files ```js await culacc.files.publish(file.id, { allowedHosts: ['your-site.com'] }); await culacc.files.update(file.id, { status: 'off' }); // switch off await culacc.files.unpublish(file.id); // remove for good ``` ## Costs and limits - Traffic: 10 GB a month free, then €1 per TB, counted to the cent and added to your Culacc invoice. - A monthly spending limit you set: published files stop loading at it, and nothing is deleted. - Storage at your Culacc price (5 GB free, then €0.50 per 100 GB a month). ## Also - WordPress: the Culacc plugin in the WordPress.org directory. - Webflow and Figma: place Culacc files straight into your designs. - Let visitors edit what you host: [Add an Edit button](/developers/edit-button/). ## Reference - [Publishing](/developers#publishing) and [Images on the way out](/developers#images-on-the-way-out) in the API reference --- Source: https://culacc.com/developers (also https://culacc.com/docs/api.md) # Culacc API Store files, send them to people by link or email, delete them when you're done, publish them to the web, serve resized images from EU-hosted storage, and let your visitors edit photos and videos in a Culacc window. One REST API, an npm package, a browser script, and webhooks when things change. Base address: `https://culacc.com/api/v1` ## What you can build Culacc is file storage you build on: your app keeps its own interface, users, database and logic, and hands files to Culacc. Storage is in the EU (Germany). | You want to | Use | |---|---| | send your users files (invoices, exports, deliveries, photos) as a link, or have Culacc email it | [Sharing files](#sharing-files): `culacc.send()`, `POST /v1/shares` | | store what your users upload, from your server or straight from their browser, of any size | [Uploading](#uploading): `culacc.upload()`, `POST /v1/uploads` | | put images and video on your website, resized for each screen | [Publishing](#publishing) and [image options](#images-on-the-way-out) | | let visitors edit photos, videos, documents, spreadsheets, slides, PDFs, drawings or audio without leaving your site | [Edit with Culacc](#edit-with-culacc) | | keep storage tidy: delete files and links when you're done, or let shares clean up after themselves | [Deleting files](#deleting-files), `autoDelete` | | hear when something happens | [Webhooks](#webhooks) | Things people build with it: - **Client portals and agencies:** a folder per client, shared as one live link; files you add later show up for them. - **SaaS exports and reports:** generate a file, send it by email with a link that expires in 7 days and deletes the file afterwards. - **Marketplaces and shops:** product photos stored and served as WebP at the right size, with `srcset` HTML made for you. - **Website builders and CMSs:** a media library with an **Edit** button that opens a photo, PDF or document editor over the page. - **Schools and course platforms:** assignments uploaded by students, shared back with feedback. - **AI apps:** store generated images, audio and documents, and hand users a download link. Guides, step by step: - [Send files to your users from your app](/developers/send-files/) - [Upload files of any size](/developers/upload-files/) - [Add an Edit button to your website](/developers/edit-button/) - [Host images and video for your website](/developers/media-hosting/) Quick start (Node 18+): ```bash npm install @culacc/sdk export CULACC_KEY=clc_live_... # Settings → Developers → New key ``` ```js const { Culacc } = require('@culacc/sdk'); const culacc = new Culacc(); // reads CULACC_KEY const file = await culacc.uploadFile('./report.pdf', { path: '/Reports' }); const { share } = await culacc.shares.create({ items: [file.id], to: 'client@example.com', expiresInDays: 7 }); console.log(share.url); ``` For AI assistants and coding agents: this reference is plain Markdown at , everything (overview, guides and reference) is in one file at , and the API is described as OpenAPI 3.1 at . ## Getting a key Settings → Developers → **New key**. A key looks like `clc_live_…`, is shown once, and carries permissions you choose: | Permission | Lets a key | |---|---| | `files:read` | list and read files, read shares | | `files:write` | upload, replace and delete files, make folders, start editor sessions | | `shares:write` | share files and folders by link or email, change and stop shares | | `links:write` | publish files to the web and change links | | `webhooks:write` | manage webhooks | Send it as a header: ```bash curl -H "Authorization: Bearer clc_live_..." https://culacc.com/api/v1/me ``` `X-Api-Key: clc_live_…` works too. Each key has a per-minute rate limit and can be locked to particular addresses. Keys belong on a server: anything in a browser is public. ## The npm package ```bash npm install @culacc/sdk ``` ```js const { Culacc } = require('@culacc/sdk'); const culacc = new Culacc({ key: process.env.CULACC_KEY }); const { files } = await culacc.files.list({ kind: 'image', limit: 10 }); const { link, html } = await culacc.files.publish(files[0].id); console.log(link.url); // https://media.culacc.com/aB3.../photo.jpg console.log(html); // with srcset, ready to paste // Send a customer their files, and let Culacc delete them after a week. const { share } = await culacc.send([{ name: 'invoice.pdf', data: pdf }], { to: 'client@example.com', expiresInDays: 7, autoDelete: true, }); ``` It retries 429s and 5xx with a growing gap, times out at 60 seconds, and throws `CulaccError` with `status` and `code` on anything else. Version 1.1 adds `culacc.edit` for the editor; version 1.4 adds sharing, deleting, folders and uploads of any size. ## From any language The npm package is for JavaScript and TypeScript. Everything is plain HTTPS and JSON, so Python, PHP, Go, Ruby or anything else works the same way: send the key as `Authorization: Bearer clc_live_…`. ```bash # Upload: ask for an address, PUT the bytes, say it's done curl -s -X POST https://culacc.com/api/v1/uploads -H "Authorization: Bearer $CULACC_KEY" \ -H "Content-Type: application/json" -d '{"name":"report.pdf","size":48211,"path":"/Reports"}' curl -s -X PUT --upload-file report.pdf "" curl -s -X POST https://culacc.com/api/v1/uploads//done -H "Authorization: Bearer $CULACC_KEY" # Share it by email for 7 days curl -s -X POST https://culacc.com/api/v1/shares -H "Authorization: Bearer $CULACC_KEY" \ -H "Content-Type: application/json" -d '{"items":["/Reports/report.pdf"],"to":"client@example.com","expiresInDays":7}' ``` ```python import os, requests API = "https://culacc.com/api/v1" H = {"Authorization": f"Bearer {os.environ['CULACC_KEY']}"} data = open("report.pdf", "rb").read() up = requests.post(f"{API}/uploads", headers=H, json={"name": "report.pdf", "size": len(data), "path": "/Reports"}).json() requests.put(up["uploadUrl"], data=data).raise_for_status() file = requests.post(f"{API}/uploads/{up['uploadId']}/done", headers=H).json()["file"] share = requests.post(f"{API}/shares", headers=H, json={ "items": [file["id"]], "to": "client@example.com", "expiresInDays": 7, "autoDelete": True, }).json()["share"] print(share["url"]) ``` ## Files ### List files ``` GET /v1/files?kind=image&limit=50 ``` | Parameter | Meaning | |---|---| | `path` | browse a folder, e.g. `/Photos` | | `search` | search names instead of browsing | | `kind` | `image`, `svg`, `video`, `audio`, `pdf`, comma separated | | `limit`, `offset` | paging; up to 200 at a time | With neither `path` nor `search` you get the most recent files. ```json { "files": [{ "id": 4821, "name": "hero.jpg", "path": "/Photos/hero.jpg", "kind": "image", "mime": "image/jpeg", "size": 2280114, "updatedAt": "2026-09-14T08:12:00.000Z", "published": true, "url": "https://media.culacc.com/aB3.../hero.jpg" }], "folders": [{ "name": "Photos", "path": "/Photos" }], "nextOffset": null } ``` ### One file ``` GET /v1/files/4821 ``` Returns the file, its link if it has one, and ready-made HTML. ### Folders ``` POST /v1/folders { "path": "/Clients/Acme" } files:write ``` Makes the folder and any folder above it that's missing, and returns it. It answers 201 when it made something and 200 when the folder was already there, so you can call it every time. ```json { "folder": { "id": 5120, "name": "Acme", "path": "/Clients/Acme", "isFolder": true, "size": 0, "fileCount": 0, "folderCount": 0 }, "created": true } ``` Uploads make their folders too, so you only need this for empty ones. ### Deleting files ``` DELETE /v1/files/4821 files:write DELETE /v1/files/4821?permanent=true POST /v1/files/delete { "items": [4822, "/Tmp/exports"], "permanent": true } ``` ```js await culacc.files.delete(4821); // to the trash await culacc.files.delete('/Clients/Old', { permanent: true }); // for good await culacc.files.deleteMany([4822, '/Tmp/exports'], { permanent: true }); ``` - **To the trash** (the default): the file or folder, and everything inside a folder, goes to the Culacc trash, where it can be restored. It still counts toward your storage until the trash is emptied. - **For good** (`permanent`): every version of every file goes from storage and the space is free at once. A published link to it stops working, and it leaves any share it was in. This also works on files and folders already in the trash, which is how you give their space back. `items` takes ids or paths, up to 500. Something inside a folder that's also in the list goes with the folder. ```json { "deleted": [{ "id": 4822, "name": "exports", "path": "/Tmp/exports", "isFolder": true, "size": 52428800, "fileCount": 12, "folderCount": 2, "permanent": true, "bytesFreed": 52428800 }], "bytesFreed": 52428800 } ``` `DELETE /v1/files/:id` answers with `deleted` as one object rather than a list. ## Publishing Publishing gives a file a stable public address. Nothing is public until you ask for it, and turning a link off stops it immediately. ``` POST /v1/files/4821/publish { "allowedHosts": ["example.com"] } // optional ``` ```json { "link": { "slug": "aB3...", "url": "https://media.culacc.com/aB3.../hero.jpg", "kind": "image", "status": "active", "width": 3000, "height": 2000 }, "html": "" } ``` - `PATCH /v1/files/4821/publish` with `{"status":"off"}` switches it off, or changes `allowedHosts`. - `DELETE /v1/files/4821/publish` removes the link for good. - `GET /v1/links` lists everything published. **Allowed sites** are checked against the browser's `Referer` and `Origin`. They discourage other sites from embedding your files; they aren't a lock, since anyone with the address can still open it directly. Leave them off for files you place in Miro or other tools that fetch from their own servers. ## Images on the way out Add parameters to any published image address: | Parameter | Meaning | |---|---| | `w` | width in pixels; sizes are snapped to a fixed set | | `h` | height in pixels | | `format` | `webp`, `jpeg`, `png`, or `auto` for whatever the browser prefers | | `q` | quality, 1 to 100 | | `fit` | `cover`, `contain` or `inside` | ``` https://media.culacc.com/aB3.../hero.jpg?w=800&format=webp ``` The SDK builds these for you: ```js culacc.image(link.url, { width: 800, format: 'webp' }) ``` Versioned addresses (`?v=…`, which the generated HTML uses) are cached for a year. Videos stream with range requests, so seeking works. ## Uploading Bytes never pass through the API server: you ask for an address, the browser or your server PUTs to it, then you say it's done. ```js const file = await culacc.upload(buffer, { name: 'photo.jpg', mime: 'image/jpeg', path: '/Photos', }); // Node: from disk, any size, or a whole folder with its subfolders await culacc.uploadFile('./backup.tar', { path: '/Backups', onProgress: ({ loaded, total }) => {} }); await culacc.uploadFolder('./site', { path: '/Sites/Acme' }); ``` By hand, if you'd rather: ``` POST /v1/uploads { "name": "photo.jpg", "size": 2280114, "mime": "image/jpeg", "path": "/Photos" } → { "uploadId": "…", "uploadUrl": "https://…", "method": "PUT", "expiresIn": 900, "path": "/Photos/photo.jpg", "multipart": null } PUT (the bytes) POST /v1/uploads//done → { "file": { "id": 4822, "name": "photo.jpg", "path": "/Photos/photo.jpg", "size": 2280114, "mime": "image/jpeg" } } ``` | Field | Meaning | |---|---| | `name`, `size` | required; `size` in bytes | | `mime` | the type; guessed from the name when left out | | `path` | the folder it goes in, `/` by default. Missing folders are made | | `onConflict` | when that name is taken: `rename` (default, `photo (1).jpg`), `replace`, `version` or `fail` | | `multipart` | `true` to send a file over 5 MB in parts even below 500 MB | - **`replace`** keeps the file's id, so shares and published links to it go on working, and gives it the new contents; the old contents are deleted. **`version`** does the same but keeps the old contents as an earlier version. **`fail`** answers 409, before the upload if the name is taken then, or at `done` if it was taken meanwhile. - The size recorded is what storage actually received, not what was claimed. More than `size` is refused at `done` and removed. - Free space is checked when the upload starts, counting the uploads you already have on their way, and again at `done`. Without room the answer is 413 `QUOTA` (with `needBytes`, `freeBytes` and `reservedBytes`), and at `done` the bytes are removed. Up to 50 uploads can be on their way at once; past that, 429 `LIMIT_REACHED` until you finish or cancel some. - PUT once. An address stays valid until it expires, but what's there when it does is what counts: a file whose bytes changed afterwards is charged for its real size, or deleted if that doesn't fit your storage (`file.deleted` with `"reason": "changed_after_upload"`). - Calling `done` twice returns the same file rather than making two. - Uploads expire after 15 minutes (big ones after 24 hours) and count against storage, not traffic. Unfinished ones are cleaned up. ### Big files, in parts Above 500 MB a file goes in parts: the answer has `uploadUrl: null` and a `multipart` plan instead. The SDK does all of this for any upload over 64 MB. ```json { "uploadId": "…", "uploadUrl": null, "method": "PUT", "expiresIn": 86400, "multipart": { "partSize": 33554432, "parts": 120, "urls": [{ "partNumber": 1, "size": 33554432, "url": "https://…" }, …] } } ``` PUT each slice of `partSize` bytes (the last one is shorter) to its address, several at a time if you like, then call `done`. Each address takes exactly the `size` it lists (storage refuses any other size), so send each slice with its `Content-Length`, as a buffer or blob rather than a stream. The first 100 addresses come with the answer; ask for more: ``` POST /v1/uploads//parts { "from": 101, "count": 100 } or { "parts": [7, 12] } GET /v1/uploads/ which parts have arrived, to resume after a break POST /v1/uploads//done → missing parts are named: { "missingParts": [12] } DELETE /v1/uploads/ cancel; the parts are removed ``` Files go up to 5 TB, in up to 10,000 parts. Part addresses are good for 6 hours; ask again for one that ran out. **From a browser:** have your own server call `POST /v1/uploads` and hand the page only the `uploadUrl` (or the part addresses). Your key stays on your server. If you'd rather not build an upload form at all, an editor session without a `fileId` gives your visitor one (see Edit with Culacc). ## Sharing files A share is a link to files and folders that you send to people: the same share page your users get from Culacc's own Share button, with a preview, a download for each file, everything as one ZIP, and optional password, expiry and editing. A shared folder is live: files you put in it later are shared too. Culacc can email the link for you, or you send `url` yourself. ```js const { share, emails } = await culacc.shares.create({ items: [4821, '/Clients/Acme/Contracts'], // files and folders, by id or path to: ['client@example.com'], // leave out to just get the link senderName: 'Acme Studio', message: 'The signed contracts', expiresInDays: 14, externalRef: 'client-17', }); share.url // https://culacc.com/bundle/9f2c… ``` Upload and share in one go: ```js const { share, files } = await culacc.send([ { name: 'invoice.pdf', data: pdfBuffer }, { localPath: './exports/report.xlsx' }, // Node 4821, // already in Culacc ], { to: 'client@example.com', folder: '/Clients/Acme', expiresInDays: 7, autoDelete: true }); ``` New files go into `folder` (`/Sent` by default); everything else is as for `shares.create`. ### Make a share ``` POST /v1/shares shares:write ``` | Field | Meaning | |---|---| | `items` | required: files and folders, by id or path, up to 200 | | `to` | email it now: an address, `"a@x.com, b@y.com"` or a list, up to 20 | | `email` | instead of `to`: `{ to, message, senderName, replyTo }` | | `senderName` | the sender people see, e.g. `Acme Studio` (the email comes from "Acme Studio via Culacc"); your account's address by default | | `replyTo` | where replies go; your account's address by default | | `title` | on the share page and in the email; the first item's name by default | | `message` | on the share page and in the email | | `expiresInDays` | 30 by default; `0` for never. Or `expiresAt` (a date), or `never: true` | | `password` | 4 to 200 characters | | `canEdit` | people with the link may edit the files: in the Crafting apps straight away, in Google, Microsoft or Canva after signing in | | `externalRef` | your own id for it (an order, a client), up to 200 characters | | `autoDelete` | delete its files and folders for good when the share expires or is stopped (see below); needs `files:write` too | It answers 201: ```json { "share": { "id": 912, "url": "https://culacc.com/bundle/9f2c…", "status": "active", "title": "Contracts", "message": "The signed contracts", "canEdit": false, "hasPassword": false, "expiresAt": "2026-12-18T11:57:00.000Z", "createdAt": "2026-12-04T11:57:00.000Z", "createdVia": "api", "externalRef": "client-17", "autoDelete": false, "filesDeleted": false, "fileCount": 6, "folderCount": 1, "totalSize": 4404019, "views": 0, "downloads": 0, "zipUrl": "https://culacc.com/api/files/bundle/9f2c…/download-all", "items": [ { "id": 4821, "name": "contract.pdf", "path": "/Clients/Acme/contract.pdf", "isFolder": false, "mime": "application/pdf", "size": 182044, "addedBy": null, "downloadUrl": "https://culacc.com/api/files/bundle/9f2c…/download/4821" }, { "id": 5120, "name": "Contracts", "path": "/Clients/Acme/Contracts", "isFolder": true, "size": 4221975, "fileCount": 5, "folderCount": 0, "addedBy": null, "downloadUrl": "https://culacc.com/api/files/bundle/9f2c…/download/5120" } ], "recipients": [{ "email": "client@example.com", "status": "sent", "sentAt": "…" }] }, "emails": [{ "email": "client@example.com", "status": "sent" }] } ``` `fileCount`, `folderCount` and `totalSize` count everything inside shared folders. `zipUrl` and each item's `downloadUrl` (a folder downloads as a ZIP) are there while the share is active and has no password; with a password, people use the share page. Each address gets its own email, so nobody sees the others. If the mail server doesn't take one, the share is still made and that address is `"failed"` in `emails`; send it again later. The first address also finds the share in **Shared with me** when it signs in to Culacc with that address. ### Read, change, send again ``` GET /v1/shares files:read GET /v1/shares/912 files:read (with items and recipients) PATCH /v1/shares/912 shares:write POST /v1/shares/912/send shares:write { "to": "another@example.com", "message": "…" } POST /v1/shares/912/items shares:write { "items": ["/Clients/Acme/invoice-2.pdf"] } DELETE /v1/shares/912/items/4821 shares:write ``` `GET /v1/shares` lists your shares, newest first, including the ones made in Culacc itself (`createdVia: "dashboard"`): | Parameter | Meaning | |---|---| | `status` | `active`, `expired`, `revoked` or `all` (default) | | `source` | `api`, `dashboard` or `all` (default) | | `externalRef` | only shares with this reference | | `fileId` | only shares holding this file or folder | | `limit`, `offset` | paging; up to 200 at a time, `nextOffset` for the next page | `PATCH` takes `title`, `message`, `password` (`null` removes it), `canEdit`, `expiresInDays` / `expiresAt` / `never`, `externalRef` and `autoDelete`. A share that expired opens again when you move its date into the future. A stopped share can't be changed; make a new one. `items` adds files and folders to a share; deleting one takes it out (only the share's own items; something inside a shared folder leaves when you delete or move it). ### Stop a share, and clean up ``` DELETE /v1/shares/912 shares:write the link stops working at once DELETE /v1/shares/912?deleteFiles=true + files:write and its files are deleted for good ``` ```js await culacc.shares.revoke(912); await culacc.shares.revoke(912, { deleteFiles: true }); ``` ```json { "share": { "id": 912, "status": "revoked", … }, "files": { "deleted": [{ "id": 5120, "path": "/Clients/Acme/Contracts", "isFolder": true, "permanent": true, "bytesFreed": 4221975 }], "kept": [{ "id": 4821, "path": "/Clients/Acme/contract.pdf", "reason": "shared", "message": "Still in another share (Q4 documents)." }], "bytesFreed": 4221975 } } ``` **`autoDelete`** decides that up front: when the share expires or is stopped, its files and folders are deleted for good, so a one-off delivery doesn't sit in your storage. Culacc checks every 10 minutes, and `share.expired` tells your server what went. Stopping an `autoDelete` share deletes its files at once, unless you add `?keepFiles=true`. Either way, files and folders that are still in use are kept and listed in `kept`: anything another active share holds (`"reason": "shared"`) and anything with a file published on the web (`"reason": "published"`). Uploads people added through the link go too, and so does the folder they went into once it's empty. ### Share emails Share emails come from Culacc's mail server, so they have limits, each over 24 hours: | | | |---|---| | Per account with a paid plan | 200 | | Per account on the free plan | 20 | | To the same address, from one account | 3 | A request that would go past one is refused with 429 and `LIMIT_REACHED` before anything is made, with `emailsLeftToday` (or the `email` that's had enough); you can still make the share without `to` and send its `url` yourself. On the free plan the message and title can't contain links (the email already has the share's link). `senderName` is a name, not an address or a link. ### Downloads through share links Downloads through a share link are traffic, and they're counted per share and per account: - **Shares made through the API, and files uploaded through it** (in any share), go on your traffic meter with published files: 10 GB a month free, then €1 per TB, under your monthly spending limit. A file counts its size each time a download starts (once per person and file in 10 minutes); a ZIP counts what was sent. At the limit those downloads stop until next month, like published files. - **Other shares** (made in the dashboard, of files that didn't come through the API) are free up to 3× your storage plan a month, at least 50 GB, then pause until next month. Every share has `traffic: { bytesThisMonth, bytesTotal }`, and `billed: true` when it was made through the API. ``` GET /v1/shares/traffic ``` ```json { "month": "2026-12-01", "billed": { "bytes": 3221225472, "meter": { "used": 4294967296, "free": 10737418240, "cost": { "amount": 0, "currency": "eur" }, "stopped": false } }, "free": { "bytes": 1073741824, "allowance": 322122547200, "stopped": false }, "resetsAt": "2027-01-01T00:00:00.000Z" } ``` Share pages also pause an address after 10 wrong passwords (a share after 30 in an hour), stop more than 300 downloads from one address in 10 minutes, and build a few ZIPs at once; a share over 10 GB, or with a file over 1 GB, downloads file by file rather than as one ZIP. ## Edit with Culacc Put an **Edit** or **Open** button on your own site. Your visitor clicks it, a Culacc window opens over your page, they pick an app, edit their photo or video, and the result is saved in your Culacc storage and sent back to your page. Documents, spreadsheets, slides, PDFs, drawings, CAD files and audio work too, in the Crafting apps (full editors that run in the visitor's browser) or in Google Docs, Sheets and Slides. You decide which apps they see; they never need a Culacc account. | `apps` id | App | Opens | Saves | |---|---|---|---| | `image-editor` | Image editor: crop (free or 1:1, 4:3, 3:4, 16:9, 9:16), rotate, flip, brightness, contrast, saturation | JPG, PNG, WebP, GIF, AVIF, BMP | the format chosen in Settings | | `photocraft` | PhotoCraft: layers, masks, brushes (Photoshop-style) | PNG, JPG, WebP, GIF, BMP | PNG, JPG, WebP | | `lightcraft` | LightCraft: light and colour (Lightroom-style) | JPG, PNG, TIFF, WebP, GIF, BMP | JPG, PNG, WebP, TIFF, AVIF | | `vectorcraft` | VectorCraft: vector drawings | SVG, PDF | SVG, PDF | | `pdfcraft` | PdfCraft: combine, fill in, sign, comment | PDF | PDF | | `wordcraft` | WordCraft: documents | DOCX, DOC, ODT, RTF | DOCX, ODT, RTF | | `gridcraft` | GridCraft: spreadsheets | XLSX, XLS, ODS, CSV, TSV | XLSX, ODS, CSV, TSV | | `deckcraft` | DeckCraft: presentations | PPTX | PPTX | | `cadcraft` | CADCraft: CAD drawings | DXF, DWG | DXF, DWG | | `designcraft` | DesignCraft: page layout (InDesign-style) | .designcraft, IDML, INDD | .designcraft, IDML | | `soundcraft` | SoundCraft: cut, fade, many tracks | WAV, AIFF, FLAC, MP3, OGG, M4A, AAC | WAV, AIFF, FLAC | | `video-editor` | Video trimmer: trim, crop to square, 16:9, 9:16 or 4:5, remove the sound; processed on Culacc's servers | MP4, MOV, WebM, MKV | MP4 or WebM, as set in Settings | | `google` | Google Docs, Sheets & Slides, in a new tab, in the visitor's own Google account | Office and OpenDocument files, CSV, TXT | the same format (DOC, XLS, PPT come back as DOCX, XLSX, PPTX) | | `viewer` | Viewer: opens the file as it is | pictures, SVG, videos, audio, PDF | (shows only; `mode: 'open'`) | Each app is switched on in Settings. A file an app opens but can't write (an MP3 in SoundCraft, a DOC in WordCraft) is saved in a format it can, under the same file id, with the new extension (`song.mp3` → `song.wav`). When only one app fits the file, the editor opens it straight away. Canva, Adobe Express and Microsoft 365 are coming; like Google, they'll ask the visitor to sign in to their own account. Without a `fileId`, the visitor adds a file: from their device, or from their own **Google Drive**, **Dropbox** or **OneDrive**. ### How it works - Your server asks Culacc for an editor session with your API key, and gets an `editorUrl` back. - Your page opens that address with the Culacc script: as a window over the page, a popup, or a full-page redirect. - The visitor edits and saves. The result replaces the file's contents in your storage (or becomes a new version, if you keep history) and is published. - Your page gets the result at once in `onSave`. Your server also gets the `file.edited` webhook, even if the visitor closed the tab. Your API key never reaches the browser. The address the page gets works only for that one session, for 30 minutes, and only inside the sites you allowed. ### Set it up in Culacc In Culacc, open **Settings → Developers** and scroll to **Edit with Culacc**, below your API keys: - **Allowed sites**: the sites that may open the editor, like `https://example.com`. Plain `http://` works for `localhost` while you build. Nothing opens until you add one. - **Apps**: which ones your visitors see, in what order, and which one is suggested for photos, videos and documents. - **Where visitors can add a file from**: their device always; Google Drive, Dropbox and OneDrive as you choose. - **When a visitor saves**: replace the file, keep the original, or keep every version (see Versions below). - **What comes back**: image format (same as the original, JPEG, WebP, AVIF or PNG), largest width, quality, video format (MP4 or WebM) and largest height. - **Limits**: how many saves are processed at once, largest photo, video and document, longest clip. - **Look**: your accent colour and title, and whether to show "Editing by Culacc". The same section shows this month's sessions, saves, editing time and cost, the code to copy for your site (and warns if none of your keys can start sessions), and your recent editor sessions. ### Start a session (your server) The key needs `files:write`. ```js const { editorUrl } = await culacc.edit.createSession({ origin: 'https://example.com', fileId: 4821, // leave out to let the visitor add a new photo or video externalRef: 'user-42', // your own id; comes back in the result and the webhook }); ``` Or by hand: ``` POST /v1/edit/sessions { "origin": "https://example.com", "fileId": 4821, "externalRef": "user-42" } ``` ```json { "session": { "id": "es_Xk2…", "status": "open", "mode": "edit", "fileId": 4821, "apps": ["image-editor", "viewer"], "versioning": "off", "expiresAt": "2026-10-17T19:45:00.000Z" }, "token": "est_…", "editorUrl": "https://culacc.com/api/edit/open/es_Xk2…#t=est_…" } ``` | Field | Meaning | |---|---| | `origin` | required: the site that opens the editor; must be in your allowed sites | | `fileId` | the file to edit or open; without it, the visitor adds a new one | | `mode` | `edit` (default) or `open` | | `accept` | what a visitor may add without a `fileId`: `image`, `video`, `document`, `audio`, `pdf`; images, videos and documents by default, plus audio and PDFs when an app that edits them is on | | `apps` | some of the apps you switched on, in the order to show them (the ids in the table above) | | `versioning` | `off`, `keep-original` or `keep-all`, instead of your default | | `publish` | publish the result and return its address; on by default | | `folder` | where added files go; `/Embeds` by default, in a subfolder named after `externalRef` | | `externalRef` | your own id, up to 200 characters | | `returnUrl` | where to send the visitor after a redirect; must be on `origin` | | `ttlMinutes` | how long the session can be opened, 5 to 120; 30 by default | Make one session per click: a session can be saved once. ### Open it (your page) ```html ``` `attach` asks your server for a session on each click, then opens the editor. If you already have an `editorUrl`, open it yourself: ```js const { done } = CulaccEditor.open(editorUrl, { onSave, display: 'modal' }); const { status, result } = await done; // 'saved' or 'cancelled' ``` | Option | Meaning | |---|---| | `display` | `modal` (default; full screen on phones), `popup` (a window of its own) or `redirect` (the tab goes to Culacc and comes back to `returnUrl`) | | `onSave(result)` | the visitor saved; see the result below | | `onCancel()` | the visitor closed the editor without saving | | `onError(err)` | something failed; the editor has already told the visitor | | `onReady(info)` | the editor loaded: `{ mode, apps }` | | `onAdded(file)` | the visitor added a new file: `{ fileId, name, kind }` | | `title` | an accessible label for the window | With `redirect`, the visitor comes back to your `returnUrl` with `culacc_session`, `culacc_status` and `culacc_file` in the query string. Read the outcome from your server with `culacc.edit.getSession(id)` rather than trusting the address. ### The result The same object arrives in `onSave`, in the `file.edited` webhook and in `GET /v1/edit/sessions/:id` as `result`: ```json { "fileId": 4821, "name": "avatar.webp", "path": "/Photos/avatar.webp", "kind": "image", "mime": "image/webp", "size": 48211, "width": 1080, "height": 1080, "duration": null, "edited": true, "added": false, "version": 3, "previousVersion": 0, "versioning": "keep-original", "app": "image-editor", "url": "https://media.culacc.com/aB3…/avatar.webp", "revision": "4821-3-lq9x2k" } ``` - `url` stays the same across edits, so add `?v=` + `revision` to skip old copies in caches. - `edited` is false when the visitor chose "use it as it is". - `added` is true when the visitor added a new file in this session. - When the output format differs from the original, the file is renamed to match (`avatar.jpg` → `avatar.webp`) but keeps its `fileId`. - The webhook adds `sessionId`, `externalRef` and `origin`. Trust the webhook, or `getSession` from your server, for anything that matters: `onSave` runs in the visitor's browser. ### Sessions from your server ``` GET /v1/edit/sessions/:id files:read POST /v1/edit/sessions/:id/cancel files:write ``` `status` is `open`, `processing` (a video is being cut), `saved`, `cancelled`, `failed` (with `error`) or `expired`. ### Documents in Google Docs, Sheets & Slides Pass the `fileId` of a `.docx`, `.xlsx`, `.pptx`, `.odt`, `.ods`, `.odp`, `.rtf`, `.txt`, `.csv`, `.doc`, `.xls` or `.ppt` file, or let the visitor add one. The editor shows **Open in Google Docs** (or Sheets, or Slides). Then: - A new tab asks the visitor to sign in to **their own** Google account and allow Culacc to create one file in their Drive (the `drive.file` permission: Culacc can't see anything else there). - Culacc puts a copy there, converted to Google's format, and the tab opens Google's editor. - The visitor edits, comes back to the Culacc window and presses **Save**. - Culacc exports the file back to its own format (a `.docx` stays a `.docx`; old `.doc`, `.xls` and `.ppt` come back as `.docx`, `.xlsx` and `.pptx`, renamed, same `fileId`), saves it like any other edit, deletes the copy from their Drive and revokes the sign-in. Cancelling, discarding or leaving the session to run out deletes the copy and revokes the sign-in too; nothing is kept on either side. Your site's own Google account is never involved. The session stays open up to 8 hours while the file is in Google, so long edits can still be saved. Formatting that Google doesn't support in the original format can change on the way back, the same as when you open such a file in Google yourself. ### Adding a file from cloud storage When there's no `fileId`, the visitor can add a file from their device or pick one from their own Google Drive, Dropbox or OneDrive, using that service's own file picker and their own sign-in. Culacc copies just that one file into your storage (Google's own formats arrive as `.docx`, `.xlsx` or `.pptx`), and it then opens like any file. You choose which of these to offer in Settings. ### Versions History is **off** by default: an edit replaces the file and the old picture is deleted, so it costs no storage. Turn it on in Settings, or per session: | `versioning` | What's kept | |---|---| | `off` | only the latest edit | | `keep-original` | the original upload as version 0, plus the latest edit | | `keep-all` | every edit | ```js const { versions } = await culacc.edit.versions(4821); await culacc.edit.revert(4821, 0); // back to the original ``` ``` GET /v1/edit/files/:id/versions files:read POST /v1/edit/files/:id/revert { "version": 0 } files:write ``` A revert deletes nothing, so it can be undone, and sends `file.edited` with `reverted: true`. ### What it costs You pay for what your visitors use, end to end; visitors pay nothing. - **Storage**: the files, and their versions if you keep them, at your usual storage price. - **Traffic**: everything the editor moves counts as media traffic, 10 GB a month free, then €1 per TB. Bytes that go straight between the visitor and storage count once: a file the visitor adds, a video streamed into the trimmer, the edited picture uploaded. Bytes that pass through Culacc's servers count twice, coming in and going out: the photo loaded into the image editor, a file added from Google Drive, Dropbox or OneDrive, a document sent to Google and the one coming back, and the file a save reads in plus the result it writes back. - **Editing time**: saving takes processing time, measured per save. The first 60 CPU minutes a month are free, then €0.20 per CPU hour. Saving a photo takes about a second; a minute of 1080p video takes roughly one to three CPU minutes. There is one meter and one monthly spending limit for everything: published files, the API, every integration and the editor. Settings → Developers → **This month** shows the total, split into traffic and editing. When the limit is reached, published files stop loading and new editor sessions are refused with a message to the visitor, until next month or until you raise it; nothing is deleted. Without a card on file, the editor stops when the free allowances run out. Saves wait in line rather than all running at once: each account processes two at a time by default, and the editor shows the visitor how many are ahead. ``` GET /v1/edit/usage files:read ``` ### Good to know - The editor runs on `culacc.com` inside a frame only your allowed sites can show, so your page's styles and scripts can't reach into it, and it can't reach into your page. - Photos in HEIC can't be edited in most browsers; the visitor can still use them as they are. - Google opens in a new tab rather than inside the editor, because Google doesn't allow its editors inside other sites. - Limits you can change in Settings: photos up to 40 MB and videos up to 500 MB by default; clips up to 10 minutes. ## Webhooks ```js const { webhook } = await culacc.webhooks.create({ url: 'https://example.com/culacc', events: ['file.published', 'file.uploaded', 'file.edited', 'share.expired'], }); console.log(webhook.secret); // whsec_… — shown once ``` | Event | When | |---|---| | `file.published` | a file got a public link | | `file.unpublished` | a link was removed | | `file.uploaded` | an API upload finished (`replaced: true` when it gave an existing file new contents) | | `file.edited` | a visitor saved in the editor, or a file was reverted (`reverted: true`) | | `file.deleted` | a file or folder was deleted through the API or by `autoDelete` (`permanent`, `bytesFreed`) | | `share.created` | a share was made through the API | | `share.expired` | a share made through the API passed its expiry date (`filesDeleted`, `bytesFreed` for `autoDelete`) | | `share.revoked` | a share made through the API was stopped, here or in Culacc | | `traffic.limit_reached` | the monthly spending limit stopped serving | The `share.*` events carry `shareId`, `url`, `title`, `status`, `externalRef`, `fileCount`, `folderCount` and `totalSize`. Each delivery is a POST with a signature: ``` Culacc-Event: file.published Culacc-Signature: t=1789862786,v1=9f2a… ``` The signature is an HMAC-SHA256 of `timestamp.body` using your secret, so you can tell a real call from a fake one and spot a replay. Verify it with the raw body, before any parsing: ```js const { verifyWebhook } = require('@culacc/sdk'); app.post('/culacc', express.raw({ type: 'application/json' }), (req, res) => { if (!verifyWebhook(process.env.CULACC_WEBHOOK_SECRET, req.get('Culacc-Signature'), req.body)) { return res.sendStatus(400); } const { event, data } = JSON.parse(req.body); if (event === 'file.edited') { // data.externalRef is what you passed to createSession; data.url is the new picture } res.sendStatus(200); // answer quickly, work afterwards }); ``` A failed delivery is retried at once, then after 5 seconds, then after 30. A 4xx answer stops the retries, since that won't fix itself. A webhook that keeps failing is switched off, and switching it back on clears the count. ## Traffic and what it costs ``` GET /v1/usage ``` ```json { "month": "2026-09-01", "bytes": 48216115, "free": 10737418240, "cost": { "amount": 0, "currency": "eur" }, "limit": { "amount": 10, "currency": "eur" }, "stopped": false } ``` 10 GB of traffic a month is free, then €1 per TB, counted to the cent and added to your existing Culacc invoice. Traffic is published files, the editor, and downloads through shares made with the API (see Downloads through share links). Every user has a spending limit they control in Settings; when it's reached, published files stop serving until the next month, and nothing is deleted. `traffic.limit_reached` fires when that happens. Uploads and storage are billed separately, as storage. Editing time in the editor is its own line on the invoice but counts toward the same spending limit, so files stop serving when traffic and editing together reach it; see `GET /v1/edit/usage`. ## Errors Ordinary HTTP codes, with a body: ```json { "error": "This key is missing the links:write permission.", "code": "FORBIDDEN" } ``` | Code | When | |---|---| | 400 | something in the request is wrong; a missing part of a big upload (`missingParts`) | | 401 | missing, revoked or unknown key | | 403 | the key lacks a permission, the address isn't allowed, or the site isn't in your editor's allowed sites | | 404 | no such file, link, share, upload, session or endpoint (`missing` lists the ids and paths not found) | | 409 | the name is taken (`onConflict: "fail"`), a share was stopped, or the editor session was already saved or cancelled | | 410 | the upload or editor session expired or was cancelled | | 413 | the file or clip is too large or too long, more arrived than an upload said, or your storage is full (`QUOTA`, with `needBytes` and `freeBytes`) | | 415 | no switched-on app can open that kind of file | | 429 | over the key's rate limit (`Retry-After` says how long), the monthly spending limit is reached, too many uploads on their way, or share emails are used up for today (`LIMIT_REACHED`) | | 501 | email isn't set up on the server, so a share can't be emailed | | 503 | share emails are paused for a while (`retryAfter`) | ## Limits | Thing | Limit | |---|---| | Keys per account | 25 | | Requests per key | as set per key, 120 a minute by default | | One upload | 5 TB; over 500 MB in parts of 32 MB or more, up to 10,000 parts | | Time to finish an upload | 15 minutes for one PUT, 24 hours in parts | | Webhooks per account | 10 | | Files per listing | 200 | | Items in one share | 200 files and folders (a shared folder can hold any number) | | Uploads on their way at once | 50 per account | | Addresses per share email | 20 | | Share emails | 200 a day per account (20 on the free plan), 3 a day to the same address | | Share-link downloads | billed shares: your spending limit; others: 3× your storage plan a month, at least 50 GB | | Files deleted in one call | 500 | | Editor session | 30 minutes to open by default, up to 120; saved once | | Editor files | photos 40 MB, videos 500 MB, documents 50 MB, clips 10 minutes by default; adjustable in Settings | | Adding from cloud storage | up to 200 MB per file, and never more than the limit for that kind | | Editor saves processed at once | 2 per account by default; the rest wait in line | ## Questions developers ask **Do the people I send files to need a Culacc account?** No. They open the share page, preview and download (one file, or everything as a ZIP). With `canEdit` they can also edit in the Crafting apps without an account; Google, Microsoft and Canva editing asks them to sign in. **How big can files be?** Up to 5 TB each through the API. Over 500 MB they go in parts; the npm package does that for you, and resumes a part that failed. **Where are files stored?** In the EU (Germany), encrypted at rest. Bytes go straight between the browser or your server and storage, not through the API server. **How do I stop paying for files I only needed to send once?** Make the share with `autoDelete: true`: when it expires (or you stop it) its files are deleted for good. Or delete files yourself with `DELETE /v1/files/:id?permanent=true`. **Can I use it from Python, PHP or Go?** Yes: it's plain HTTPS and JSON (see [From any language](#from-any-language)). The npm package is for JavaScript and TypeScript; there's an OpenAPI 3.1 description at to generate a client. **Can my users upload straight from their browser?** Yes. Your server asks for an upload address with its key and gives the page only that address; the key never reaches the browser. **What does it cost?** Storage at your usual Culacc price (5 GB free, then €0.50 per 100 GB a month). Traffic from published files and the editor: 10 GB a month free, then €1 per TB; downloads through shares you made with the API count as the same traffic. Editing time: 60 CPU minutes a month free, then €0.20 per CPU hour. Share emails and API calls cost nothing extra. One monthly spending limit you set covers it all. **Is there a sandbox?** Use a free account (5 GB) and a key with only the permissions you're testing. ## Questions Email — you'll get a reply from the person who built it.