Step 1: Start Databunker Pro
DEMO as the access token.
Demo mode requires Databunker Pro 0.14.23 or later. Every API call below authenticates with the
X-Bunker-Token: DEMO header — in a real deployment this is your root access token, generated during setup.Step 2: Create a user record
Storing a user record is the most common Databunker Pro operation. The vault encrypts the profile and returns a user token in UUID format.email, phone, or login:
mode and identity pair identifies the user in every call that follows. Supported modes are token, login, email, phone, and custom.
Step 3: Store an encrypted file
Files are attached to a user and encrypted with a per-file key that is wrapped by that user’s record key. File content is supplied as base64 in thefiledata field.
The optional tags field labels the file by document type, so you can find it later without relying on the filename:
fileuuid is the handle for this file. The MIME type was not supplied — Databunker Pro detects it from the file content and stores it, so image/jpeg appears in the responses below. Pass mimetype explicitly only when you need to override that.
Tags are lowercased, de-duplicated, and sorted on write, which is why they come back in a different order than they were sent.
File tagging requires Databunker Pro 0.14.24 or later. Tags must match
^[a-z0-9][a-z0-9._-]{0,49}$, and a file can carry up to 16 of them. Because tags are stored unencrypted so they can be indexed, use them for document types such as passport or proof-of-address — never for personal data.Step 4: List the user’s files
tag to return just the files carrying it — useful for checking which documents a profile is still missing:
Step 5: Retrieve a file
Retrieve a file by itsfileuuid, taken from the FileCreate response or from the listing above. The decrypted content comes back base64-encoded in filedata:
"raw": true. The response carries the original MIME type and a Content-Disposition header:
Step 6: Stop the instance
--rm, so it is removed on stop and the in-memory database goes with it. Starting demo mode again gives you a clean instance.
Next steps
Install with Docker Compose
Deploy with a real database, persistent storage, and generated credentials.
File Vault
How file encryption, crypto-shredding, and the S3, GCS, and Azure backends work.
Access control
Scope API tokens to roles and groups instead of using the root token.
API reference
The full API surface, authentication, errors, and pagination.