REST API reference
Client intake applications
Complete a business's intake application, check what is missing, and submit it.
Complete the application
Each application has its own questions and document requirements. Start with the application linked to the business or deal you are working on. Your API key needs access to that application resource; business or deal access alone does not grant it.
- Read the application and fetch its
contract_url. The returned Application Contract defines its current questions, accepted values, required fields, repeated entries, and operation URLs. - Read the answers. Use the contract's
block_keyandfield_keyfor updates, with the answers response's ETag inIf-Match. - Complete repeated entries and attach documents using the operations described below. You can also use Autofill to prepare suggestions.
- Read submission readiness and resolve the reported issues. Review the current answers before submitting.
- Submit using the application's lifecycle ETag and the reviewed
expected_answers_revision. Read the application afterward to confirm the result.
The application ETag protects lifecycle changes; the answers ETag protects answers. They are separate revisions. A submission receipt confirms the recorded submission, not lender acceptance, approval, or funding.
Fetch the contract again when its contract_version changes. A newly published form does not establish the questions in an existing application.
Add repeated entries
The contract's repeatable_groups describe the allowed rows and their question keys. Use operations.repeatable_items_url to list or create rows. Use the returned item_id for updates, deletes, and answers inside that row. A row's position is not its ID.
These writes require the latest answers ETag and an Idempotency-Key. If answers change, read them again before retrying.
Attach documents
File bytes never belong in JSON. Request an upload through operations.file_uploads_url with the file question's block_key and, for a repeated entry, its item_id.
The response gives an expiring upload_url, exact multipart field name, and size limit. Upload one file part with the required If-Match and Idempotency-Key headers. Read operations.files_url afterward to confirm the file and obtain download URLs. Delete files using their returned file_id.
Resolve relative download URLs against the API origin and use the documented authentication. Read fresh metadata when a download URL expires.
Use Autofill to prepare answers
Autofill turns email text and documents into suggestions. It does not save application answers until you accept suggestions.
- Read Autofill preparation, add email text, and optionally upload supporting files. Use the latest preparation ETag after each change.
- Start a run with
expected_preparation_revisionset to the latest preparation revision. Keep its URL so you can resume monitoring. - Check the run while it is
pendingorrunning. When it settles, read its suggestions and any warnings or failures. - Review the proposed values, sources, and concerns. Accept only the suggestions you intend to save, using the latest answers revision.
- Read the application answers to confirm what was saved.
Preparation’s files list shows each supporting document’s name and processing status. Check it after an upload, or if the upload response was lost, before uploading the document again. A document is pending while queued, running while being read, success when ready for Autofill, or failed when it needs attention. Read preparation again to check progress; processing updates do not change its revision.
For scalar suggestions, the suggested answer is proposed_value.field_value. Compound proposals contain attributes; repeated-entry proposals contain list_items; file proposals contain file-source metadata. Review the complete proposal, then use the suggestion's acceptance operation to save it. You do not need to reconstruct an answer update from the proposal.
Treat numeric proposal metadata as opaque context. Write answers using the keys and repeated-entry IDs returned by the Application Contract.
Review one pending suggestion's proposed value, evidence, and concerns. Read the current answers, then POST to the Run's suggestions_url plus {suggestion_id}/accept/ with no request body, the answer ETag in If-Match, and a unique Idempotency-Key. Levr checks the answer revision and target drift, applies the proposal, and records acceptance in one transaction. A 412 means the answers changed; reread and review before issuing a new command. A 409 suggestion_conflict means the suggestion is stale, superseded, or already resolved; refresh suggestions and review again. An identical retry must reuse the original precondition and key. Check the returned suggestion is accepted and verify the intended value through the answers read. Use the returned ETag for the next answer mutation. Do not copy proposal metadata into an answer-update request to accept a suggestion.
A settled webhook tells you the run has finished processing. Review and accept its suggestions before submitting the application. Set a polling deadline and keep the run URL so you can check again later. Check warnings and can_retry before using the returned retry_url.
Available operations
/client-intake-applications/{application_id}/GETRetrieve a client intake application contract/client-intake-applications/{application_id}/contract/GETList client intake application answers/client-intake-applications/{application_id}/answers/PATCHUpdate client intake application answers/client-intake-applications/{application_id}/answers/GETList repeatable answer items/client-intake-applications/{application_id}/answers/repeatable-items/POSTCreate a repeatable answer item/client-intake-applications/{application_id}/answers/repeatable-items/PATCHUpdate a repeatable answer item/client-intake-applications/{application_id}/answers/repeatable-items/DELETEDelete a repeatable answer item/client-intake-applications/{application_id}/answers/repeatable-items/GETList answer files/client-intake-applications/{application_id}/answers/files/POSTRequest an answer-file upload/client-intake-applications/{application_id}/answers/files/POSTUpload an answer file/client-intake-applications/{application_id}/answers/files/{upload_id}/DELETEDelete an answer file/client-intake-applications/{application_id}/answers/files/GETRead prepared client intake autofill evidence/client-intake-applications/{application_id}/autofill-preparation/POSTStart client intake autofill/client-intake-applications/{application_id}/autofill-runs/PATCHUpdate client intake autofill preparation/client-intake-applications/{application_id}/autofill-preparation/POSTUpload one client intake autofill evidence file/client-intake-applications/{application_id}/autofill-preparation/files/GETPoll client intake autofill/client-intake-application-autofill-runs/{run_id}/GETList client intake autofill suggestions/client-intake-application-autofill-runs/{run_id}/suggestions/POSTAccept autofill suggestion/client-intake-application-autofill-runs/{run_id}/suggestions/{suggestion_id}/accept/POSTRetry unresolved client intake autofill work/client-intake-application-autofill-runs/{run_id}/retry/POSTShare a client intake application with recipients by email/client-intake-applications/{application_id}/share/GETCheck client intake application submission readiness/client-intake-applications/{application_id}/submission-readiness/POSTSubmit a client intake application/client-intake-applications/{application_id}/submit/