Skip to main content

Upload an encrypted file

POST 

/create/file

Streams an already-encrypted file as raw bytes and returns its ID. Settings travel in headers, not in the body. The body must be binary OpenPGP data (not ASCII-armored) that opens with a key packet, and must stay under MAX_FILE_SIZE from GET /config.

Absent on a --read-only server or with --disable-upload. The share link is https://yopass.example.com/#/f/{id}/{key}.

When the server runs with --require-auth, send an API token or a signed-in session cookie.

Request​

Responses​

Stored.