/cases/{baseCaseId}/referrals. A referral represents a single case sent from one firm to another and progresses through a defined lifecycle of statuses.
Base URL: https://api.casexchange.com/api/public/v1
Authentication: Pass your API key in the X-API-Key header on every request.
Referral status lifecycle
draft | sent | received | under_evaluation | investigating | signed | in_litigation | closing | won | lost | rejected | withdrawn | closed
Closing status enum values (used when closing):
won_settled | lost | no_longer_pursuing
1. List Referrals
Retrieves all referrals for a base case. Supports pagination and status filtering. Tier:read_only
| Parameter | Type | Description |
|---|---|---|
page | integer | Page number, 1-indexed (default: 1) |
limit | integer | Results per page, max 100 (default: 20) |
status | string | Filter by CaseStatus enum value |
200 OK:
2. Get Referral
Returns a single referral by UUID. Tier:read_only
200 OK:
3. Update Referral
Updates mutable fields on a referral: notes, phase, financial estimates, dates, and lead attorney. Only the referent (receiving) firm can update notes. Tier:standard
200 OK:
4. Send Referral
Sends adraft referral to the specified receiving firm, transitioning it to sent. Only the referring firm may call this action.
Tier: standard
200 OK:
5. Acknowledge Referral
Acknowledges asent referral, transitioning it to received. Only the receiving (referent) firm may call this action.
Tier: standard
200 OK:
6. Begin Investigating
Transitions areceived referral to investigating. Only the receiving firm may call this action.
Tier: standard
200 OK:
7. Sign Referral
Marks a referral as signed by the client, transitioning it tosigned. Only the receiving firm may call this action.
Tier: standard
200 OK:
8. Start Litigation
Transitions asigned referral to in_litigation. Only the receiving firm may call this action.
Tier: standard
200 OK:
9. Close Referral
Closes a referral with a requiredclosingStatus and optional closureReason. Financial fields (settlementAmount, attorneyFees) can also be supplied in the body. Only the receiving firm may call this action.
Tier: standard
Closing status values: won_settled | lost | no_longer_pursuing
200 OK:
10. Reject Referral
Rejects an incoming referral. Requires areason in the request body. Only the receiving firm may call this action.
Tier: standard
200 OK:
11. Withdraw Referral
Withdraws a previously sent referral. Requires areason in the request body. Only the referring firm may call this action.
Tier: standard
200 OK:
12. Get Referral Status History
Returns all historical status transitions for a referral, ordered chronologically. Each entry includes the status, an optional message, the source of the transition, and who triggered it. Tier:read_only
200 OK:
| Field | Type | Description |
|---|---|---|
id | uuid | Unique ID of the status history entry |
referralId | uuid | The referral this entry belongs to |
referenceNumber | string | Human-readable reference number (nullable) |
status | string | The status at the time of this entry |
message | string | Optional message attached to the transition (nullable) |
isMessage | boolean | true = message without status change; false = actual status transition |
source | string | Origin of the transition: manual, case_status, salesforce, system, dearlegal, api |
createdAt | string | ISO 8601 timestamp of when the entry was created |
createdByName | string | Display name of the user who triggered the transition (nullable) |