Types of tasks
Borrower tasks
Borrower tasks are assignments that require borrowers to:- Upload documents (pay stubs, bank statements, tax returns, etc.)
- Review and sign disclosures
- Provide additional information or clarification
Loan officer tasks
Loan officer tasks are assignments that require loan officers to:- Upload documents on behalf of borrowers
- Review and verify documents
- Complete underwriting conditions
- Handle disclosure-related tasks
- Task type (document upload, disclosure review, etc.)
- Status (not started, in progress, completed)
- Description of what’s needed
- Due date (if applicable)
- Document links (for uploaded documents)
Retrieving tasks
Query both borrower tasks and loan officer tasks through theloan query:
Task types
| Task Type | Description | Action Required |
|---|---|---|
DOCUMENT_REQUIRED | Borrower or loan officer must upload a document | Upload document via REST endpoint |
DISCLOSURE_REVIEW | Borrower must review and sign disclosures | Direct borrower to disclosure signing link |
How to use these document specifications
Each document page provides detailed specifications including required data fields, suggested questions, and validation rules. You have three options for handling these documents:- Build your own forms - Use the required data fields and suggested questions from each document page to build custom forms that collect the necessary information
- Validate existing forms - Use the required data fields and validation rules to verify that your existing forms include all necessary fields and meet validation requirements
- Use pre-made templates - Use Pylon’s pre-made templates out of the box (templates will be provided separately)
Uploading documents for borrower tasks
Borrower task documents are uploaded via a REST endpoint (not GraphQL): Endpoint:POST /api/loan-applications/{loanId}/borrower-tasks/{taskId}/documents
Headers:
borrower-task-files
Example:
Uploading documents for loan officer tasks
Loan officer tasks may also require document uploads. The upload process is similar, but the endpoint and form field name may differ. Check the task’sdocumentUploadPath field for the specific upload endpoint.
Task status
After uploading a document, the task status updates automatically. Poll the tasks query to verify the upload was successful:NOT_STARTED- Task has been created but no action takenIN_PROGRESS- Document upload in progressCOMPLETED- Task is complete (document uploaded and verified)CANCELLED- Task was cancelled
Polling for new tasks
Tasks are created automatically as the loan progresses. Poll tasks every 15-30 minutes to detect new tasks:Task details
Each task includes adetails field that provides context about the entity the task is associated with:
borrowerId- The borrower this task is for (if applicable)borrowerName- Display name of the borrowerentityKind- The type of entity (e.g., “BORROWER”, “LOAN”)entityDisplayName- Human-readable name of the entity
Best practices
- Poll regularly - Check for new tasks every 15-30 minutes
- Notify users - Alert borrowers and loan officers when new tasks are assigned
- Track completion - Monitor task status to ensure all required documents are uploaded
- Handle errors - Implement retry logic for failed uploads
- Validate files - Check file types and sizes before uploading
- Monitor both types - Track both borrower tasks and loan officer tasks to ensure nothing is missed
Related resources
- Tracking loan updates - Monitor loan status and task updates
- Document Uploads and Downloads - General document upload patterns
- Order-Outs Overview - Understand when tasks are created
- Disclosures - Learn about disclosure-related tasks