Legal verification
Assigning a partner lawyer to a listing, sending documents for review, and reading the legal status and assignment history.
Where it lives
| Route | View file | Access |
|---|---|---|
/listings/:id (Legal Verification card) | src/views/app/listings/listing-detail.tsx | the listing's agent or landlord |
/listings/:id (Assign Lawyer dialog) | src/components/assign-lawyer-modal.tsx | the listing's agent or landlord |
/listings/:id (Submit documents dialog) | src/components/submit-legal-documents-dialog.tsx, src/components/legal-document-submissions.tsx | the listing's agent or landlord |
API calls are in src/services/legal/legal-api.ts (base path /api/v1/legal). The status badge is src/components/legal-status-badge.tsx. There is no separate route for legal verification; everything happens on the listing detail page.
Before you start
- Signed in as the agent or landlord of the listing.
- At least one lawyer with status Contracted, see Legal partners. The API refuses anyone else: "Lawyer is not contracted with you yet. Send an invite and wait for acceptance before assignment."
A new listing may already have a lawyer
Status reference
The Legal Status badge shows the listing's legalStatus with underscores replaced by spaces.
Listing legalStatus | Set when |
|---|---|
pending_verification | No review has started (also the default when the field is empty) |
under_legal_review | A lawyer is assigned, or documents were sent after a change request |
changes_requested | The lawyer asked for changes |
legally_verified | The lawyer verified the property |
legally_rejected | The lawyer rejected the property |
Each assignment has its own status, shown in the history: assigned, accepted, in_review, changes_requested, verified, rejected, reassigned. The first four count as an open review.
Flow
Assign a lawyer
-
Open a listing and scroll to Legal Verification ("Track property legal verification status and assignments."). The page loads
GET /api/v1/legal/properties/{propertyId}/history. -
Click Assign in the card's corner. The link reads Reassign when the listing has any assignment history, and it pulses while the status is
pending_verification. -
The "Assign Lawyer" dialog loads
GET /api/v1/legal/partnersand shows:- Select Lawyer with a search box ("Search by name or email..."). Contracted lawyers are selectable. With none, it reads "No contracted lawyers found".
- An Invite Pending group listing lawyers who have not answered. These rows are greyed out and cannot be selected.
- Invite Registered Lawyer by Email: an email box, a send icon button and a message box pre-filled with "We would like to partner with you for property legal verification."
- Assignment Notes ("Provide context about this assignment...").
- Due Date (Optional), a date input.
-
Field rules:
Field Rule Message Lawyer One contracted lawyer must be selected Toast "Please select a lawyer" Assignment Notes Must not be empty after trimming Toast "Please add assignment notes" Due Date Optional none Assign Lawyer stays disabled until a lawyer is selected and notes are typed.
-
Press Assign Lawyer ("Assigning..." while it runs). The app sends
POST /api/v1/legal/properties/{propertyId}/assign-lawyerwith{ "lawyerId": "...", "notes": "...", "dueDate": "2026-12-01" }. -
On success a toast reads "Lawyer assigned successfully", the dialog closes and the whole page reloads.
-
Result: a new assignment with status
assigned, and the listing'slegalStatusbecomesunder_legal_review. The card now shows the lawyer under Assigned Lawyer. -
On failure the toast shows the API message, or "Failed to assign lawyer".
Inviting from the dialog. Typing an email and pressing the send icon calls POST /api/v1/legal/partnership-invites/email. Toasts: "Please enter a lawyer email", "Invite sent successfully", or the API message, or "Failed to send invite". The invited lawyer is not assignable until they accept.
Reassign does not replace an active lawyer
assigned, accepted, in_review or changes_requested, the API answers "Property already has an active legal assignment. Please reassign instead." The dedicated endpoint PATCH /api/v1/legal/assignments/{assignmentId}/reassign is defined in legal-api.ts but no screen calls it. In practice a new lawyer can only be assigned after the previous review ended as verified or rejected.Submit documents to the lawyer
The Documents for Legal Review block appears while the newest assignment is open (assigned, accepted, in_review or changes_requested).
-
If the lawyer requested changes, an amber notice reads "The lawyer asked for changes before this property can be verified.", followed by the lawyer's decision notes and "Submit the requested documents to send the review back to the lawyer."
-
Earlier submissions are listed newest first: "Sent (date) at (time) by (name)", the note, and each file as a link with its size.
-
Press Submit documents (or Submit requested documents after a change request).
-
In the "Submit documents for legal review" dialog:
- "What the lawyer asked for" repeats the decision notes after a change request.
- Choose documents opens the file picker.
- Note to the lawyer (optional), placeholder "Say what you are sending…".
Rule Message Allowed types: pdf, doc, docx, xls, xlsx, ppt, pptx, txt, jpg, jpeg, png Toast "(file name): this file type is not supported" Each file at most 10 MB Toast "(file name) is larger than 10 MB" At most 10 files per submission Toast "You can send up to 10 documents at a time" (extra files are dropped) Same name and size picked twice Silently skipped Note at most 2000 characters Enforced by the text box At least one file Send to lawyer stays disabled -
Press Send to lawyer ("Sending…"). The app sends
POST /api/v1/legal/assignments/{assignmentId}/documentsas multipart form data: onedocumentspart per file and an optionalnote. -
On success a toast reads "Documents sent to the lawyer", the dialog closes, and the listing and its legal history refetch. On failure the toast shows the API message, or "Failed to send the documents".
-
The dialog cannot be closed while the upload is running.
If the assignment was changes_requested, sending documents moves it back to in_review and the listing back to under_legal_review. In the other open statuses, nothing changes status.
Read the status and history
- Legal Status: the badge described above.
- Assigned Lawyer: name and email of the newest assignment's lawyer. Hidden when that assignment was rejected.
- View Assignment History: toggles a list of every assignment, newest first. Each entry reads "Current Assignment" or "Previous Assignment", "Status: (status)" and "Due: (date)" when a due date was set.
- A warning shows while the listing is neither legally verified nor listed: "Property must be legally verified before publishing. Assign a lawyer to begin the verification process."
States and edge cases
| Situation | What the user sees |
|---|---|
| No assignment yet | Badge "pending verification", an Assign link, no lawyer or documents block |
| Partner list loading in the dialog | Small spinner in the lawyer list |
Review closed (verified, rejected, reassigned) | The documents block is hidden. The API would answer "This legal review is closed (status '...'), so documents can no longer be added to it" |
| Caller is not the listing's agent, landlord or an admin | API message "You do not have permission to assign a lawyer to this property" |
| Lawyer acts while the page is open | The card does not update live. A notification arrives in the bell; reload to see the new status |
What happens next
-
On assignment: the lawyer gets the in-app notification "New Legal Assignment" and sees the listing under Assignments in the Lawyer Portal.
-
On documents sent: the lawyer gets "New Documents to Review".
-
When the lawyer accepts: the lister gets the notification "Legal Review Started". When the lawyer starts the review, the lister is emailed "Legal Review Has Started".
-
When the lawyer decides: the lister gets "Legal Review Decision: (outcome)".
Outcome Assignment Listing Verified verifiedlegalStatusbecomeslegally_verified. A listing waiting inpending_verificationbecomeslisted, unless an open duplicate flag is holding itRejected rejectedlegalStatusbecomeslegally_rejectedChanges requested changes_requestedlegalStatusbecomeschanges_requested, and the lister is asked for documents
The lawyer's steps are described in Reviewing an assignment.
HomeLink Hub