Upload a new document for a contact (multipart)
Contacts
Upload a new document for a contact (multipart)
Accepts a multipart/form-data upload (max 25 MB) and stores it in R2 under a deterministic per-contact key, then attaches the resulting document record to the contact. documentType must match an entry in the organization’s configured documentTypes.
POST
Upload a new document for a contact (multipart)
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
Body
multipart/form-data
Response
Document uploaded
Available options:
true Example:
{
"_id": "64f0a1b2c3d4e5f6a7b8ca40",
"storageKey": "org/64f0a1b2c3d4e5f6a7b8c9d3/contact/64f0a1b2c3d4e5f6a7b8c9d0/2026/id-proof.pdf",
"filename": "id-proof.pdf",
"contentType": "application/pdf",
"size": 184320,
"documentType": "ID Proof",
"uploadedAt": "2026-05-12T10:00:00.000Z",
"uploadedBy": "64f0a1b2c3d4e5f6a7b8c9d4",
"notes": "Driver license, front + back",
"signedUrl": "https://example-r2.signed/.../id-proof.pdf?X-Amz-Expires=600"
}