Skip to main content

Create file metadata

POST /api/v1/meta
Creates a new metadata record for an uploaded file.

Request body

string
required
Encrypted filename - a 32-bit encoded string.
number
required
File size in bytes.
string
required
ID of the user who uploaded the file.
string
required
MIME type of the file (e.g., image/png, application/pdf).
string
required
32-bit encrypted Data Encryption Key (DEK), wrapped by the master key.
boolean
required
Whether a thumbnail should be generated for this file.

Response 200

Returns the created metadata record with a generated id and uploadedDate.

Get file metadata

GET /api/v1/meta/{fileId}
Retrieves the full metadata for a single file, including thumbnail availability and the encrypted DEK.

Path parameters

string
required
The unique file identifier.

Response 200

Response 404

Returned when the file does not exist.

List user files

GET /api/v1/meta?userId=
Retrieves a list of all file metadata for a specific user.
The dekEnc field is intentionally excluded from list responses. There is no reason to return the encrypted DEK for every file in a bulk listing.

Query parameters

string
required
The user ID to filter files by.

Response 200


Delete file metadata

DELETE /api/v1/meta/{fileId}
Permanently deletes the metadata record for a file.

Path parameters

string
required
The unique file identifier.

Response 200

Response 404

Returned when the file does not exist.