Documents
POST /patients/{patient_id}/documents
multipart/form-data upload.
Parameters (form fields):
file(required)title(string, optional)type(string, optional — one of the document-type keys; defaults toother)
An unrecognized type returns 422 DOCUMENT_TYPE_INVALID.
Request
curl -X POST https://api.vodett.ai/api/public/v1/patients/PATIENT_ID/documents \
-H "Authorization: Bearer vodett_sk_live_your_key_here" \
-F "file=@/path/to/xray.pdf" \
-F "title=Panoramic X-ray" \
-F "type=xrays"Response (201)
{ "id": "…", "filename": "xray.pdf", "content_type": "application/pdf", "size": 284119, "type": "xrays", "created_at": "2026-08-25T12:34:56Z" }Document types
Valid type keys: invoices, quotations, xrays, scans, prescriptions, consent, communications, other. See GET /document-types for the full list with display labels.