Developers
Atmovault for developers
Store files in an Atmovault vault from your own program, in any language.
Atmovault encrypts files before they leave your machine, so its server never sees their contents or their names. The gateway is a small program you run next to your own that does the encryption for you, so your code can use plain HTTP.
Pages: API reference - Keys and folders - Running the gateway - Security
Is your program written in Python? Then you do not need the gateway. The same package is a library you call directly: see "Without the gateway" in Running the gateway.
The source is at https://github.com/hb1dys/atmovault-client.
Quickstart
1. Get a key. In your vault: Settings -> Services -> New API key. Choose the folder your program may use and whether it can edit. Copy the key. It is shown once.
2. Start the gateway.
With Python 3.11 or newer:
pip install "atmovault-client[gateway]"
atmovault-service serve
or as a container, built from the same source:
docker build -t atmovault-gateway https://github.com/hb1dys/atmovault-client.git
docker run -d -p 127.0.0.1:8200:8200 -v atmovault-state:/state atmovault-gateway
3. Keep the key in your environment, never in your code.
export ATMOVAULT_API_KEY=atmv1_...
Upload a file into the folder you chose, here called Finance:
curl -T invoice.pdf -H "Authorization: Bearer $ATMOVAULT_API_KEY" \
http://127.0.0.1:8200/v1/files/Finance/invoice.pdf
See what is there:
curl -H "Authorization: Bearer $ATMOVAULT_API_KEY" http://127.0.0.1:8200/v1/list/Finance
Download it:
curl -o invoice.pdf -H "Authorization: Bearer $ATMOVAULT_API_KEY" \
http://127.0.0.1:8200/v1/files/Finance/invoice.pdf
To show a document to your own user without saving it first, fetch the same URL from your backend and pass the response through.
Nothing your program does is permanent. A deleted file goes to the vault's trash, a replaced file keeps its old version, and Settings -> Services shows everything the key did, with Undo.
How it works
- Your program talks to the gateway on your own machine. The gateway talks to the vault.
- The key you were given holds the token the vault knows your program by and the private key that opens the folder. Only the token is ever sent to the vault.
- The gateway keeps no key on disk and writes no request log. It keeps one small state file per key; see Running the gateway.
- A machine-readable description of the API is at
/openapi.json.