Upload one or more documents for a lead. Uses the same pipeline as the in-app Document Vault: S3 storage, action logs, Mastra memory, and document workflow.
This endpoint uploads documents for a lead. Behavior matches the in-app Document Vault: files are stored in S3, a SYSTEM_NOTE and DOCUMENT_UPLOAD action log are created, documents are saved to Mastra memory, and the document workflow runs (validation, extraction, etc.). You can optionally associate uploads with a checklist item viaDocumentation Index
Fetch the complete documentation index at: https://docs.getomni.ai/llms.txt
Use this file to discover all available pages before exploring further.
leadChecklistItemId. Maximum 10 files per request; each file up to 100MB.
x-api-key header with a valid workspace API key.
files. Up to 10 files;
each file up to 100MB.files. When provided, its
length must match the number of files. With multipart/form-data,
send as a JSON-stringified form field.Each entry supports:externalId (string, optional): your own identifier to persist on the
document. Returned on the response.name (string, optional): overrides the uploaded filename.