Import cases you're already tracking and receive status updates via webhooks.
🎯 Overview
📌 TL;DR
You have cases already being handled by specific partner firms outside of Lexamica. Import them to track status updates and settlements through the platform, with real-time webhook notifications.
This guide is for you if:
You have existing referral relationships you want to track in Lexamica
You already know which firm is handling each case (no Relay matching needed)
You want webhook notifications for status updates and settlements
What you'll build:
A Case mapping for importing case data
Import cases with specific handler firms
Webhook subscriptions for updates and settlements
Key difference from other originator guides:
Uses /case/{mapId}/create-existing instead of /case/{mapId}/send
Skips the Relay Engine—you specify the handler directly
No relay events (matched/rejected)—just updates and settlements
📖 Key Terms
Term
Definition
Existing Case
A case already being handled, imported for tracking purposes
Partner Firm ID
The Lexamica ID of the firm handling the case
⚙️ Architecture
📋 Prerequisites
Credentials:
Infrastructure:
Foundational Docs:
💡 Tip: To get Partner Firm IDs, contact Lexamica support or use the platform to look them up.
💡 Step-by-Step Implementation
Step 1: Create Your Case Mapping
Step 2: Create Webhook Subscriptions
Subscribe to update and settlement events.
Step 3: Import Cases with Partner Firm ID
Use the /create-existing endpoint with the partnerFirmId parameter.
Request:
Response:
ℹ️ Note: If you omit partnerFirmId, Lexamica runs a projection analysis to suggest potential partners from your network but doesn't send invitations.
🔧 Complete Code Example
📋 Events You'll Receive
Event
When It Fires
What It Contains
Case Update Made
Handler posts a status update
Update title, content, date
Case Stage Changed
Case moves to new stage
New stage label
Case Settlement
Settlement process starts
Settlement details
Note: You won't receive relay events since the case bypasses the Relay Engine.
❓ FAQ
❓ "Where do I get the Partner Firm ID?"
📝 Full Answer:
From the Lexamica platform (firm profile page)
Via the API (contact support for firm lookup endpoints)
From previous integrations where you stored the firm ID
❓ "What if I don't specify a partner firm?"
📝 Full Answer: If you omit partnerFirmId, Lexamica:
Creates the case as a draft
Runs a projection analysis from your partner network
Does NOT send invitations
Suggests potential partners you can select in-platform
❓ "Can I import cases in bulk?"
📝 Full Answer: Yes. Loop through your cases and call the endpoint for each. Add delays (100-200ms) between calls to avoid rate limits. See the bulk import example in the code above.