Upload one document with mandatory privacy redaction
Multipart admission through Document Intake requires current documents:write scope, an organisation grant covering future documents, and current patient-confirmed processing consent. Accepted files are at most 26214400 bytes and must satisfy current MIME conformance, policy and integration entitlement. Privacy redaction is mandatory; scrubPII=false is rejected. extractData defaults to true; false runs scan, OCR and redaction without clinical extraction or publication. Category, title, dates, language and issuers are classifier outputs. Idempotency-Key preserves the original accepted document for 24 hours within the application, organisation, Cell and patient; changed metadata or bytes conflict. Current authority and policy are checked again before replay. A received receipt acknowledges admission to asynchronous processing. A fresh key for the same raw file returns duplicate_document only while an unfenced original retains a working object and is actively processing or processed. Failed or erasure-fenced originals do not prevent a new independently authorized upload.
Path Parameters
- Type: stringuser
Id required
Headers
- Type: stringIdempotency
- Key min length:1max length:255
Body
Responses
- application/json
- application/problem+json
- application/problem+json
- application/problem+json
- application/problem+json
- application/problem+json
- application/problem+json
- application/problem+json
- application/problem+json
- application/problem+json
- application/problem+json
curl 'https://api.dev.eno.health/v1/users/{userId}/documents' \
--request POST \
--header 'Content-Type: multipart/form-data' \
--header 'Authorization: Bearer YOUR_SECRET_TOKEN' \
--form 'file=' \
--form 'metadata={
"externalId": "",
"extractData": true,
"scrubPII": true
};type=application/json'
{
"id": "string",
"userId": "string",
"externalId": "string",
"title": "string",
"language": "string",
"documentDate": "2026-11-16",
"issuers": [
{
"name": "string",
"type": "unknown",
"address": "string"
}
],
"fileName": "string",
"contentType": "string",
"sizeBytes": 0,
"status": "received",
"pageCount": 0,
"createdAt": "2026-11-16T18:04:16.180Z",
"updatedAt": "2026-11-16T18:04:16.180Z",
"uploadedAt": "2026-11-16T18:04:16.180Z"
}