You can only retrieve or delete documents that belong to your account. Attempting to access another user’s document returns a 404, not a 403, to avoid leaking whether a document exists.
Retrieve the original document
Download the decrypted original file exactly as it was uploaded. The response uses the document’s original MIME type and filename so your browser or client can handle it correctly.string (UUID)
required
The UUID of the document to retrieve. Must be a document that belongs to the authenticated user.
Example
cURL
Response — 200 OK
Returns the raw file bytes with the appropriateContent-Type header (for example, application/pdf or image/jpeg). The Content-Disposition header provides the original filename so the file saves with the correct name.
Response — 404 Not Found
Delete a document
Permanently remove a document, its encrypted file, its generated recovery plan, and all associated data (medications, appointments, warning signs, and timeline entries). This operation cannot be undone.string (UUID)
required
The UUID of the document to delete. Must be a document that belongs to the authenticated user.
Example
cURL