# Upload a document `POST /api/v1/loans/{id}/documents` (scope `documents:write`) attaches a file to a loan. Send the file base64-encoded, with a fresh `Idempotency-Key`: ```json { "fileName": "signed-lease.pdf", "contentType": "application/pdf", "contentBase64": "JVBERi0xLjcK..." } ``` The response is `201` with the stored file's `name`, `size` (bytes) and `contentType`. The file is stored with the loan's documents, where the lender's team can see it. `category` and `description` can't be stored yet, so sending either is rejected with a `400` naming the field. Listing and downloading a loan's documents isn't available yet.