Skip to Content
HomeLink Hub

Legal verification

Assigning a partner lawyer to a listing, sending documents for review, and reading the legal status and assignment history.

Where it lives

RouteView fileAccess
/listings/:id (Legal Verification card)src/views/app/listings/listing-detail.tsxthe listing's agent or landlord
/listings/:id (Assign Lawyer dialog)src/components/assign-lawyer-modal.tsxthe listing's agent or landlord
/listings/:id (Submit documents dialog)src/components/submit-legal-documents-dialog.tsx, src/components/legal-document-submissions.tsxthe 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

When a listing is created, the API assigns the platform's default legal partner automatically if one is configured. In that case the card already shows an assigned lawyer and the link reads Reassign.

Status reference

The Legal Status badge shows the listing's legalStatus with underscores replaced by spaces.

Listing legalStatusSet when
pending_verificationNo review has started (also the default when the field is empty)
under_legal_reviewA lawyer is assigned, or documents were sent after a change request
changes_requestedThe lawyer asked for changes
legally_verifiedThe lawyer verified the property
legally_rejectedThe 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

  1. 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.

  2. 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.

  3. The "Assign Lawyer" dialog loads GET /api/v1/legal/partners and 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.
  4. Field rules:

    FieldRuleMessage
    LawyerOne contracted lawyer must be selectedToast "Please select a lawyer"
    Assignment NotesMust not be empty after trimmingToast "Please add assignment notes"
    Due DateOptionalnone

    Assign Lawyer stays disabled until a lawyer is selected and notes are typed.

  5. Press Assign Lawyer ("Assigning..." while it runs). The app sends POST /api/v1/legal/properties/{propertyId}/assign-lawyer with { "lawyerId": "...", "notes": "...", "dueDate": "2026-12-01" }.

  6. On success a toast reads "Lawyer assigned successfully", the dialog closes and the whole page reloads.

  7. Result: a new assignment with status assigned, and the listing's legalStatus becomes under_legal_review. The card now shows the lawyer under Assigned Lawyer.

  8. 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

The Reassign link opens the same dialog and calls the same assign endpoint. While the current assignment is 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).

  1. 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."

  2. Earlier submissions are listed newest first: "Sent (date) at (time) by (name)", the note, and each file as a link with its size.

  3. Press Submit documents (or Submit requested documents after a change request).

  4. 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…".
    RuleMessage
    Allowed types: pdf, doc, docx, xls, xlsx, ppt, pptx, txt, jpg, jpeg, pngToast "(file name): this file type is not supported"
    Each file at most 10 MBToast "(file name) is larger than 10 MB"
    At most 10 files per submissionToast "You can send up to 10 documents at a time" (extra files are dropped)
    Same name and size picked twiceSilently skipped
    Note at most 2000 charactersEnforced by the text box
    At least one fileSend to lawyer stays disabled
  5. Press Send to lawyer ("Sending…"). The app sends POST /api/v1/legal/assignments/{assignmentId}/documents as multipart form data: one documents part per file and an optional note.

  6. 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".

  7. 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

SituationWhat the user sees
No assignment yetBadge "pending verification", an Assign link, no lawyer or documents block
Partner list loading in the dialogSmall 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 adminAPI message "You do not have permission to assign a lawyer to this property"
Lawyer acts while the page is openThe 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)".

    OutcomeAssignmentListing
    VerifiedverifiedlegalStatus becomes legally_verified. A listing waiting in pending_verification becomes listed, unless an open duplicate flag is holding it
    RejectedrejectedlegalStatus becomes legally_rejected
    Changes requestedchanges_requestedlegalStatus becomes changes_requested, and the lister is asked for documents

The lawyer's steps are described in Reviewing an assignment.

On this page