Files
Create a file
Changed onUpload a File to Lead and get back a Lead-issued id you can reference immediately.
post/v2/files
Request
- Base URLhttps://api.sandbox.lead.bank
- URLhttps://api.sandbox.lead.bank/v2/files
- AuthHTTP bearer
Headers
Idempotency-Keystring required
Idempotency key
Request body multipart/form-data
Example request
{
"type": "loan_agreement"
}Response
File object created.
Example response
{
"id": "file_7RwQ2mK9pL4xT1vN8jS5",
"uploaded_by": "partner",
"file_name": "loan_agreement_acct_4471.pdf",
"type": "loan_agreement",
"content_type": "application/pdf",
"size_bytes": 184233,
"checksum": "9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08",
"created_at": "2026-09-14T14:22:01Z",
"updated_at": "2026-09-14T14:22:01Z",
"metadata": {}
}Changes
- info
endpoint added
- info