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.
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.