Upload a document
POSThttps://sandbox.api.lendeasy.ai/v1/documents Bearer token ·
CREATE_LMS_DOCUMENTUploads content and registers metadata in one multipart request with two parts: a JSON metadata part and the file part. At least one CUSTOMER or LOAN link is required. The server derives the checksum and content type; content is virus-scanned before it can be downloaded, and rejected content is quarantined and deleted. Marking a document sensitive requires the sensitive read permission.
Path & query parameters
| Field | Type | Description |
|---|---|---|
| LendEasy-Tenant required in header | string | Tenant selector: lowercase letters, digits, and hyphens, 1-64 characters. Exactly one instance; the only tenant selector honored. |
| Idempotency-Key optional in header | string | Optional stable key (1-50 chars) for this one logical mutation. Replays of a completed request return the original result with x-served-from-cache: true; an in-flight duplicate returns 409 with Retry-After. Omitted keys are server-generated per attempt. |