Dropvik
REST API · v1

Build on Dropvik

Upload files from your app, script or server, get share links back and react to downloads with signed webhooks. JSON over HTTPS, one API key. Plus a command line tool, server backups and an S3-compatible endpoint.

1 · Authenticate

Create a key under Dashboard → API & webhooks and send it as “Authorization: Bearer dvk_…” (or the X-Api-Key header).

2 · Upload

Small files in one request; large files (up to your plan limit) in resumable chunks. The same limits as in the web app apply.

3 · React

Webhooks tell your system when a transfer is live, downloaded, commented on or updated.

Command line

The dropvik CLI sends files of any size, lists and downloads your transfers, and backs up servers. One binary for Linux, macOS and Windows.

Server backups

Directories, MySQL/MariaDB, PostgreSQL or any command — encrypted on your server, kept by daily/weekly/monthly rules, with an alert when a night is missed.

S3 & Git

Use Dropvik as an S3-compatible target for rclone and restic, and let us mirror your GitHub or GitLab repositories every day.

Command line (CLI)

curl -fsSL https://api.dropvik.com/cli/install.sh | sh     # Linux / macOS
irm https://api.dropvik.com/cli/install.ps1 | iex           # Windows PowerShell

dropvik login                     # approve in the browser
dropvik send video.mp4 -d 7 -p s3cret
dropvik ls
dropvik get https://dropvik.com/t/k3x9q2m7tz

On servers without a browser, open the login link on any device, or run dropvik login --token with a personal access token (Dashboard → Developer tools).

One-line uploads with curl

curl -T report.pdf -u :dvc_YOUR_TOKEN https://api.dropvik.com/put/
# → https://dropvik.com/t/k3x9q2m7tz

curl -T build.zip -u :dvc_YOUR_TOKEN -H "Max-Days: 3" -H "Password: s3cret" https://api.dropvik.com/put/
tar czf - dist | curl -T - -u :dvc_YOUR_TOKEN https://api.dropvik.com/put/dist.tar.gz

Up to 1 GB per request; headers Max-Days, Password, Max-Downloads, Title, Message, Self-Destruct. Add “Accept: application/json” for a JSON answer.

Server backups

dropvik key init                                   # once: local encryption key
dropvik backup files /var/www --name web --exclude node_modules --encrypt
dropvik backup mysql --db shop --name shop-db --encrypt
dropvik backup postgres --db app --name app-db
dropvik backup cmd --name redis -- redis-cli --rdb -

dropvik schedule add --at 03:15 -- backup files /var/www --name web --encrypt
dropvik backups                                    # health of every source
dropvik restore web --to /tmp/restore
dropvik restore shop-db --pipe "mysql shop"

Data is cut into parts, checked with SHA-256 and — with --encrypt — sealed with AES-256-GCM before it leaves the server; the key never reaches us. Retention: --keep-last, --keep-daily, --keep-weekly, --keep-monthly. Late or failed backups trigger an e-mail, a push notification and a webhook.

Git repository backups

Add a repository URL (or import all of them with a GitHub / GitLab token) under Dashboard → Backups. We mirror every branch and tag on a schedule and only store a snapshot when something changed; restore with dropvik restore NAME and git clone the bundle.

S3-compatible endpoint

Create an access key under Dashboard → Developer tools and point any S3 tool at https://s3.dropvik.com (path-style). Objects count against your backup storage.

[dropvik]
type = s3
provider = Other
endpoint = https://s3.dropvik.com
force_path_style = true
access_key_id = DV…
secret_access_key = …

GitHub Actions and CI

- name: Share the build
  run: curl -fsS -T dist/app.zip -u ":${{ secrets.DROPVIK_TOKEN }}" -H "Max-Days: 14" https://api.dropvik.com/put/

Store a personal access token as a secret. For files over 1 GB install the CLI in the job and use dropvik send.

Quick start: one request

curl -H "Authorization: Bearer dvk_YOUR_KEY" \
     -F "files[]=@report.pdf" -F "files[]=@photos.zip" \
     -F "title=Quarterly report" -F "retention_days=7" \
     https://dropvik.com/api/v1/upload

Response (201):

{
  "code": "k3x9q2m7tz",
  "status": "active",
  "link": "https://dropvik.com/t/k3x9q2m7tz",
  "file_count": 2,
  "total_size": 48213377,
  "files": [ { "id": 812, "name": "report.pdf", "size": 1204331, "sha256": "…" }, … ]
}

Endpoints

Base URL: https://dropvik.com/api/v1

GET/account

Your plan, storage quota and upload limits.

POST/upload

Upload small files in one multipart request and get the link back.

POST/transfers

Start a chunked upload for large files (returns the file ids and chunk size).

PUT/transfers/{uuid}/chunk/{file}/{index}

Send one chunk as the raw request body.

POST/transfers/{uuid}/complete

Finish the upload: virus scan, storage and e-mail delivery.

GET/transfers/{uuid}/status

Poll a transfer that is still processing.

GET/transfers

List your transfers (filters: status, search; paging: count, page).

GET/transfers/{code}

Details of one transfer including its files.

DELETE/transfers/{code}

Delete a transfer and its files.

GET/backups

Backup sources with their health, size and your backup storage.

PUT/backups/{name}

Create or update a backup source (kind, host, interval, retention).

POST/backups/{name}/snapshots

Start a snapshot; upload its parts with PUT /snapshots/{id}/parts/{n}.

POST/snapshots/{id}/complete

Finish a snapshot (part count, size, SHA-256); retention runs right after.

GET/snapshots/{id}

Snapshot manifest with the part list (use NAME:latest for the newest).

Large files: chunked upload

# 1. start
curl -H "Authorization: Bearer dvk_YOUR_KEY" -H "Content-Type: application/json" \
     -d '{"files":[{"name":"film.mov","size":7340032000}],"delivery":"email","recipients":["client@example.com"]}' \
     https://dropvik.com/api/v1/transfers

# 2. every chunk (index 0, 1, 2 … up to total_chunks - 1)
curl -X PUT -H "Authorization: Bearer dvk_YOUR_KEY" -H "Content-Type: application/octet-stream" \
     --data-binary @chunk-0.bin https://dropvik.com/api/v1/transfers/UUID/chunk/FILE_ID/0

# 3. finish
curl -X POST -H "Authorization: Bearer dvk_YOUR_KEY" https://dropvik.com/api/v1/transfers/UUID/complete

Options for both upload methods: title, message, retention_days (1, 3, 7, 30, 365, 0), password, self_destruct, max_downloads, delivery (link | email), recipients[], folder_id.

Webhooks

Set a webhook URL in your dashboard. Every event is a JSON POST with an X-Dropvik-Event header; if you set a secret, the body is signed in X-Dropvik-Signature.

eventtransfer.completed

A transfer finished uploading and is live.

eventtransfer.downloaded

Someone downloaded files from your transfer.

eventtransfer.comment

A recipient left a comment, picks or feedback.

eventtransfer.version

A new version was uploaded to an existing link.

eventfile_request.upload

Files arrived through one of your file request links.

eventbackup.completed

A backup snapshot was stored.

eventbackup.failed

A backup run failed (the error is included).

eventbackup.missed

A scheduled backup did not arrive in time.

Verifying the signature (PHP):

$body = file_get_contents('php://input');
$expected = 'sha256=' . hash_hmac('sha256', $body, $webhookSecret);
if (! hash_equals($expected, $_SERVER['HTTP_X_DROPVIK_SIGNATURE'] ?? '')) {
    http_response_code(401); exit;
}
$event = json_decode($body, true);   // { "event": "transfer.downloaded", "time": "…", "data": { … } }

Gmail & Outlook extension

Our Chrome extension (also works in Edge and Brave) is built on this API: upload large files from the toolbar and insert the download link straight into the e-mail you are writing in Gmail or Outlook on the web.

  1. Download the ZIP and unpack it.
  2. Open chrome://extensions, turn on “Developer mode” and choose “Load unpacked”, then select the unpacked folder.
  3. Click the Dropvik icon → Settings and paste an API key from your dashboard.

Download the extension (ZIP · v1.0.0)

Limits and errors

Errors return a JSON body with an “error” message and the usual HTTP status codes: 401 invalid key, 403 API not enabled, 422 validation or plan limit, 429 too many requests. Depending on your plan, API access is available right away or after a short application in the dashboard.

Ready to integrate?Create a key in your dashboard in under a minute.
Get an API key →