Skip to main content
POST
Create a sent case

Authorizations

X-API-Key
string
header
required

Public API key: cxp_<hex> (firm-scoped) or cxpp_<hex> (provider-scoped). Required on every request.

Body

application/json
title
string
required
Minimum string length: 1
caseType
string
required
Minimum string length: 1
jurisdiction
string
required
Minimum string length: 1
clientFirstName
string
required
Minimum string length: 1
clientLastName
string
required
Minimum string length: 1
description
string
caseCounty
string | null

The case's county inside its jurisdiction; routing rules match on it. Looked up from casePostalCode, then clientPostalCode, when the sender does not supply it.

casePostalCode
string | null

Zip of the case's own location (for example where the incident happened). Used to look up caseCounty.

Maximum string length: 20
county
string | null

The client's home county, looked up from clientPostalCode when the sender does not supply it. Send caseCounty (or the zips) for routing; this value is used as the case county only when neither gives one. Masked for the receiving firm until it acknowledges.

clientAddress1
string
Maximum string length: 500
clientAddress2
string
Maximum string length: 500
clientCity
string
Maximum string length: 200
clientPostalCode
string

Used to look up county, and caseCounty when casePostalCode is absent or in another state.

Maximum string length: 20
clientEmail
string<email>
clientPhone
string
clientDateOfBirth
string<date> | null
incidentDate
string<date> | null
tier
integer | null

Sender-assigned case rating: potential damages, 5 = largest and highest priority, 1 = smallest and lowest. Distinct from the API key access tier.

Required range: 1 <= x <= 5
source
string
notes
string
referentFirmId
string<uuid>

Receiving firm. Omit to create a DRAFT.

routingRuleId
string<uuid>

Optional. Routing rule this send was chosen from (from GET /routing/evaluate). Ignored (with a server-side warning) if it is not a live rule owned by your firm.

roundRobinPosition
integer

Optional. The roundRobinPosition from GET /routing/evaluate. Requires routingRuleId; advances the rule's round-robin pointer when the selected slot is a first-look slot (its attempt window includes attempt 1); re-look-only slots leave the pointer unchanged.

Required range: x >= 0
sentExpirationHours
integer | null

Business hours this referral may stay SENT (unacknowledged) before it is flagged as needing an update and the sending firm is emailed; the status does not change. Overrides the sending firm's default; applies only when the sending firm has referral expiration turned on.

Required range: x >= 1
isRetainerSigned
boolean
default:false
salesforceId
string
salesforceObjectType
string
externalSystem
enum<string>
Available options:
cloudlex,
morgan_morgan
externalId
string
allowDuplicateClient
boolean
default:false

Send even though your firm already referred this client to the same receiving firm from another case of the same case type (409 duplicate_client_referral). Set it only after confirming this is a separate matter; each override is audited.

warmTransferHandoffId
string<uuid>

Optional. Handoff id from POST /handoffs. The referral claims that handoff when it belongs to your firm and to the receiving firm, and the receiving firm's Retell call for it is linked to the referral. A handoff that cannot be claimed is ignored; it never fails the send.

sourceRecordId
string

Optional. The record the handoff was created from (the sourceRecordId sent to POST /handoffs). Without warmTransferHandoffId, the referral claims the single unclaimed handoff from your firm to the receiving firm for this record whose window ended no more than 2 hours ago.

Maximum string length: 255

Response

Created sent case

data
object
required

A case from the sender (owning firm) perspective. Referral-level fields at the top level are the most recent referral's; referrals carries every referral on the case.

meta
object
required