Send a Salesforce record to CaseXchange as a new case or re-referral
Turns an org-side “send this record to CaseXchange” submit into a durable, idempotent CaseXchange case creation (or re-referral to a new firm) — spec §7.2. Reads the source record from Salesforce using the firm’s active, activated, interactive-send-enabled v2 sending profile, applies its confirmed prefill links plus any overrides, and creates (or re-refers) a case.
Idempotency: pass a fresh idempotencyKey (UUID) on every distinct submit. Replaying the same key returns the original outcome with 200 and attempt.replay: true instead of creating a duplicate case; a genuinely new submit must use a new key.
Observing write-back: there is NO status-check endpoint. Once this call returns, the CaseXchange case exists, but its bridge fields (match key, status, reference number, deep link) are stamped back onto the source Salesforce record asynchronously by the write-back job — observe completion by reading those fields on the source record (typically within ~5 minutes). A send that exhausts its write-back retries moves to needs_attention and is paused for an admin; that state sends NO signal to the org side, so clients should surface a send whose fields remain unstamped after a timeout as stale rather than wait indefinitely.
Error codes (409s carry a per-code error.details object — see the 409 response):
400 match_key_missing — the resolved sending profile has no match key configured at all (send is not supported); an external-ID or lookup match key is required.
400 validation_error — the built create payload failed validation; error.details.errors carries the field-level issues.
400 bad_request — a re-refer business-rule rejection propagated from the re-referral service (e.g. the case is not in a re-referable status, or no prior referral exists); the message is descriptive.
404 send_mapping_not_configured — no active, activated, interactive-send-enabled v2 sending profile matches the given object/record type (exact record-type match, falling back to the “Any record type” profile).
404 source_record_not_found — sourceRecordId does not exist (or is not visible) in Salesforce.
404 linked_case_not_found — reRefer was requested but no linked CaseXchange case exists for this record (or it no longer exists).
409 record_already_sent — the record is already linked to a CaseXchange case and reRefer was not requested. error.details: { baseCaseId, referenceNumber, baseCaseReferenceNumber } (the existing case, so the client can offer re-refer; referenceNumber is the linked referral’s number, baseCaseReferenceNumber the case’s).
409 record_already_linked — the record already carries a match-key value from a prior send with no active link. error.details: { matchKeyValue }.
409 send_in_progress — a send for this record (or idempotency key) is already in flight. error.details: { retryAfterMs } — the remaining in-flight window (floored at 0) to back off before retrying.
409 attempt_failed — a previous send with this idempotency key failed; submit a fresh key to retry. error.details: { failureCode, lastError }.
409 duplicate_client_referral — your firm already referred this client to the target firm from another case of the same case type (live, or sent within 7 days; two cases with different incident dates never match, and a missing incident date does not exempt the send). error.details: { matches, overrideField }. Checked before the attempt is recorded; to send anyway, submit again with allowDuplicateClient: true and a fresh idempotencyKey.
502 salesforce_unavailable — no usable Salesforce access token for this connection.
502 salesforce_read_failed — the Salesforce SOQL read of the source record failed.
Requires FULL tier.
POST
/
salesforce
/
interactive-sends
Send a Salesforce record to CaseXchange as a new case or re-referral
Public API key: cxp_<hex> (firm-scoped) or cxpp_<hex> (provider-scoped). Required on every request.
Body
application/json
sourceRecordId
string
required
Salesforce record Id (15 or 18 char) of the source record being sent.
Pattern: ^[a-zA-Z0-9]{15,18}$
sfObjectApiName
string
required
Salesforce object API name, e.g. litify_pm__Matter__c.
targetFirmIds
string<uuid>[]
required
Receiving firm id(s) for this send. Array-shaped for forward compatibility, but CaseXchange supports exactly one active referral per case — exactly one target firm per send today.
Required array length: 1 element
idempotencyKey
string<uuid>
required
A fresh UUID generated by the caller for each distinct submit. Replaying the same key returns the original outcome (200, attempt.replay: true) instead of creating a duplicate case.
sfRecordTypeDevName
string | null
Record type developer name. Omit or null to match profiles with no record type set.
overrides
object
Optional per-field overrides keyed by casex.* canonical key. Keys must be one of the interactive-send form fields returned by GET /salesforce/send-mapping (sendFields).
Show child attributes
mappingVersion
string
Observability only, echoed from GET /salesforce/send-mapping. A stale/mismatched value is logged but never rejected — the server always re-reads current mapping config.
Maximum string length: 64
reRefer
boolean
default:false
When true and the source record is already linked to a CaseXchange case, re-refer that case to targetFirmIds instead of creating a new case.
notes
string
Maximum string length: 10000
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
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. Without it, the newest unclaimed handoff for the same sourceRecordId and receiving firm is claimed. A re-refer claims too. A handoff that cannot be claimed is ignored; it never fails the send, and a replay of an idempotency key never claims.
Response
Replay of a previously processed idempotency key — returns the original outcome
data
object
required
Result of a durable, idempotent interactive send/re-refer (spec §7.2). attempt.state tells the org client where write-back stands: 'writeback_pending' means the bridge fields will be stamped by the writeback job; 'completed' means they already have been. 'superseded' (terminal, returned on replay) means a later re-refer superseded this attempt's referral, so nothing is left to stamp. There is no status-check endpoint: the only signal that write-back finished is the bridge fields appearing on the source Salesforce record (typically within ~5 minutes). A send that exhausts its retries becomes 'needs_attention' and is paused for an admin WITHOUT signalling the org, so clients should treat a still-unstamped record after a timeout as stale rather than poll indefinitely.
Show child attributes
meta
object
required
Show child attributes
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"CaseXchange Public API","colors":{"primary":"#EA4E00","light":"#FF8142","dark":"#EA4E00"},"logo":{"light":"https://mintcdn.com/casexchange/KOlGhBF7XhztshRX/logo/light.png?fit=max\u0026auto=format\u0026n=KOlGhBF7XhztshRX\u0026q=85\u0026s=deebe246bf795c2ec8e597745d5a7506","dark":"https://mintcdn.com/casexchange/KOlGhBF7XhztshRX/logo/dark.png?fit=max\u0026auto=format\u0026n=KOlGhBF7XhztshRX\u0026q=85\u0026s=c28ea6f63b6fdd1aa1bb8b56da7d6cd8"},"favicon":"https://mintcdn.com/casexchange/KOlGhBF7XhztshRX/logo/favicon.png?fit=max\u0026auto=format\u0026n=KOlGhBF7XhztshRX\u0026q=85\u0026s=e2c7e208bb808008bf629ebc064d391d","navbar":{"links":[{"href":"/postman/CaseXchange-Public-API.postman_collection.json","label":"Postman Collection"},{"href":"mailto:help@casexchange.com","label":"Support"}],"primary":{"type":"button","label":"Dashboard","href":"https://dashboard.casexchange.com"}},"footer":{"socials":{"linkedin":"https://linkedin.com/company/case-xchange"}},"styling":{"latex":false},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"casexchange","hasAudioNarration":false,"actualSubdomain":"casexchange","customDomains":["docs.casexchange.com"],"gitSource":{"type":"github","owner":"casexchange","repo":"api-docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":"","_id":"6b10c5879ffae5051c406bed"},"entitlements":{},"buildId":"6b024522839604291951bb79","clientVersion":"0.0.4453","searchFilterCounts":[{"language":"default","tag":"API","count":158},{"language":"default","tag":"Endpoints","count":154},{"language":"default","tag":"Webhooks","count":22},{"language":"default","tag":"Guides","count":20},{"language":"default","tag":"Med Cases","count":19},{"language":"default","tag":"Referrals","count":16},{"language":"default","tag":"MedEx Pharmacy","count":13},{"language":"default","tag":"Analytics","count":9},{"language":"default","tag":"Cases","count":9},{"language":"default","tag":"Get started","count":6}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"treatment","enabled":true,"payload":{"type":"string","value":"treatment"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"auth-vite-origin","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"starterQuestions":[],"googleFontsInlined":false},"customCss":[]}
{"page":{"pagePath":"api-reference/salesforce/send-a-salesforce-record-to-casexchange-as-a-new-case-or-re-referral","slug":"/api-reference/salesforce/send-a-salesforce-record-to-casexchange-as-a-new-case-or-re-referral","pageMetadata":{"title":"Send a Salesforce record to CaseXchange as a new case or re-referral","description":"Turns an org-side \"send this record to CaseXchange\" submit into a durable, idempotent CaseXchange case creation (or re-referral to a new firm) — spec §7.2. Reads the source record from Salesforce using the firm's active, activated, interactive-send-enabled v2 sending profile, applies its confirmed prefill links plus any `overrides`, and creates (or re-refers) a case.\n\nIdempotency: pass a fresh `idempotencyKey` (UUID) on every distinct submit. Replaying the same key returns the original outcome with `200` and `attempt.replay: true` instead of creating a duplicate case; a genuinely new submit must use a new key.\n\nObserving write-back: there is NO status-check endpoint. Once this call returns, the CaseXchange case exists, but its bridge fields (match key, status, reference number, deep link) are stamped back onto the source Salesforce record asynchronously by the write-back job — observe completion by reading those fields on the source record (typically within ~5 minutes). A send that exhausts its write-back retries moves to `needs_attention` and is paused for an admin; that state sends NO signal to the org side, so clients should surface a send whose fields remain unstamped after a timeout as stale rather than wait indefinitely.\n\nError codes (409s carry a per-code `error.details` object — see the 409 response):\n- `400 match_key_missing` — the resolved sending profile has no match key configured at all (send is not supported); an external-ID or lookup match key is required.\n- `400 validation_error` — the built create payload failed validation; `error.details.errors` carries the field-level issues.\n- `400 bad_request` — a re-refer business-rule rejection propagated from the re-referral service (e.g. the case is not in a re-referable status, or no prior referral exists); the message is descriptive.\n- `404 send_mapping_not_configured` — no active, activated, interactive-send-enabled v2 sending profile matches the given object/record type (exact record-type match, falling back to the \"Any record type\" profile).\n- `404 source_record_not_found` — sourceRecordId does not exist (or is not visible) in Salesforce.\n- `404 linked_case_not_found` — reRefer was requested but no linked CaseXchange case exists for this record (or it no longer exists).\n- `409 record_already_sent` — the record is already linked to a CaseXchange case and reRefer was not requested. `error.details`: `{ baseCaseId, referenceNumber, baseCaseReferenceNumber }` (the existing case, so the client can offer re-refer; `referenceNumber` is the linked referral's number, `baseCaseReferenceNumber` the case's).\n- `409 record_already_linked` — the record already carries a match-key value from a prior send with no active link. `error.details`: `{ matchKeyValue }`.\n- `409 send_in_progress` — a send for this record (or idempotency key) is already in flight. `error.details`: `{ retryAfterMs }` — the remaining in-flight window (floored at 0) to back off before retrying.\n- `409 attempt_failed` — a previous send with this idempotency key failed; submit a fresh key to retry. `error.details`: `{ failureCode, lastError }`.\n- `409 duplicate_client_referral` — your firm already referred this client to the target firm from another case of the same case type (live, or sent within 7 days; two cases with different incident dates never match, and a missing incident date does not exempt the send). `error.details`: `{ matches, overrideField }`. Checked before the attempt is recorded; to send anyway, submit again with `allowDuplicateClient: true` and a fresh idempotencyKey.\n- `502 salesforce_unavailable` — no usable Salesforce access token for this connection.\n- `502 salesforce_read_failed` — the Salesforce SOQL read of the source record failed.\n\nRequires FULL tier.","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yml post /salesforce/interactive-sends","href":"/api-reference/salesforce/send-a-salesforce-record-to-casexchange-as-a-new-case-or-re-referral","autogeneratedByOpenApi":true},"description":{"compiledSource":"\"use strict\";\nconst {Fragment: _Fragment, jsx: _jsx, jsxs: _jsxs} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n code: \"code\",\n li: \"li\",\n p: \"p\",\n ul: \"ul\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsxs(_Fragment, {\n children: [_jsxs(_components.p, {\n children: [\"Turns an org-side “send this record to CaseXchange” submit into a durable, idempotent CaseXchange case creation (or re-referral to a new firm) — spec §7.2. Reads the source record from Salesforce using the firm’s active, activated, interactive-send-enabled v2 sending profile, applies its confirmed prefill links plus any \", _jsx(_components.code, {\n children: \"overrides\"\n }), \", and creates (or re-refers) a case.\"]\n }), \"\\n\", _jsxs(_components.p, {\n children: [\"Idempotency: pass a fresh \", _jsx(_components.code, {\n children: \"idempotencyKey\"\n }), \" (UUID) on every distinct submit. Replaying the same key returns the original outcome with \", _jsx(_components.code, {\n children: \"200\"\n }), \" and \", _jsx(_components.code, {\n children: \"attempt.replay: true\"\n }), \" instead of creating a duplicate case; a genuinely new submit must use a new key.\"]\n }), \"\\n\", _jsxs(_components.p, {\n children: [\"Observing write-back: there is NO status-check endpoint. Once this call returns, the CaseXchange case exists, but its bridge fields (match key, status, reference number, deep link) are stamped back onto the source Salesforce record asynchronously by the write-back job — observe completion by reading those fields on the source record (typically within ~5 minutes). A send that exhausts its write-back retries moves to \", _jsx(_components.code, {\n children: \"needs_attention\"\n }), \" and is paused for an admin; that state sends NO signal to the org side, so clients should surface a send whose fields remain unstamped after a timeout as stale rather than wait indefinitely.\"]\n }), \"\\n\", _jsxs(_components.p, {\n children: [\"Error codes (409s carry a per-code \", _jsx(_components.code, {\n children: \"error.details\"\n }), \" object — see the 409 response):\"]\n }), \"\\n\", _jsxs(_components.ul, {\n children: [\"\\n\", _jsxs(_components.li, {\n children: [_jsx(_components.code, {\n children: \"400 match_key_missing\"\n }), \" — the resolved sending profile has no match key configured at all (send is not supported); an external-ID or lookup match key is required.\"]\n }), \"\\n\", _jsxs(_components.li, {\n children: [_jsx(_components.code, {\n children: \"400 validation_error\"\n }), \" — the built create payload failed validation; \", _jsx(_components.code, {\n children: \"error.details.errors\"\n }), \" carries the field-level issues.\"]\n }), \"\\n\", _jsxs(_components.li, {\n children: [_jsx(_components.code, {\n children: \"400 bad_request\"\n }), \" — a re-refer business-rule rejection propagated from the re-referral service (e.g. the case is not in a re-referable status, or no prior referral exists); the message is descriptive.\"]\n }), \"\\n\", _jsxs(_components.li, {\n children: [_jsx(_components.code, {\n children: \"404 send_mapping_not_configured\"\n }), \" — no active, activated, interactive-send-enabled v2 sending profile matches the given object/record type (exact record-type match, falling back to the “Any record type” profile).\"]\n }), \"\\n\", _jsxs(_components.li, {\n children: [_jsx(_components.code, {\n children: \"404 source_record_not_found\"\n }), \" — sourceRecordId does not exist (or is not visible) in Salesforce.\"]\n }), \"\\n\", _jsxs(_components.li, {\n children: [_jsx(_components.code, {\n children: \"404 linked_case_not_found\"\n }), \" — reRefer was requested but no linked CaseXchange case exists for this record (or it no longer exists).\"]\n }), \"\\n\", _jsxs(_components.li, {\n children: [_jsx(_components.code, {\n children: \"409 record_already_sent\"\n }), \" — the record is already linked to a CaseXchange case and reRefer was not requested. \", _jsx(_components.code, {\n children: \"error.details\"\n }), \": \", _jsx(_components.code, {\n children: \"{ baseCaseId, referenceNumber, baseCaseReferenceNumber }\"\n }), \" (the existing case, so the client can offer re-refer; \", _jsx(_components.code, {\n children: \"referenceNumber\"\n }), \" is the linked referral’s number, \", _jsx(_components.code, {\n children: \"baseCaseReferenceNumber\"\n }), \" the case’s).\"]\n }), \"\\n\", _jsxs(_components.li, {\n children: [_jsx(_components.code, {\n children: \"409 record_already_linked\"\n }), \" — the record already carries a match-key value from a prior send with no active link. \", _jsx(_components.code, {\n children: \"error.details\"\n }), \": \", _jsx(_components.code, {\n children: \"{ matchKeyValue }\"\n }), \".\"]\n }), \"\\n\", _jsxs(_components.li, {\n children: [_jsx(_components.code, {\n children: \"409 send_in_progress\"\n }), \" — a send for this record (or idempotency key) is already in flight. \", _jsx(_components.code, {\n children: \"error.details\"\n }), \": \", _jsx(_components.code, {\n children: \"{ retryAfterMs }\"\n }), \" — the remaining in-flight window (floored at 0) to back off before retrying.\"]\n }), \"\\n\", _jsxs(_components.li, {\n children: [_jsx(_components.code, {\n children: \"409 attempt_failed\"\n }), \" — a previous send with this idempotency key failed; submit a fresh key to retry. \", _jsx(_components.code, {\n children: \"error.details\"\n }), \": \", _jsx(_components.code, {\n children: \"{ failureCode, lastError }\"\n }), \".\"]\n }), \"\\n\", _jsxs(_components.li, {\n children: [_jsx(_components.code, {\n children: \"409 duplicate_client_referral\"\n }), \" — your firm already referred this client to the target firm from another case of the same case type (live, or sent within 7 days; two cases with different incident dates never match, and a missing incident date does not exempt the send). \", _jsx(_components.code, {\n children: \"error.details\"\n }), \": \", _jsx(_components.code, {\n children: \"{ matches, overrideField }\"\n }), \". Checked before the attempt is recorded; to send anyway, submit again with \", _jsx(_components.code, {\n children: \"allowDuplicateClient: true\"\n }), \" and a fresh idempotencyKey.\"]\n }), \"\\n\", _jsxs(_components.li, {\n children: [_jsx(_components.code, {\n children: \"502 salesforce_unavailable\"\n }), \" — no usable Salesforce access token for this connection.\"]\n }), \"\\n\", _jsxs(_components.li, {\n children: [_jsx(_components.code, {\n children: \"502 salesforce_read_failed\"\n }), \" — the Salesforce SOQL read of the source record failed.\"]\n }), \"\\n\"]\n }), \"\\n\", _jsx(_components.p, {\n children: \"Requires FULL tier.\"\n })]\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){return _jsx(_Fragment,{})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Send a Salesforce record to CaseXchange as a new case or re-referral","description":"Turns an org-side \"send this record to CaseXchange\" submit into a durable, idempotent CaseXchange case creation (or re-referral to a new firm) — spec §7.2. Reads the source record from Salesforce using the firm's active, activated, interactive-send-enabled v2 sending profile, applies its confirmed prefill links plus any `overrides`, and creates (or re-refers) a case.\n\nIdempotency: pass a fresh `idempotencyKey` (UUID) on every distinct submit. Replaying the same key returns the original outcome with `200` and `attempt.replay: true` instead of creating a duplicate case; a genuinely new submit must use a new key.\n\nObserving write-back: there is NO status-check endpoint. Once this call returns, the CaseXchange case exists, but its bridge fields (match key, status, reference number, deep link) are stamped back onto the source Salesforce record asynchronously by the write-back job — observe completion by reading those fields on the source record (typically within ~5 minutes). A send that exhausts its write-back retries moves to `needs_attention` and is paused for an admin; that state sends NO signal to the org side, so clients should surface a send whose fields remain unstamped after a timeout as stale rather than wait indefinitely.\n\nError codes (409s carry a per-code `error.details` object — see the 409 response):\n- `400 match_key_missing` — the resolved sending profile has no match key configured at all (send is not supported); an external-ID or lookup match key is required.\n- `400 validation_error` — the built create payload failed validation; `error.details.errors` carries the field-level issues.\n- `400 bad_request` — a re-refer business-rule rejection propagated from the re-referral service (e.g. the case is not in a re-referable status, or no prior referral exists); the message is descriptive.\n- `404 send_mapping_not_configured` — no active, activated, interactive-send-enabled v2 sending profile matches the given object/record type (exact record-type match, falling back to the \"Any record type\" profile).\n- `404 source_record_not_found` — sourceRecordId does not exist (or is not visible) in Salesforce.\n- `404 linked_case_not_found` — reRefer was requested but no linked CaseXchange case exists for this record (or it no longer exists).\n- `409 record_already_sent` — the record is already linked to a CaseXchange case and reRefer was not requested. `error.details`: `{ baseCaseId, referenceNumber, baseCaseReferenceNumber }` (the existing case, so the client can offer re-refer; `referenceNumber` is the linked referral's number, `baseCaseReferenceNumber` the case's).\n- `409 record_already_linked` — the record already carries a match-key value from a prior send with no active link. `error.details`: `{ matchKeyValue }`.\n- `409 send_in_progress` — a send for this record (or idempotency key) is already in flight. `error.details`: `{ retryAfterMs }` — the remaining in-flight window (floored at 0) to back off before retrying.\n- `409 attempt_failed` — a previous send with this idempotency key failed; submit a fresh key to retry. `error.details`: `{ failureCode, lastError }`.\n- `409 duplicate_client_referral` — your firm already referred this client to the target firm from another case of the same case type (live, or sent within 7 days; two cases with different incident dates never match, and a missing incident date does not exempt the send). `error.details`: `{ matches, overrideField }`. Checked before the attempt is recorded; to send anyway, submit again with `allowDuplicateClient: true` and a fresh idempotencyKey.\n- `502 salesforce_unavailable` — no usable Salesforce access token for this connection.\n- `502 salesforce_read_failed` — the Salesforce SOQL read of the source record failed.\n\nRequires FULL tier.","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yml post /salesforce/interactive-sends","href":"/api-reference/salesforce/send-a-salesforce-record-to-casexchange-as-a-new-case-or-re-referral","autogeneratedByOpenApi":true}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":[],"openApiReferenceData":{"operation":{"operationId":"createSalesforceInteractiveSend","summary":"Send a Salesforce record to CaseXchange as a new case or re-referral","description":"Turns an org-side \"send this record to CaseXchange\" submit into a durable, idempotent CaseXchange case creation (or re-referral to a new firm) — spec §7.2. Reads the source record from Salesforce using the firm's active, activated, interactive-send-enabled v2 sending profile, applies its confirmed prefill links plus any `overrides`, and creates (or re-refers) a case.\n\nIdempotency: pass a fresh `idempotencyKey` (UUID) on every distinct submit. Replaying the same key returns the original outcome with `200` and `attempt.replay: true` instead of creating a duplicate case; a genuinely new submit must use a new key.\n\nObserving write-back: there is NO status-check endpoint. Once this call returns, the CaseXchange case exists, but its bridge fields (match key, status, reference number, deep link) are stamped back onto the source Salesforce record asynchronously by the write-back job — observe completion by reading those fields on the source record (typically within ~5 minutes). A send that exhausts its write-back retries moves to `needs_attention` and is paused for an admin; that state sends NO signal to the org side, so clients should surface a send whose fields remain unstamped after a timeout as stale rather than wait indefinitely.\n\nError codes (409s carry a per-code `error.details` object — see the 409 response):\n- `400 match_key_missing` — the resolved sending profile has no match key configured at all (send is not supported); an external-ID or lookup match key is required.\n- `400 validation_error` — the built create payload failed validation; `error.details.errors` carries the field-level issues.\n- `400 bad_request` — a re-refer business-rule rejection propagated from the re-referral service (e.g. the case is not in a re-referable status, or no prior referral exists); the message is descriptive.\n- `404 send_mapping_not_configured` — no active, activated, interactive-send-enabled v2 sending profile matches the given object/record type (exact record-type match, falling back to the \"Any record type\" profile).\n- `404 source_record_not_found` — sourceRecordId does not exist (or is not visible) in Salesforce.\n- `404 linked_case_not_found` — reRefer was requested but no linked CaseXchange case exists for this record (or it no longer exists).\n- `409 record_already_sent` — the record is already linked to a CaseXchange case and reRefer was not requested. `error.details`: `{ baseCaseId, referenceNumber, baseCaseReferenceNumber }` (the existing case, so the client can offer re-refer; `referenceNumber` is the linked referral's number, `baseCaseReferenceNumber` the case's).\n- `409 record_already_linked` — the record already carries a match-key value from a prior send with no active link. `error.details`: `{ matchKeyValue }`.\n- `409 send_in_progress` — a send for this record (or idempotency key) is already in flight. `error.details`: `{ retryAfterMs }` — the remaining in-flight window (floored at 0) to back off before retrying.\n- `409 attempt_failed` — a previous send with this idempotency key failed; submit a fresh key to retry. `error.details`: `{ failureCode, lastError }`.\n- `409 duplicate_client_referral` — your firm already referred this client to the target firm from another case of the same case type (live, or sent within 7 days; two cases with different incident dates never match, and a missing incident date does not exempt the send). `error.details`: `{ matches, overrideField }`. Checked before the attempt is recorded; to send anyway, submit again with `allowDuplicateClient: true` and a fresh idempotencyKey.\n- `502 salesforce_unavailable` — no usable Salesforce access token for this connection.\n- `502 salesforce_read_failed` — the Salesforce SOQL read of the source record failed.\n\nRequires FULL tier.","tags":["Salesforce"],"security":["260292c3-31ce-4825-a936-6b722123c948"],"x-access-tier":"full","requestBody":"ddebd222-7106-43fa-a4e4-5e6abe8a4795","responses":{"200":"681d4dae-8a86-432c-8318-3af57c5c6bab","201":"538c5ca5-bae4-4153-8037-d5d51f898c6a","400":"8ab83169-30ea-4a43-8e9b-536b913c5286","401":"acaaf3be-8042-4d7c-9996-15929f0367c9","403":"d96619c0-29fb-45b2-92d9-385992b487ca","404":"bbada513-585f-4c24-9cfd-440fe0a9fa79","409":"15fbd1e7-1449-4f29-b894-72c20a5ad1ca","502":"f7f166b5-6b02-4982-a3d0-1418c1ccc439"},"method":"post","type":"path","servers":["345f5755-9455-47f7-b251-5ea16ce352e2","95e4cacd-c70c-4f31-af42-14e9bf3f2ac6"],"path":"/salesforce/interactive-sends","baseUrlOptions":["https://api.casexchange.com/api/public/v1","/api/public/v1"],"title":"Send a Salesforce record to CaseXchange as a new case or re-referral","codeSamples":[],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["sourceRecordId","sfObjectApiName","targetFirmIds","idempotencyKey"],"properties":{"sourceRecordId":{"type":"string","pattern":"^[a-zA-Z0-9]{15,18}$","description":"Salesforce record Id (15 or 18 char) of the source record being sent.","isRequired":true,"uniqueKey":"sourceRecordId","typeLabel":"string"},"sfObjectApiName":{"type":"string","description":"Salesforce object API name, e.g. litify_pm__Matter__c.","isRequired":true,"uniqueKey":"sfObjectApiName","typeLabel":"string"},"targetFirmIds":{"type":"array","items":{"type":"string","format":"uuid","uniqueKey":"targetFirmIds.items.[INDEX]","typeLabel":"string\u003cuuid>"},"minItems":1,"maxItems":1,"description":"Receiving firm id(s) for this send. Array-shaped for forward compatibility, but CaseXchange supports exactly one active referral per case — exactly one target firm per send today.","isRequired":true,"uniqueKey":"targetFirmIds","typeLabel":"string\u003cuuid>[]"},"idempotencyKey":{"type":"string","format":"uuid","description":"A fresh UUID generated by the caller for each distinct submit. Replaying the same key returns the original outcome (200, attempt.replay: true) instead of creating a duplicate case.","isRequired":true,"uniqueKey":"idempotencyKey","typeLabel":"string\u003cuuid>"},"sfRecordTypeDevName":{"oneOf":[{"type":"string","description":"Record type developer name. Omit or null to match profiles with no record type set.","uniqueKey":"sfRecordTypeDevName.oneOf.0","typeLabel":"string"},{"type":"null","description":"Record type developer name. Omit or null to match profiles with no record type set.","uniqueKey":"sfRecordTypeDevName.oneOf.1","typeLabel":"null"}],"uniqueKey":"sfRecordTypeDevName","typeLabel":"string | null"},"overrides":{"type":"object","additionalProperties":{"oneOf":[{"type":"string","uniqueKey":"overrides.additionalProperties.oneOf.0","typeLabel":"string"},{"type":"number","uniqueKey":"overrides.additionalProperties.oneOf.1","typeLabel":"number"},{"type":"boolean","uniqueKey":"overrides.additionalProperties.oneOf.2","typeLabel":"boolean"},{"type":"null","uniqueKey":"overrides.additionalProperties.oneOf.3","typeLabel":"null"}],"uniqueKey":"overrides.additionalProperties","typeLabel":"string | number | boolean | null"},"default":{},"description":"Optional per-field overrides keyed by casex.* canonical key. Keys must be one of the interactive-send form fields returned by GET /salesforce/send-mapping (sendFields).","uniqueKey":"overrides","typeLabel":"object"},"mappingVersion":{"type":"string","maxLength":64,"description":"Observability only, echoed from GET /salesforce/send-mapping. A stale/mismatched value is logged but never rejected — the server always re-reads current mapping config.","uniqueKey":"mappingVersion","typeLabel":"string"},"reRefer":{"type":"boolean","default":false,"description":"When true and the source record is already linked to a CaseXchange case, re-refer that case to targetFirmIds instead of creating a new case.","uniqueKey":"reRefer","typeLabel":"boolean"},"notes":{"type":"string","maxLength":10000,"uniqueKey":"notes","typeLabel":"string"},"routingRuleId":{"type":"string","format":"uuid","description":"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.","uniqueKey":"routingRuleId","typeLabel":"string\u003cuuid>"},"roundRobinPosition":{"type":"integer","minimum":0,"description":"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.","uniqueKey":"roundRobinPosition","typeLabel":"integer"},"allowDuplicateClient":{"type":"boolean","default":false,"description":"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.","uniqueKey":"allowDuplicateClient","typeLabel":"boolean"},"warmTransferHandoffId":{"type":"string","format":"uuid","description":"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. Without it, the newest unclaimed handoff for the same `sourceRecordId` and receiving firm is claimed. A re-refer claims too. A handoff that cannot be claimed is ignored; it never fails the send, and a replay of an idempotency key never claims.","uniqueKey":"warmTransferHandoffId","typeLabel":"string\u003cuuid>"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"sourceRecordId":"\u003cstring>","sfObjectApiName":"\u003cstring>","targetFirmIds":["3c90c3cc-0d44-4b50-8888-8dd25736052a"],"idempotencyKey":"3c90c3cc-0d44-4b50-8888-8dd25736052a","sfRecordTypeDevName":"\u003cstring>","overrides":{},"mappingVersion":"\u003cstring>","reRefer":false,"notes":"\u003cstring>","routingRuleId":"3c90c3cc-0d44-4b50-8888-8dd25736052a","roundRobinPosition":1,"allowDuplicateClient":false,"warmTransferHandoffId":"3c90c3cc-0d44-4b50-8888-8dd25736052a"}}},"exampleType":"generated"}},"exampleType":"generated"},"responses":{"681d4dae-8a86-432c-8318-3af57c5c6bab":{"description":"Replay of a previously processed idempotency key — returns the original outcome","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","description":"Result of a durable, idempotent interactive send/re-refer (spec §7.2). `attempt.state` tells the org client where write-back stands: 'writeback_pending' means the bridge fields will be stamped by the writeback job; 'completed' means they already have been. 'superseded' (terminal, returned on replay) means a later re-refer superseded this attempt's referral, so nothing is left to stamp. There is no status-check endpoint: the only signal that write-back finished is the bridge fields appearing on the source Salesforce record (typically within ~5 minutes). A send that exhausts its retries becomes 'needs_attention' and is paused for an admin WITHOUT signalling the org, so clients should treat a still-unstamped record after a timeout as stale rather than poll indefinitely.","properties":{"attempt":{"type":"object","properties":{"id":{"type":"string","format":"uuid","isRequired":true,"uniqueKey":"data.attempt.id","typeLabel":"string\u003cuuid>"},"state":{"type":"string","enum":["processing","writeback_pending","completed","needs_attention","superseded","failed"],"description":"Attempt lifecycle state.","isRequired":true,"uniqueKey":"data.attempt.state","typeLabel":"enum\u003cstring>"},"idempotencyKey":{"type":"string","format":"uuid","isRequired":true,"uniqueKey":"data.attempt.idempotencyKey","typeLabel":"string\u003cuuid>"},"replay":{"type":"boolean","description":"True when this response replays a previously processed idempotency key (a genuine retry of the same submit) rather than a freshly created send.","isRequired":true,"uniqueKey":"data.attempt.replay","typeLabel":"boolean"}},"required":["id","state","idempotencyKey","replay"],"isRequired":true,"uniqueKey":"data.attempt","typeLabel":"object"},"sentCase":{"type":"object","description":"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.","properties":{"id":{"type":"string","format":"uuid","description":"Base case UUID","uniqueKey":"data.sentCase.id","typeLabel":"string\u003cuuid>"},"referenceNumber":{"oneOf":[{"type":"string","example":"ABC-0001","uniqueKey":"data.sentCase.referenceNumber.oneOf.0","typeLabel":"string"},{"type":"null","example":"ABC-0001","uniqueKey":"data.sentCase.referenceNumber.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.sentCase.referenceNumber","typeLabel":"string | null"},"salesforceId":{"oneOf":[{"type":"string","uniqueKey":"data.sentCase.salesforceId.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"data.sentCase.salesforceId.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.sentCase.salesforceId","typeLabel":"string | null"},"salesforceObjectType":{"oneOf":[{"type":"string","uniqueKey":"data.sentCase.salesforceObjectType.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"data.sentCase.salesforceObjectType.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.sentCase.salesforceObjectType","typeLabel":"string | null"},"title":{"oneOf":[{"type":"string","uniqueKey":"data.sentCase.title.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"data.sentCase.title.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.sentCase.title","typeLabel":"string | null"},"description":{"oneOf":[{"type":"string","uniqueKey":"data.sentCase.description.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"data.sentCase.description.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.sentCase.description","typeLabel":"string | null"},"caseType":{"oneOf":[{"type":"string","uniqueKey":"data.sentCase.caseType.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"data.sentCase.caseType.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.sentCase.caseType","typeLabel":"string | null"},"jurisdiction":{"oneOf":[{"type":"string","uniqueKey":"data.sentCase.jurisdiction.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"data.sentCase.jurisdiction.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.sentCase.jurisdiction","typeLabel":"string | null"},"caseCounty":{"oneOf":[{"type":"string","description":"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.","uniqueKey":"data.sentCase.caseCounty.oneOf.0","typeLabel":"string"},{"type":"null","description":"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.","uniqueKey":"data.sentCase.caseCounty.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.sentCase.caseCounty","typeLabel":"string | null"},"caseCountySource":{"oneOf":[{"type":"string","enum":["sender","case_zip","client_zip"],"description":"How caseCounty was filled.","uniqueKey":"data.sentCase.caseCountySource.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","enum":["sender","case_zip","client_zip"],"description":"How caseCounty was filled.","uniqueKey":"data.sentCase.caseCountySource.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.sentCase.caseCountySource","typeLabel":"enum\u003cstring> | null"},"casePostalCode":{"oneOf":[{"type":"string","description":"Zip of the case's own location.","uniqueKey":"data.sentCase.casePostalCode.oneOf.0","typeLabel":"string"},{"type":"null","description":"Zip of the case's own location.","uniqueKey":"data.sentCase.casePostalCode.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.sentCase.casePostalCode","typeLabel":"string | null"},"county":{"oneOf":[{"type":"string","description":"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.","uniqueKey":"data.sentCase.county.oneOf.0","typeLabel":"string"},{"type":"null","description":"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.","uniqueKey":"data.sentCase.county.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.sentCase.county","typeLabel":"string | null"},"countySource":{"oneOf":[{"type":"string","enum":["sender","client_zip"],"description":"How county was filled.","uniqueKey":"data.sentCase.countySource.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","enum":["sender","client_zip"],"description":"How county was filled.","uniqueKey":"data.sentCase.countySource.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.sentCase.countySource","typeLabel":"enum\u003cstring> | null"},"clientAddress1":{"oneOf":[{"type":"string","uniqueKey":"data.sentCase.clientAddress1.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"data.sentCase.clientAddress1.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.sentCase.clientAddress1","typeLabel":"string | null"},"clientAddress2":{"oneOf":[{"type":"string","uniqueKey":"data.sentCase.clientAddress2.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"data.sentCase.clientAddress2.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.sentCase.clientAddress2","typeLabel":"string | null"},"clientCity":{"oneOf":[{"type":"string","uniqueKey":"data.sentCase.clientCity.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"data.sentCase.clientCity.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.sentCase.clientCity","typeLabel":"string | null"},"clientPostalCode":{"oneOf":[{"type":"string","uniqueKey":"data.sentCase.clientPostalCode.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"data.sentCase.clientPostalCode.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.sentCase.clientPostalCode","typeLabel":"string | null"},"clientState":{"oneOf":[{"type":"string","description":"Two-letter state of the client's zip.","uniqueKey":"data.sentCase.clientState.oneOf.0","typeLabel":"string"},{"type":"null","description":"Two-letter state of the client's zip.","uniqueKey":"data.sentCase.clientState.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.sentCase.clientState","typeLabel":"string | null"},"clientFirstName":{"oneOf":[{"type":"string","uniqueKey":"data.sentCase.clientFirstName.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"data.sentCase.clientFirstName.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.sentCase.clientFirstName","typeLabel":"string | null"},"clientLastName":{"oneOf":[{"type":"string","uniqueKey":"data.sentCase.clientLastName.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"data.sentCase.clientLastName.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.sentCase.clientLastName","typeLabel":"string | null"},"clientEmail":{"oneOf":[{"type":"string","format":"email","uniqueKey":"data.sentCase.clientEmail.oneOf.0","typeLabel":"string\u003cemail>"},{"type":"null","format":"email","uniqueKey":"data.sentCase.clientEmail.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.sentCase.clientEmail","typeLabel":"string\u003cemail> | null"},"clientPhone":{"oneOf":[{"type":"string","uniqueKey":"data.sentCase.clientPhone.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"data.sentCase.clientPhone.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.sentCase.clientPhone","typeLabel":"string | null"},"clientDateOfBirth":{"oneOf":[{"type":"string","format":"date-time","uniqueKey":"data.sentCase.clientDateOfBirth.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","format":"date-time","uniqueKey":"data.sentCase.clientDateOfBirth.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.sentCase.clientDateOfBirth","typeLabel":"string\u003cdate-time> | null"},"incidentDate":{"oneOf":[{"type":"string","format":"date-time","uniqueKey":"data.sentCase.incidentDate.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","format":"date-time","uniqueKey":"data.sentCase.incidentDate.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.sentCase.incidentDate","typeLabel":"string\u003cdate-time> | null"},"tier":{"oneOf":[{"type":"integer","minimum":1,"maximum":5,"description":"Sender-assigned case rating: potential damages, 5 = largest and highest priority, 1 = smallest and lowest. Distinct from the API key access tier. Null when unrated.","uniqueKey":"data.sentCase.tier.oneOf.0","typeLabel":"integer"},{"type":"null","minimum":1,"maximum":5,"description":"Sender-assigned case rating: potential damages, 5 = largest and highest priority, 1 = smallest and lowest. Distinct from the API key access tier. Null when unrated.","uniqueKey":"data.sentCase.tier.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.sentCase.tier","typeLabel":"integer | null"},"ratedTier":{"oneOf":[{"type":"integer","minimum":1,"maximum":5,"description":"Reserved for a future rating workflow; not currently populated.","uniqueKey":"data.sentCase.ratedTier.oneOf.0","typeLabel":"integer"},{"type":"null","minimum":1,"maximum":5,"description":"Reserved for a future rating workflow; not currently populated.","uniqueKey":"data.sentCase.ratedTier.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.sentCase.ratedTier","typeLabel":"integer | null"},"ratingNotes":{"oneOf":[{"type":"string","description":"Reserved for a future rating workflow; not currently populated.","uniqueKey":"data.sentCase.ratingNotes.oneOf.0","typeLabel":"string"},{"type":"null","description":"Reserved for a future rating workflow; not currently populated.","uniqueKey":"data.sentCase.ratingNotes.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.sentCase.ratingNotes","typeLabel":"string | null"},"source":{"oneOf":[{"type":"string","uniqueKey":"data.sentCase.source.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"data.sentCase.source.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.sentCase.source","typeLabel":"string | null"},"isTestCase":{"type":"boolean","uniqueKey":"data.sentCase.isTestCase","typeLabel":"boolean"},"createdBy":{"type":"string","format":"uuid","uniqueKey":"data.sentCase.createdBy","typeLabel":"string\u003cuuid>"},"createdAt":{"type":"string","format":"date-time","uniqueKey":"data.sentCase.createdAt","typeLabel":"string\u003cdate-time>"},"updatedAt":{"type":"string","format":"date-time","uniqueKey":"data.sentCase.updatedAt","typeLabel":"string\u003cdate-time>"},"status":{"type":"string","description":"Most recent referral's CaseStatus; `draft` when the case has no referral.","uniqueKey":"data.sentCase.status","typeLabel":"string"},"lookNumber":{"oneOf":[{"type":"integer","minimum":1,"description":"The number of the case's current look (the referral marked isLatestLook in referrals): 1 for the first look, 2 for the next look after a rejection, withdrawal or expiry, and so on. Counts every look: re-referred by hand, sent by the Automatic Second Look, or recorded from the sending firm's case history.","uniqueKey":"data.sentCase.lookNumber.oneOf.0","typeLabel":"integer"},{"type":"null","minimum":1,"description":"The number of the case's current look (the referral marked isLatestLook in referrals): 1 for the first look, 2 for the next look after a rejection, withdrawal or expiry, and so on. Counts every look: re-referred by hand, sent by the Automatic Second Look, or recorded from the sending firm's case history.","uniqueKey":"data.sentCase.lookNumber.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.sentCase.lookNumber","typeLabel":"integer | null"},"lookType":{"oneOf":[{"type":"string","enum":["first","re_referral","auto_second_look"],"description":"How the case's current look happened: first (the first look), re_referral (a later look the sending firm sent), or auto_second_look (a later look the Automatic Second Look sent).","uniqueKey":"data.sentCase.lookType.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","enum":["first","re_referral","auto_second_look"],"description":"How the case's current look happened: first (the first look), re_referral (a later look the sending firm sent), or auto_second_look (a later look the Automatic Second Look sent).","uniqueKey":"data.sentCase.lookType.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.sentCase.lookType","typeLabel":"enum\u003cstring> | null"},"closingStatus":{"oneOf":[{"type":"string","enum":["won_settled","lost","no_longer_pursuing"],"description":"ClosingStatus enum value; null until the closing workflow starts.","uniqueKey":"data.sentCase.closingStatus.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","enum":["won_settled","lost","no_longer_pursuing"],"description":"ClosingStatus enum value; null until the closing workflow starts.","uniqueKey":"data.sentCase.closingStatus.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.sentCase.closingStatus","typeLabel":"enum\u003cstring> | null"},"payoutType":{"oneOf":[{"type":"string","enum":["lump_sum","structured","hybrid","other"],"description":"How settlement funds are distributed; null until set during closing.","uniqueKey":"data.sentCase.payoutType.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","enum":["lump_sum","structured","hybrid","other"],"description":"How settlement funds are distributed; null until set during closing.","uniqueKey":"data.sentCase.payoutType.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.sentCase.payoutType","typeLabel":"enum\u003cstring> | null"},"closureReason":{"oneOf":[{"type":"string","description":"Free-text reason recorded when the referral is closed; null until then.","uniqueKey":"data.sentCase.closureReason.oneOf.0","typeLabel":"string"},{"type":"null","description":"Free-text reason recorded when the referral is closed; null until then.","uniqueKey":"data.sentCase.closureReason.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.sentCase.closureReason","typeLabel":"string | null"},"settlementAmount":{"oneOf":[{"type":"number","minimum":0,"maximum":1000000000,"description":"Final settlement amount in dollars; null until recorded.","uniqueKey":"data.sentCase.settlementAmount.oneOf.0","typeLabel":"number"},{"type":"null","minimum":0,"maximum":1000000000,"description":"Final settlement amount in dollars; null until recorded.","uniqueKey":"data.sentCase.settlementAmount.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.sentCase.settlementAmount","typeLabel":"number | null"},"attorneyFees":{"oneOf":[{"type":"number","minimum":0,"maximum":1000000000,"description":"Total attorney fees in dollars; null until recorded.","uniqueKey":"data.sentCase.attorneyFees.oneOf.0","typeLabel":"number"},{"type":"null","minimum":0,"maximum":1000000000,"description":"Total attorney fees in dollars; null until recorded.","uniqueKey":"data.sentCase.attorneyFees.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.sentCase.attorneyFees","typeLabel":"number | null"},"clientFeeAgreementPercentage":{"oneOf":[{"type":"number","minimum":0,"maximum":1,"description":"Client fee agreement as a FRACTION of the settlement, 0–1 (0.3333 = 33.33%). Not a whole percent — contrast with sendingFirmPercentage.","uniqueKey":"data.sentCase.clientFeeAgreementPercentage.oneOf.0","typeLabel":"number"},{"type":"null","minimum":0,"maximum":1,"description":"Client fee agreement as a FRACTION of the settlement, 0–1 (0.3333 = 33.33%). Not a whole percent — contrast with sendingFirmPercentage.","uniqueKey":"data.sentCase.clientFeeAgreementPercentage.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.sentCase.clientFeeAgreementPercentage","typeLabel":"number | null"},"projectedSettlementAmount":{"oneOf":[{"type":"number","minimum":0,"maximum":1000000000,"description":"Projected settlement amount in dollars, set while the case is open; null until estimated.","uniqueKey":"data.sentCase.projectedSettlementAmount.oneOf.0","typeLabel":"number"},{"type":"null","minimum":0,"maximum":1000000000,"description":"Projected settlement amount in dollars, set while the case is open; null until estimated.","uniqueKey":"data.sentCase.projectedSettlementAmount.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.sentCase.projectedSettlementAmount","typeLabel":"number | null"},"estimatedDateOfResolution":{"oneOf":[{"type":"string","format":"date-time","description":"Estimated resolution date (date-only on input, ISO 8601 on output); null until estimated.","uniqueKey":"data.sentCase.estimatedDateOfResolution.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","format":"date-time","description":"Estimated resolution date (date-only on input, ISO 8601 on output); null until estimated.","uniqueKey":"data.sentCase.estimatedDateOfResolution.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.sentCase.estimatedDateOfResolution","typeLabel":"string\u003cdate-time> | null"},"estimatedDistributionDate":{"oneOf":[{"type":"string","format":"date-time","description":"Estimated distribution date (date-only on input, ISO 8601 on output); null until estimated.","uniqueKey":"data.sentCase.estimatedDistributionDate.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","format":"date-time","description":"Estimated distribution date (date-only on input, ISO 8601 on output); null until estimated.","uniqueKey":"data.sentCase.estimatedDistributionDate.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.sentCase.estimatedDistributionDate","typeLabel":"string\u003cdate-time> | null"},"leadAttorneyName":{"oneOf":[{"type":"string","description":"Lead attorney at the receiving firm; null until set.","uniqueKey":"data.sentCase.leadAttorneyName.oneOf.0","typeLabel":"string"},{"type":"null","description":"Lead attorney at the receiving firm; null until set.","uniqueKey":"data.sentCase.leadAttorneyName.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.sentCase.leadAttorneyName","typeLabel":"string | null"},"leadAttorneyEmail":{"oneOf":[{"type":"string","format":"email","description":"Lead attorney email at the receiving firm; null until set.","uniqueKey":"data.sentCase.leadAttorneyEmail.oneOf.0","typeLabel":"string\u003cemail>"},{"type":"null","format":"email","description":"Lead attorney email at the receiving firm; null until set.","uniqueKey":"data.sentCase.leadAttorneyEmail.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.sentCase.leadAttorneyEmail","typeLabel":"string\u003cemail> | null"},"handlingTeamName":{"oneOf":[{"type":"string","description":"Team handling the case at the receiving firm; null until set.","uniqueKey":"data.sentCase.handlingTeamName.oneOf.0","typeLabel":"string"},{"type":"null","description":"Team handling the case at the receiving firm; null until set.","uniqueKey":"data.sentCase.handlingTeamName.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.sentCase.handlingTeamName","typeLabel":"string | null"},"handlingTeamEmail":{"oneOf":[{"type":"string","format":"email","description":"Shared email of the handling team; null until set.","uniqueKey":"data.sentCase.handlingTeamEmail.oneOf.0","typeLabel":"string\u003cemail>"},{"type":"null","format":"email","description":"Shared email of the handling team; null until set.","uniqueKey":"data.sentCase.handlingTeamEmail.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.sentCase.handlingTeamEmail","typeLabel":"string\u003cemail> | null"},"warmTransferSuccessful":{"type":"boolean","description":"Whether the warm transfer to the receiving firm succeeded.","uniqueKey":"data.sentCase.warmTransferSuccessful","typeLabel":"boolean"},"warmTransferUnsuccessfulReason":{"oneOf":[{"type":"string","description":"Free-text explanation when the warm transfer was unsuccessful. Only populated when warmTransferUnsuccessfulReasonType is OTHER. Unmasked here — this is the sending firm's own data.","uniqueKey":"data.sentCase.warmTransferUnsuccessfulReason.oneOf.0","typeLabel":"string"},{"type":"null","description":"Free-text explanation when the warm transfer was unsuccessful. Only populated when warmTransferUnsuccessfulReasonType is OTHER. Unmasked here — this is the sending firm's own data.","uniqueKey":"data.sentCase.warmTransferUnsuccessfulReason.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.sentCase.warmTransferUnsuccessfulReason","typeLabel":"string | null"},"warmTransferUnsuccessfulReasonType":{"oneOf":[{"type":"string","enum":["FIRM_UNABLE_TO_ANSWER","CLIENT_UNABLE_TO_CONTINUE","OTHER","TRACKING_ONLY","SPIN_OFF_PRIMARY_TRANSFERRED"],"description":"Reason category when the warm transfer did not succeed. FIRM_UNABLE_TO_ANSWER, CLIENT_UNABLE_TO_CONTINUE and OTHER record a failed warm transfer. TRACKING_ONLY (sent after the fact, for tracking only) and SPIN_OFF_PRIMARY_TRANSFERRED (a spin-off case whose primary case was warm transferred) mean no warm transfer was meant to happen, and are not failures. Unmasked here — this is the sending firm's own data.","uniqueKey":"data.sentCase.warmTransferUnsuccessfulReasonType.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","enum":["FIRM_UNABLE_TO_ANSWER","CLIENT_UNABLE_TO_CONTINUE","OTHER","TRACKING_ONLY","SPIN_OFF_PRIMARY_TRANSFERRED"],"description":"Reason category when the warm transfer did not succeed. FIRM_UNABLE_TO_ANSWER, CLIENT_UNABLE_TO_CONTINUE and OTHER record a failed warm transfer. TRACKING_ONLY (sent after the fact, for tracking only) and SPIN_OFF_PRIMARY_TRANSFERRED (a spin-off case whose primary case was warm transferred) mean no warm transfer was meant to happen, and are not failures. Unmasked here — this is the sending firm's own data.","uniqueKey":"data.sentCase.warmTransferUnsuccessfulReasonType.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.sentCase.warmTransferUnsuccessfulReasonType","typeLabel":"enum\u003cstring> | null"},"netFeeToSendingFirm":{"oneOf":[{"type":"number","description":"attorneyFees × the receiving firm's stamped sending-firm percentage ÷ 100, rounded to cents (the percentage itself is not exposed on this resource); at 33.33% it is exactly one third of attorneyFees. Null when either input is missing or zero.","uniqueKey":"data.sentCase.netFeeToSendingFirm.oneOf.0","typeLabel":"number"},{"type":"null","description":"attorneyFees × the receiving firm's stamped sending-firm percentage ÷ 100, rounded to cents (the percentage itself is not exposed on this resource); at 33.33% it is exactly one third of attorneyFees. Null when either input is missing or zero.","uniqueKey":"data.sentCase.netFeeToSendingFirm.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.sentCase.netFeeToSendingFirm","typeLabel":"number | null"},"netFeeToHandlingFirm":{"oneOf":[{"type":"number","description":"attorneyFees − netFeeToSendingFirm. Null when netFeeToSendingFirm is null.","uniqueKey":"data.sentCase.netFeeToHandlingFirm.oneOf.0","typeLabel":"number"},{"type":"null","description":"attorneyFees − netFeeToSendingFirm. Null when netFeeToSendingFirm is null.","uniqueKey":"data.sentCase.netFeeToHandlingFirm.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.sentCase.netFeeToHandlingFirm","typeLabel":"number | null"},"resolutionDate":{"oneOf":[{"type":"string","format":"date-time","description":"When the outcome was recorded: the most recent transition into CLOSING, or into WON/LOST for legacy referrals that never passed through CLOSING.","uniqueKey":"data.sentCase.resolutionDate.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","format":"date-time","description":"When the outcome was recorded: the most recent transition into CLOSING, or into WON/LOST for legacy referrals that never passed through CLOSING.","uniqueKey":"data.sentCase.resolutionDate.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.sentCase.resolutionDate","typeLabel":"string\u003cdate-time> | null"},"closedDate":{"oneOf":[{"type":"string","format":"date-time","description":"The most recent transition into CLOSED.","uniqueKey":"data.sentCase.closedDate.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","format":"date-time","description":"The most recent transition into CLOSED.","uniqueKey":"data.sentCase.closedDate.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.sentCase.closedDate","typeLabel":"string\u003cdate-time> | null"},"statuteOfLimitationsExpiration":{"oneOf":[{"type":"string","format":"date-time","uniqueKey":"data.sentCase.statuteOfLimitationsExpiration.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","format":"date-time","uniqueKey":"data.sentCase.statuteOfLimitationsExpiration.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.sentCase.statuteOfLimitationsExpiration","typeLabel":"string\u003cdate-time> | null"},"phase":{"oneOf":[{"type":"string","uniqueKey":"data.sentCase.phase.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"data.sentCase.phase.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.sentCase.phase","typeLabel":"string | null"},"requiresUpdate":{"type":"boolean","uniqueKey":"data.sentCase.requiresUpdate","typeLabel":"boolean"},"customFields":{"type":"array","items":{"type":"object","description":"A resolved custom field value on a referral.","properties":{"fieldId":{"type":"string","format":"uuid","isRequired":true,"uniqueKey":"data.sentCase.customFields.items.[INDEX].fieldId","typeLabel":"string\u003cuuid>"},"fieldName":{"type":"string","description":"System name of the field","isRequired":true,"uniqueKey":"data.sentCase.customFields.items.[INDEX].fieldName","typeLabel":"string"},"displayName":{"type":"string","isRequired":true,"uniqueKey":"data.sentCase.customFields.items.[INDEX].displayName","typeLabel":"string"},"fieldType":{"type":"string","isRequired":true,"uniqueKey":"data.sentCase.customFields.items.[INDEX].fieldType","typeLabel":"string"},"value":{"oneOf":[{"type":"string","isRequired":true,"uniqueKey":"data.sentCase.customFields.items.[INDEX].value.oneOf.0","typeLabel":"string"},{"type":"null","isRequired":true,"uniqueKey":"data.sentCase.customFields.items.[INDEX].value.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.sentCase.customFields.items.[INDEX].value","typeLabel":"string | null"}},"required":["fieldId","fieldName","displayName","fieldType","value"],"uniqueKey":"data.sentCase.customFields.items.[INDEX]","typeLabel":"object"},"uniqueKey":"data.sentCase.customFields","typeLabel":"object[]"},"referrals":{"type":"array","description":"All referrals on this case, most recent first.","items":{"type":"object","description":"One referral on a sent case, most recent first. Carries that referral's own settlement and outcome so a re-referred case shows each attempt, not just the most recent one flattened onto the parent. sendingFirmPercentage and isRetainerSigned are receiver-managed and omitted.","properties":{"id":{"type":"string","format":"uuid","uniqueKey":"data.sentCase.referrals.items.[INDEX].id","typeLabel":"string\u003cuuid>"},"lookNumber":{"oneOf":[{"type":"integer","minimum":1,"description":"Which look of its case this referral is: 1 for the first look, 2 for the next look after a rejection, withdrawal or expiry, and so on. Counts every look: re-referred by hand, sent by the Automatic Second Look, or recorded from the sending firm's case history.","uniqueKey":"data.sentCase.referrals.items.[INDEX].lookNumber.oneOf.0","typeLabel":"integer"},{"type":"null","minimum":1,"description":"Which look of its case this referral is: 1 for the first look, 2 for the next look after a rejection, withdrawal or expiry, and so on. Counts every look: re-referred by hand, sent by the Automatic Second Look, or recorded from the sending firm's case history.","uniqueKey":"data.sentCase.referrals.items.[INDEX].lookNumber.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.sentCase.referrals.items.[INDEX].lookNumber","typeLabel":"integer | null"},"lookType":{"oneOf":[{"type":"string","enum":["first","re_referral","auto_second_look"],"description":"How this look happened: first (the first look), re_referral (a later look the sending firm sent), or auto_second_look (a later look the Automatic Second Look sent).","uniqueKey":"data.sentCase.referrals.items.[INDEX].lookType.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","enum":["first","re_referral","auto_second_look"],"description":"How this look happened: first (the first look), re_referral (a later look the sending firm sent), or auto_second_look (a later look the Automatic Second Look sent).","uniqueKey":"data.sentCase.referrals.items.[INDEX].lookType.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.sentCase.referrals.items.[INDEX].lookType","typeLabel":"enum\u003cstring> | null"},"isLatestLook":{"oneOf":[{"type":"boolean","description":"Whether this is the case's current look. Null when the case's current look is unknown.","uniqueKey":"data.sentCase.referrals.items.[INDEX].isLatestLook.oneOf.0","typeLabel":"boolean"},{"type":"null","description":"Whether this is the case's current look. Null when the case's current look is unknown.","uniqueKey":"data.sentCase.referrals.items.[INDEX].isLatestLook.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.sentCase.referrals.items.[INDEX].isLatestLook","typeLabel":"boolean | null"},"referentFirmId":{"oneOf":[{"type":"string","format":"uuid","uniqueKey":"data.sentCase.referrals.items.[INDEX].referentFirmId.oneOf.0","typeLabel":"string\u003cuuid>"},{"type":"null","format":"uuid","uniqueKey":"data.sentCase.referrals.items.[INDEX].referentFirmId.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.sentCase.referrals.items.[INDEX].referentFirmId","typeLabel":"string\u003cuuid> | null"},"referentFirmName":{"oneOf":[{"type":"string","uniqueKey":"data.sentCase.referrals.items.[INDEX].referentFirmName.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"data.sentCase.referrals.items.[INDEX].referentFirmName.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.sentCase.referrals.items.[INDEX].referentFirmName","typeLabel":"string | null"},"status":{"type":"string","description":"CaseStatus enum value","uniqueKey":"data.sentCase.referrals.items.[INDEX].status","typeLabel":"string"},"closingStatus":{"oneOf":[{"type":"string","enum":["won_settled","lost","no_longer_pursuing"],"description":"ClosingStatus enum value; null until the closing workflow starts.","uniqueKey":"data.sentCase.referrals.items.[INDEX].closingStatus.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","enum":["won_settled","lost","no_longer_pursuing"],"description":"ClosingStatus enum value; null until the closing workflow starts.","uniqueKey":"data.sentCase.referrals.items.[INDEX].closingStatus.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.sentCase.referrals.items.[INDEX].closingStatus","typeLabel":"enum\u003cstring> | null"},"payoutType":{"oneOf":[{"type":"string","enum":["lump_sum","structured","hybrid","other"],"description":"How settlement funds are distributed; null until set during closing.","uniqueKey":"data.sentCase.referrals.items.[INDEX].payoutType.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","enum":["lump_sum","structured","hybrid","other"],"description":"How settlement funds are distributed; null until set during closing.","uniqueKey":"data.sentCase.referrals.items.[INDEX].payoutType.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.sentCase.referrals.items.[INDEX].payoutType","typeLabel":"enum\u003cstring> | null"},"closureReason":{"oneOf":[{"type":"string","description":"Free-text reason recorded when the referral is closed; null until then.","uniqueKey":"data.sentCase.referrals.items.[INDEX].closureReason.oneOf.0","typeLabel":"string"},{"type":"null","description":"Free-text reason recorded when the referral is closed; null until then.","uniqueKey":"data.sentCase.referrals.items.[INDEX].closureReason.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.sentCase.referrals.items.[INDEX].closureReason","typeLabel":"string | null"},"settlementAmount":{"oneOf":[{"type":"number","minimum":0,"maximum":1000000000,"description":"Final settlement amount in dollars; null until recorded.","uniqueKey":"data.sentCase.referrals.items.[INDEX].settlementAmount.oneOf.0","typeLabel":"number"},{"type":"null","minimum":0,"maximum":1000000000,"description":"Final settlement amount in dollars; null until recorded.","uniqueKey":"data.sentCase.referrals.items.[INDEX].settlementAmount.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.sentCase.referrals.items.[INDEX].settlementAmount","typeLabel":"number | null"},"attorneyFees":{"oneOf":[{"type":"number","minimum":0,"maximum":1000000000,"description":"Total attorney fees in dollars; null until recorded.","uniqueKey":"data.sentCase.referrals.items.[INDEX].attorneyFees.oneOf.0","typeLabel":"number"},{"type":"null","minimum":0,"maximum":1000000000,"description":"Total attorney fees in dollars; null until recorded.","uniqueKey":"data.sentCase.referrals.items.[INDEX].attorneyFees.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.sentCase.referrals.items.[INDEX].attorneyFees","typeLabel":"number | null"},"clientFeeAgreementPercentage":{"oneOf":[{"type":"number","minimum":0,"maximum":1,"description":"Client fee agreement as a FRACTION of the settlement, 0–1 (0.3333 = 33.33%). Not a whole percent — contrast with sendingFirmPercentage.","uniqueKey":"data.sentCase.referrals.items.[INDEX].clientFeeAgreementPercentage.oneOf.0","typeLabel":"number"},{"type":"null","minimum":0,"maximum":1,"description":"Client fee agreement as a FRACTION of the settlement, 0–1 (0.3333 = 33.33%). Not a whole percent — contrast with sendingFirmPercentage.","uniqueKey":"data.sentCase.referrals.items.[INDEX].clientFeeAgreementPercentage.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.sentCase.referrals.items.[INDEX].clientFeeAgreementPercentage","typeLabel":"number | null"},"projectedSettlementAmount":{"oneOf":[{"type":"number","minimum":0,"maximum":1000000000,"description":"Projected settlement amount in dollars, set while the case is open; null until estimated.","uniqueKey":"data.sentCase.referrals.items.[INDEX].projectedSettlementAmount.oneOf.0","typeLabel":"number"},{"type":"null","minimum":0,"maximum":1000000000,"description":"Projected settlement amount in dollars, set while the case is open; null until estimated.","uniqueKey":"data.sentCase.referrals.items.[INDEX].projectedSettlementAmount.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.sentCase.referrals.items.[INDEX].projectedSettlementAmount","typeLabel":"number | null"},"estimatedDateOfResolution":{"oneOf":[{"type":"string","format":"date-time","description":"Estimated resolution date (date-only on input, ISO 8601 on output); null until estimated.","uniqueKey":"data.sentCase.referrals.items.[INDEX].estimatedDateOfResolution.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","format":"date-time","description":"Estimated resolution date (date-only on input, ISO 8601 on output); null until estimated.","uniqueKey":"data.sentCase.referrals.items.[INDEX].estimatedDateOfResolution.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.sentCase.referrals.items.[INDEX].estimatedDateOfResolution","typeLabel":"string\u003cdate-time> | null"},"estimatedDistributionDate":{"oneOf":[{"type":"string","format":"date-time","description":"Estimated distribution date (date-only on input, ISO 8601 on output); null until estimated.","uniqueKey":"data.sentCase.referrals.items.[INDEX].estimatedDistributionDate.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","format":"date-time","description":"Estimated distribution date (date-only on input, ISO 8601 on output); null until estimated.","uniqueKey":"data.sentCase.referrals.items.[INDEX].estimatedDistributionDate.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.sentCase.referrals.items.[INDEX].estimatedDistributionDate","typeLabel":"string\u003cdate-time> | null"},"leadAttorneyName":{"oneOf":[{"type":"string","description":"Lead attorney at the receiving firm; null until set.","uniqueKey":"data.sentCase.referrals.items.[INDEX].leadAttorneyName.oneOf.0","typeLabel":"string"},{"type":"null","description":"Lead attorney at the receiving firm; null until set.","uniqueKey":"data.sentCase.referrals.items.[INDEX].leadAttorneyName.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.sentCase.referrals.items.[INDEX].leadAttorneyName","typeLabel":"string | null"},"leadAttorneyEmail":{"oneOf":[{"type":"string","format":"email","description":"Lead attorney email at the receiving firm; null until set.","uniqueKey":"data.sentCase.referrals.items.[INDEX].leadAttorneyEmail.oneOf.0","typeLabel":"string\u003cemail>"},{"type":"null","format":"email","description":"Lead attorney email at the receiving firm; null until set.","uniqueKey":"data.sentCase.referrals.items.[INDEX].leadAttorneyEmail.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.sentCase.referrals.items.[INDEX].leadAttorneyEmail","typeLabel":"string\u003cemail> | null"},"handlingTeamName":{"oneOf":[{"type":"string","description":"Team handling the case at the receiving firm; null until set.","uniqueKey":"data.sentCase.referrals.items.[INDEX].handlingTeamName.oneOf.0","typeLabel":"string"},{"type":"null","description":"Team handling the case at the receiving firm; null until set.","uniqueKey":"data.sentCase.referrals.items.[INDEX].handlingTeamName.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.sentCase.referrals.items.[INDEX].handlingTeamName","typeLabel":"string | null"},"handlingTeamEmail":{"oneOf":[{"type":"string","format":"email","description":"Shared email of the handling team; null until set.","uniqueKey":"data.sentCase.referrals.items.[INDEX].handlingTeamEmail.oneOf.0","typeLabel":"string\u003cemail>"},{"type":"null","format":"email","description":"Shared email of the handling team; null until set.","uniqueKey":"data.sentCase.referrals.items.[INDEX].handlingTeamEmail.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.sentCase.referrals.items.[INDEX].handlingTeamEmail","typeLabel":"string\u003cemail> | null"},"netFeeToSendingFirm":{"oneOf":[{"type":"number","description":"attorneyFees × the receiving firm's stamped sending-firm percentage ÷ 100, rounded to cents (the percentage itself is not exposed on this resource); at 33.33% it is exactly one third of attorneyFees. Null when either input is missing or zero.","uniqueKey":"data.sentCase.referrals.items.[INDEX].netFeeToSendingFirm.oneOf.0","typeLabel":"number"},{"type":"null","description":"attorneyFees × the receiving firm's stamped sending-firm percentage ÷ 100, rounded to cents (the percentage itself is not exposed on this resource); at 33.33% it is exactly one third of attorneyFees. Null when either input is missing or zero.","uniqueKey":"data.sentCase.referrals.items.[INDEX].netFeeToSendingFirm.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.sentCase.referrals.items.[INDEX].netFeeToSendingFirm","typeLabel":"number | null"},"netFeeToHandlingFirm":{"oneOf":[{"type":"number","description":"attorneyFees − netFeeToSendingFirm. Null when netFeeToSendingFirm is null.","uniqueKey":"data.sentCase.referrals.items.[INDEX].netFeeToHandlingFirm.oneOf.0","typeLabel":"number"},{"type":"null","description":"attorneyFees − netFeeToSendingFirm. Null when netFeeToSendingFirm is null.","uniqueKey":"data.sentCase.referrals.items.[INDEX].netFeeToHandlingFirm.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.sentCase.referrals.items.[INDEX].netFeeToHandlingFirm","typeLabel":"number | null"},"resolutionDate":{"oneOf":[{"type":"string","format":"date-time","description":"When the outcome was recorded: the most recent transition into CLOSING, or into WON/LOST for legacy referrals that never passed through CLOSING.","uniqueKey":"data.sentCase.referrals.items.[INDEX].resolutionDate.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","format":"date-time","description":"When the outcome was recorded: the most recent transition into CLOSING, or into WON/LOST for legacy referrals that never passed through CLOSING.","uniqueKey":"data.sentCase.referrals.items.[INDEX].resolutionDate.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.sentCase.referrals.items.[INDEX].resolutionDate","typeLabel":"string\u003cdate-time> | null"},"closedDate":{"oneOf":[{"type":"string","format":"date-time","description":"The most recent transition into CLOSED.","uniqueKey":"data.sentCase.referrals.items.[INDEX].closedDate.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","format":"date-time","description":"The most recent transition into CLOSED.","uniqueKey":"data.sentCase.referrals.items.[INDEX].closedDate.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.sentCase.referrals.items.[INDEX].closedDate","typeLabel":"string\u003cdate-time> | null"},"notes":{"oneOf":[{"type":"string","uniqueKey":"data.sentCase.referrals.items.[INDEX].notes.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"data.sentCase.referrals.items.[INDEX].notes.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.sentCase.referrals.items.[INDEX].notes","typeLabel":"string | null"},"createdBy":{"oneOf":[{"type":"string","format":"uuid","uniqueKey":"data.sentCase.referrals.items.[INDEX].createdBy.oneOf.0","typeLabel":"string\u003cuuid>"},{"type":"null","format":"uuid","uniqueKey":"data.sentCase.referrals.items.[INDEX].createdBy.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.sentCase.referrals.items.[INDEX].createdBy","typeLabel":"string\u003cuuid> | null"},"lastUpdatedBy":{"oneOf":[{"type":"string","format":"uuid","uniqueKey":"data.sentCase.referrals.items.[INDEX].lastUpdatedBy.oneOf.0","typeLabel":"string\u003cuuid>"},{"type":"null","format":"uuid","uniqueKey":"data.sentCase.referrals.items.[INDEX].lastUpdatedBy.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.sentCase.referrals.items.[INDEX].lastUpdatedBy","typeLabel":"string\u003cuuid> | null"},"createdAt":{"type":"string","format":"date-time","uniqueKey":"data.sentCase.referrals.items.[INDEX].createdAt","typeLabel":"string\u003cdate-time>"},"updatedAt":{"type":"string","format":"date-time","uniqueKey":"data.sentCase.referrals.items.[INDEX].updatedAt","typeLabel":"string\u003cdate-time>"}},"uniqueKey":"data.sentCase.referrals.items.[INDEX]","typeLabel":"object"},"uniqueKey":"data.sentCase.referrals","typeLabel":"object[]"}},"isRequired":true,"uniqueKey":"data.sentCase","typeLabel":"object"}},"required":["attempt","sentCase"],"isRequired":true,"uniqueKey":"data","typeLabel":"object"},"meta":{"type":"object","properties":{"requestId":{"type":"string","example":"req_f2dbe1d3f6ad4a7bb5b4c9f2","isRequired":true,"uniqueKey":"meta.requestId","typeLabel":"string"},"timestamp":{"type":"string","format":"date-time","isRequired":true,"uniqueKey":"meta.timestamp","typeLabel":"string\u003cdate-time>"}},"required":["requestId","timestamp"],"isRequired":true,"uniqueKey":"meta","typeLabel":"object"}},"required":["data","meta"],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"data":{"attempt":{"id":"3c90c3cc-0d44-4b50-8888-8dd25736052a","state":"processing","idempotencyKey":"3c90c3cc-0d44-4b50-8888-8dd25736052a","replay":true},"sentCase":{"id":"3c90c3cc-0d44-4b50-8888-8dd25736052a","referenceNumber":"ABC-0001","salesforceId":"\u003cstring>","salesforceObjectType":"\u003cstring>","title":"\u003cstring>","description":"\u003cstring>","caseType":"\u003cstring>","jurisdiction":"\u003cstring>","caseCounty":"\u003cstring>","caseCountySource":"sender","casePostalCode":"\u003cstring>","county":"\u003cstring>","countySource":"sender","clientAddress1":"\u003cstring>","clientAddress2":"\u003cstring>","clientCity":"\u003cstring>","clientPostalCode":"\u003cstring>","clientState":"\u003cstring>","clientFirstName":"\u003cstring>","clientLastName":"\u003cstring>","clientEmail":"jsmith@example.com","clientPhone":"\u003cstring>","clientDateOfBirth":"2023-11-07T05:31:56Z","incidentDate":"2023-11-07T05:31:56Z","tier":3,"ratedTier":3,"ratingNotes":"\u003cstring>","source":"\u003cstring>","isTestCase":true,"createdBy":"3c90c3cc-0d44-4b50-8888-8dd25736052a","createdAt":"2023-11-07T05:31:56Z","updatedAt":"2023-11-07T05:31:56Z","status":"\u003cstring>","lookNumber":2,"lookType":"first","closingStatus":"won_settled","payoutType":"lump_sum","closureReason":"\u003cstring>","settlementAmount":500000000,"attorneyFees":500000000,"clientFeeAgreementPercentage":0.5,"projectedSettlementAmount":500000000,"estimatedDateOfResolution":"2023-11-07T05:31:56Z","estimatedDistributionDate":"2023-11-07T05:31:56Z","leadAttorneyName":"\u003cstring>","leadAttorneyEmail":"jsmith@example.com","handlingTeamName":"\u003cstring>","handlingTeamEmail":"jsmith@example.com","warmTransferSuccessful":true,"warmTransferUnsuccessfulReason":"\u003cstring>","warmTransferUnsuccessfulReasonType":"FIRM_UNABLE_TO_ANSWER","netFeeToSendingFirm":123,"netFeeToHandlingFirm":123,"resolutionDate":"2023-11-07T05:31:56Z","closedDate":"2023-11-07T05:31:56Z","statuteOfLimitationsExpiration":"2023-11-07T05:31:56Z","phase":"\u003cstring>","requiresUpdate":true,"customFields":[{"fieldId":"3c90c3cc-0d44-4b50-8888-8dd25736052a","fieldName":"\u003cstring>","displayName":"\u003cstring>","fieldType":"\u003cstring>","value":"\u003cstring>"}],"referrals":[{"id":"3c90c3cc-0d44-4b50-8888-8dd25736052a","lookNumber":2,"lookType":"first","isLatestLook":true,"referentFirmId":"3c90c3cc-0d44-4b50-8888-8dd25736052a","referentFirmName":"\u003cstring>","status":"\u003cstring>","closingStatus":"won_settled","payoutType":"lump_sum","closureReason":"\u003cstring>","settlementAmount":500000000,"attorneyFees":500000000,"clientFeeAgreementPercentage":0.5,"projectedSettlementAmount":500000000,"estimatedDateOfResolution":"2023-11-07T05:31:56Z","estimatedDistributionDate":"2023-11-07T05:31:56Z","leadAttorneyName":"\u003cstring>","leadAttorneyEmail":"jsmith@example.com","handlingTeamName":"\u003cstring>","handlingTeamEmail":"jsmith@example.com","netFeeToSendingFirm":123,"netFeeToHandlingFirm":123,"resolutionDate":"2023-11-07T05:31:56Z","closedDate":"2023-11-07T05:31:56Z","notes":"\u003cstring>","createdBy":"3c90c3cc-0d44-4b50-8888-8dd25736052a","lastUpdatedBy":"3c90c3cc-0d44-4b50-8888-8dd25736052a","createdAt":"2023-11-07T05:31:56Z","updatedAt":"2023-11-07T05:31:56Z"}]}},"meta":{"requestId":"req_f2dbe1d3f6ad4a7bb5b4c9f2","timestamp":"2023-11-07T05:31:56Z"}}}},"exampleType":"generated"}},"exampleType":"generated"},"538c5ca5-bae4-4153-8037-d5d51f898c6a":{"description":"New case created (or re-referred) from the source record","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","description":"Result of a durable, idempotent interactive send/re-refer (spec §7.2). `attempt.state` tells the org client where write-back stands: 'writeback_pending' means the bridge fields will be stamped by the writeback job; 'completed' means they already have been. 'superseded' (terminal, returned on replay) means a later re-refer superseded this attempt's referral, so nothing is left to stamp. There is no status-check endpoint: the only signal that write-back finished is the bridge fields appearing on the source Salesforce record (typically within ~5 minutes). A send that exhausts its retries becomes 'needs_attention' and is paused for an admin WITHOUT signalling the org, so clients should treat a still-unstamped record after a timeout as stale rather than poll indefinitely.","properties":{"attempt":{"type":"object","properties":{"id":{"type":"string","format":"uuid","isRequired":true,"uniqueKey":"data.attempt.id","typeLabel":"string\u003cuuid>"},"state":{"type":"string","enum":["processing","writeback_pending","completed","needs_attention","superseded","failed"],"description":"Attempt lifecycle state.","isRequired":true,"uniqueKey":"data.attempt.state","typeLabel":"enum\u003cstring>"},"idempotencyKey":{"type":"string","format":"uuid","isRequired":true,"uniqueKey":"data.attempt.idempotencyKey","typeLabel":"string\u003cuuid>"},"replay":{"type":"boolean","description":"True when this response replays a previously processed idempotency key (a genuine retry of the same submit) rather than a freshly created send.","isRequired":true,"uniqueKey":"data.attempt.replay","typeLabel":"boolean"}},"required":["id","state","idempotencyKey","replay"],"isRequired":true,"uniqueKey":"data.attempt","typeLabel":"object"},"sentCase":{"type":"object","description":"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.","properties":{"id":{"type":"string","format":"uuid","description":"Base case UUID","uniqueKey":"data.sentCase.id","typeLabel":"string\u003cuuid>"},"referenceNumber":{"oneOf":[{"type":"string","example":"ABC-0001","uniqueKey":"data.sentCase.referenceNumber.oneOf.0","typeLabel":"string"},{"type":"null","example":"ABC-0001","uniqueKey":"data.sentCase.referenceNumber.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.sentCase.referenceNumber","typeLabel":"string | null"},"salesforceId":{"oneOf":[{"type":"string","uniqueKey":"data.sentCase.salesforceId.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"data.sentCase.salesforceId.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.sentCase.salesforceId","typeLabel":"string | null"},"salesforceObjectType":{"oneOf":[{"type":"string","uniqueKey":"data.sentCase.salesforceObjectType.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"data.sentCase.salesforceObjectType.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.sentCase.salesforceObjectType","typeLabel":"string | null"},"title":{"oneOf":[{"type":"string","uniqueKey":"data.sentCase.title.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"data.sentCase.title.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.sentCase.title","typeLabel":"string | null"},"description":{"oneOf":[{"type":"string","uniqueKey":"data.sentCase.description.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"data.sentCase.description.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.sentCase.description","typeLabel":"string | null"},"caseType":{"oneOf":[{"type":"string","uniqueKey":"data.sentCase.caseType.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"data.sentCase.caseType.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.sentCase.caseType","typeLabel":"string | null"},"jurisdiction":{"oneOf":[{"type":"string","uniqueKey":"data.sentCase.jurisdiction.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"data.sentCase.jurisdiction.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.sentCase.jurisdiction","typeLabel":"string | null"},"caseCounty":{"oneOf":[{"type":"string","description":"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.","uniqueKey":"data.sentCase.caseCounty.oneOf.0","typeLabel":"string"},{"type":"null","description":"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.","uniqueKey":"data.sentCase.caseCounty.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.sentCase.caseCounty","typeLabel":"string | null"},"caseCountySource":{"oneOf":[{"type":"string","enum":["sender","case_zip","client_zip"],"description":"How caseCounty was filled.","uniqueKey":"data.sentCase.caseCountySource.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","enum":["sender","case_zip","client_zip"],"description":"How caseCounty was filled.","uniqueKey":"data.sentCase.caseCountySource.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.sentCase.caseCountySource","typeLabel":"enum\u003cstring> | null"},"casePostalCode":{"oneOf":[{"type":"string","description":"Zip of the case's own location.","uniqueKey":"data.sentCase.casePostalCode.oneOf.0","typeLabel":"string"},{"type":"null","description":"Zip of the case's own location.","uniqueKey":"data.sentCase.casePostalCode.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.sentCase.casePostalCode","typeLabel":"string | null"},"county":{"oneOf":[{"type":"string","description":"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.","uniqueKey":"data.sentCase.county.oneOf.0","typeLabel":"string"},{"type":"null","description":"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.","uniqueKey":"data.sentCase.county.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.sentCase.county","typeLabel":"string | null"},"countySource":{"oneOf":[{"type":"string","enum":["sender","client_zip"],"description":"How county was filled.","uniqueKey":"data.sentCase.countySource.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","enum":["sender","client_zip"],"description":"How county was filled.","uniqueKey":"data.sentCase.countySource.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.sentCase.countySource","typeLabel":"enum\u003cstring> | null"},"clientAddress1":{"oneOf":[{"type":"string","uniqueKey":"data.sentCase.clientAddress1.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"data.sentCase.clientAddress1.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.sentCase.clientAddress1","typeLabel":"string | null"},"clientAddress2":{"oneOf":[{"type":"string","uniqueKey":"data.sentCase.clientAddress2.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"data.sentCase.clientAddress2.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.sentCase.clientAddress2","typeLabel":"string | null"},"clientCity":{"oneOf":[{"type":"string","uniqueKey":"data.sentCase.clientCity.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"data.sentCase.clientCity.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.sentCase.clientCity","typeLabel":"string | null"},"clientPostalCode":{"oneOf":[{"type":"string","uniqueKey":"data.sentCase.clientPostalCode.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"data.sentCase.clientPostalCode.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.sentCase.clientPostalCode","typeLabel":"string | null"},"clientState":{"oneOf":[{"type":"string","description":"Two-letter state of the client's zip.","uniqueKey":"data.sentCase.clientState.oneOf.0","typeLabel":"string"},{"type":"null","description":"Two-letter state of the client's zip.","uniqueKey":"data.sentCase.clientState.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.sentCase.clientState","typeLabel":"string | null"},"clientFirstName":{"oneOf":[{"type":"string","uniqueKey":"data.sentCase.clientFirstName.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"data.sentCase.clientFirstName.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.sentCase.clientFirstName","typeLabel":"string | null"},"clientLastName":{"oneOf":[{"type":"string","uniqueKey":"data.sentCase.clientLastName.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"data.sentCase.clientLastName.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.sentCase.clientLastName","typeLabel":"string | null"},"clientEmail":{"oneOf":[{"type":"string","format":"email","uniqueKey":"data.sentCase.clientEmail.oneOf.0","typeLabel":"string\u003cemail>"},{"type":"null","format":"email","uniqueKey":"data.sentCase.clientEmail.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.sentCase.clientEmail","typeLabel":"string\u003cemail> | null"},"clientPhone":{"oneOf":[{"type":"string","uniqueKey":"data.sentCase.clientPhone.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"data.sentCase.clientPhone.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.sentCase.clientPhone","typeLabel":"string | null"},"clientDateOfBirth":{"oneOf":[{"type":"string","format":"date-time","uniqueKey":"data.sentCase.clientDateOfBirth.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","format":"date-time","uniqueKey":"data.sentCase.clientDateOfBirth.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.sentCase.clientDateOfBirth","typeLabel":"string\u003cdate-time> | null"},"incidentDate":{"oneOf":[{"type":"string","format":"date-time","uniqueKey":"data.sentCase.incidentDate.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","format":"date-time","uniqueKey":"data.sentCase.incidentDate.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.sentCase.incidentDate","typeLabel":"string\u003cdate-time> | null"},"tier":{"oneOf":[{"type":"integer","minimum":1,"maximum":5,"description":"Sender-assigned case rating: potential damages, 5 = largest and highest priority, 1 = smallest and lowest. Distinct from the API key access tier. Null when unrated.","uniqueKey":"data.sentCase.tier.oneOf.0","typeLabel":"integer"},{"type":"null","minimum":1,"maximum":5,"description":"Sender-assigned case rating: potential damages, 5 = largest and highest priority, 1 = smallest and lowest. Distinct from the API key access tier. Null when unrated.","uniqueKey":"data.sentCase.tier.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.sentCase.tier","typeLabel":"integer | null"},"ratedTier":{"oneOf":[{"type":"integer","minimum":1,"maximum":5,"description":"Reserved for a future rating workflow; not currently populated.","uniqueKey":"data.sentCase.ratedTier.oneOf.0","typeLabel":"integer"},{"type":"null","minimum":1,"maximum":5,"description":"Reserved for a future rating workflow; not currently populated.","uniqueKey":"data.sentCase.ratedTier.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.sentCase.ratedTier","typeLabel":"integer | null"},"ratingNotes":{"oneOf":[{"type":"string","description":"Reserved for a future rating workflow; not currently populated.","uniqueKey":"data.sentCase.ratingNotes.oneOf.0","typeLabel":"string"},{"type":"null","description":"Reserved for a future rating workflow; not currently populated.","uniqueKey":"data.sentCase.ratingNotes.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.sentCase.ratingNotes","typeLabel":"string | null"},"source":{"oneOf":[{"type":"string","uniqueKey":"data.sentCase.source.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"data.sentCase.source.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.sentCase.source","typeLabel":"string | null"},"isTestCase":{"type":"boolean","uniqueKey":"data.sentCase.isTestCase","typeLabel":"boolean"},"createdBy":{"type":"string","format":"uuid","uniqueKey":"data.sentCase.createdBy","typeLabel":"string\u003cuuid>"},"createdAt":{"type":"string","format":"date-time","uniqueKey":"data.sentCase.createdAt","typeLabel":"string\u003cdate-time>"},"updatedAt":{"type":"string","format":"date-time","uniqueKey":"data.sentCase.updatedAt","typeLabel":"string\u003cdate-time>"},"status":{"type":"string","description":"Most recent referral's CaseStatus; `draft` when the case has no referral.","uniqueKey":"data.sentCase.status","typeLabel":"string"},"lookNumber":{"oneOf":[{"type":"integer","minimum":1,"description":"The number of the case's current look (the referral marked isLatestLook in referrals): 1 for the first look, 2 for the next look after a rejection, withdrawal or expiry, and so on. Counts every look: re-referred by hand, sent by the Automatic Second Look, or recorded from the sending firm's case history.","uniqueKey":"data.sentCase.lookNumber.oneOf.0","typeLabel":"integer"},{"type":"null","minimum":1,"description":"The number of the case's current look (the referral marked isLatestLook in referrals): 1 for the first look, 2 for the next look after a rejection, withdrawal or expiry, and so on. Counts every look: re-referred by hand, sent by the Automatic Second Look, or recorded from the sending firm's case history.","uniqueKey":"data.sentCase.lookNumber.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.sentCase.lookNumber","typeLabel":"integer | null"},"lookType":{"oneOf":[{"type":"string","enum":["first","re_referral","auto_second_look"],"description":"How the case's current look happened: first (the first look), re_referral (a later look the sending firm sent), or auto_second_look (a later look the Automatic Second Look sent).","uniqueKey":"data.sentCase.lookType.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","enum":["first","re_referral","auto_second_look"],"description":"How the case's current look happened: first (the first look), re_referral (a later look the sending firm sent), or auto_second_look (a later look the Automatic Second Look sent).","uniqueKey":"data.sentCase.lookType.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.sentCase.lookType","typeLabel":"enum\u003cstring> | null"},"closingStatus":{"oneOf":[{"type":"string","enum":["won_settled","lost","no_longer_pursuing"],"description":"ClosingStatus enum value; null until the closing workflow starts.","uniqueKey":"data.sentCase.closingStatus.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","enum":["won_settled","lost","no_longer_pursuing"],"description":"ClosingStatus enum value; null until the closing workflow starts.","uniqueKey":"data.sentCase.closingStatus.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.sentCase.closingStatus","typeLabel":"enum\u003cstring> | null"},"payoutType":{"oneOf":[{"type":"string","enum":["lump_sum","structured","hybrid","other"],"description":"How settlement funds are distributed; null until set during closing.","uniqueKey":"data.sentCase.payoutType.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","enum":["lump_sum","structured","hybrid","other"],"description":"How settlement funds are distributed; null until set during closing.","uniqueKey":"data.sentCase.payoutType.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.sentCase.payoutType","typeLabel":"enum\u003cstring> | null"},"closureReason":{"oneOf":[{"type":"string","description":"Free-text reason recorded when the referral is closed; null until then.","uniqueKey":"data.sentCase.closureReason.oneOf.0","typeLabel":"string"},{"type":"null","description":"Free-text reason recorded when the referral is closed; null until then.","uniqueKey":"data.sentCase.closureReason.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.sentCase.closureReason","typeLabel":"string | null"},"settlementAmount":{"oneOf":[{"type":"number","minimum":0,"maximum":1000000000,"description":"Final settlement amount in dollars; null until recorded.","uniqueKey":"data.sentCase.settlementAmount.oneOf.0","typeLabel":"number"},{"type":"null","minimum":0,"maximum":1000000000,"description":"Final settlement amount in dollars; null until recorded.","uniqueKey":"data.sentCase.settlementAmount.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.sentCase.settlementAmount","typeLabel":"number | null"},"attorneyFees":{"oneOf":[{"type":"number","minimum":0,"maximum":1000000000,"description":"Total attorney fees in dollars; null until recorded.","uniqueKey":"data.sentCase.attorneyFees.oneOf.0","typeLabel":"number"},{"type":"null","minimum":0,"maximum":1000000000,"description":"Total attorney fees in dollars; null until recorded.","uniqueKey":"data.sentCase.attorneyFees.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.sentCase.attorneyFees","typeLabel":"number | null"},"clientFeeAgreementPercentage":{"oneOf":[{"type":"number","minimum":0,"maximum":1,"description":"Client fee agreement as a FRACTION of the settlement, 0–1 (0.3333 = 33.33%). Not a whole percent — contrast with sendingFirmPercentage.","uniqueKey":"data.sentCase.clientFeeAgreementPercentage.oneOf.0","typeLabel":"number"},{"type":"null","minimum":0,"maximum":1,"description":"Client fee agreement as a FRACTION of the settlement, 0–1 (0.3333 = 33.33%). Not a whole percent — contrast with sendingFirmPercentage.","uniqueKey":"data.sentCase.clientFeeAgreementPercentage.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.sentCase.clientFeeAgreementPercentage","typeLabel":"number | null"},"projectedSettlementAmount":{"oneOf":[{"type":"number","minimum":0,"maximum":1000000000,"description":"Projected settlement amount in dollars, set while the case is open; null until estimated.","uniqueKey":"data.sentCase.projectedSettlementAmount.oneOf.0","typeLabel":"number"},{"type":"null","minimum":0,"maximum":1000000000,"description":"Projected settlement amount in dollars, set while the case is open; null until estimated.","uniqueKey":"data.sentCase.projectedSettlementAmount.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.sentCase.projectedSettlementAmount","typeLabel":"number | null"},"estimatedDateOfResolution":{"oneOf":[{"type":"string","format":"date-time","description":"Estimated resolution date (date-only on input, ISO 8601 on output); null until estimated.","uniqueKey":"data.sentCase.estimatedDateOfResolution.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","format":"date-time","description":"Estimated resolution date (date-only on input, ISO 8601 on output); null until estimated.","uniqueKey":"data.sentCase.estimatedDateOfResolution.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.sentCase.estimatedDateOfResolution","typeLabel":"string\u003cdate-time> | null"},"estimatedDistributionDate":{"oneOf":[{"type":"string","format":"date-time","description":"Estimated distribution date (date-only on input, ISO 8601 on output); null until estimated.","uniqueKey":"data.sentCase.estimatedDistributionDate.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","format":"date-time","description":"Estimated distribution date (date-only on input, ISO 8601 on output); null until estimated.","uniqueKey":"data.sentCase.estimatedDistributionDate.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.sentCase.estimatedDistributionDate","typeLabel":"string\u003cdate-time> | null"},"leadAttorneyName":{"oneOf":[{"type":"string","description":"Lead attorney at the receiving firm; null until set.","uniqueKey":"data.sentCase.leadAttorneyName.oneOf.0","typeLabel":"string"},{"type":"null","description":"Lead attorney at the receiving firm; null until set.","uniqueKey":"data.sentCase.leadAttorneyName.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.sentCase.leadAttorneyName","typeLabel":"string | null"},"leadAttorneyEmail":{"oneOf":[{"type":"string","format":"email","description":"Lead attorney email at the receiving firm; null until set.","uniqueKey":"data.sentCase.leadAttorneyEmail.oneOf.0","typeLabel":"string\u003cemail>"},{"type":"null","format":"email","description":"Lead attorney email at the receiving firm; null until set.","uniqueKey":"data.sentCase.leadAttorneyEmail.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.sentCase.leadAttorneyEmail","typeLabel":"string\u003cemail> | null"},"handlingTeamName":{"oneOf":[{"type":"string","description":"Team handling the case at the receiving firm; null until set.","uniqueKey":"data.sentCase.handlingTeamName.oneOf.0","typeLabel":"string"},{"type":"null","description":"Team handling the case at the receiving firm; null until set.","uniqueKey":"data.sentCase.handlingTeamName.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.sentCase.handlingTeamName","typeLabel":"string | null"},"handlingTeamEmail":{"oneOf":[{"type":"string","format":"email","description":"Shared email of the handling team; null until set.","uniqueKey":"data.sentCase.handlingTeamEmail.oneOf.0","typeLabel":"string\u003cemail>"},{"type":"null","format":"email","description":"Shared email of the handling team; null until set.","uniqueKey":"data.sentCase.handlingTeamEmail.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.sentCase.handlingTeamEmail","typeLabel":"string\u003cemail> | null"},"warmTransferSuccessful":{"type":"boolean","description":"Whether the warm transfer to the receiving firm succeeded.","uniqueKey":"data.sentCase.warmTransferSuccessful","typeLabel":"boolean"},"warmTransferUnsuccessfulReason":{"oneOf":[{"type":"string","description":"Free-text explanation when the warm transfer was unsuccessful. Only populated when warmTransferUnsuccessfulReasonType is OTHER. Unmasked here — this is the sending firm's own data.","uniqueKey":"data.sentCase.warmTransferUnsuccessfulReason.oneOf.0","typeLabel":"string"},{"type":"null","description":"Free-text explanation when the warm transfer was unsuccessful. Only populated when warmTransferUnsuccessfulReasonType is OTHER. Unmasked here — this is the sending firm's own data.","uniqueKey":"data.sentCase.warmTransferUnsuccessfulReason.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.sentCase.warmTransferUnsuccessfulReason","typeLabel":"string | null"},"warmTransferUnsuccessfulReasonType":{"oneOf":[{"type":"string","enum":["FIRM_UNABLE_TO_ANSWER","CLIENT_UNABLE_TO_CONTINUE","OTHER","TRACKING_ONLY","SPIN_OFF_PRIMARY_TRANSFERRED"],"description":"Reason category when the warm transfer did not succeed. FIRM_UNABLE_TO_ANSWER, CLIENT_UNABLE_TO_CONTINUE and OTHER record a failed warm transfer. TRACKING_ONLY (sent after the fact, for tracking only) and SPIN_OFF_PRIMARY_TRANSFERRED (a spin-off case whose primary case was warm transferred) mean no warm transfer was meant to happen, and are not failures. Unmasked here — this is the sending firm's own data.","uniqueKey":"data.sentCase.warmTransferUnsuccessfulReasonType.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","enum":["FIRM_UNABLE_TO_ANSWER","CLIENT_UNABLE_TO_CONTINUE","OTHER","TRACKING_ONLY","SPIN_OFF_PRIMARY_TRANSFERRED"],"description":"Reason category when the warm transfer did not succeed. FIRM_UNABLE_TO_ANSWER, CLIENT_UNABLE_TO_CONTINUE and OTHER record a failed warm transfer. TRACKING_ONLY (sent after the fact, for tracking only) and SPIN_OFF_PRIMARY_TRANSFERRED (a spin-off case whose primary case was warm transferred) mean no warm transfer was meant to happen, and are not failures. Unmasked here — this is the sending firm's own data.","uniqueKey":"data.sentCase.warmTransferUnsuccessfulReasonType.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.sentCase.warmTransferUnsuccessfulReasonType","typeLabel":"enum\u003cstring> | null"},"netFeeToSendingFirm":{"oneOf":[{"type":"number","description":"attorneyFees × the receiving firm's stamped sending-firm percentage ÷ 100, rounded to cents (the percentage itself is not exposed on this resource); at 33.33% it is exactly one third of attorneyFees. Null when either input is missing or zero.","uniqueKey":"data.sentCase.netFeeToSendingFirm.oneOf.0","typeLabel":"number"},{"type":"null","description":"attorneyFees × the receiving firm's stamped sending-firm percentage ÷ 100, rounded to cents (the percentage itself is not exposed on this resource); at 33.33% it is exactly one third of attorneyFees. Null when either input is missing or zero.","uniqueKey":"data.sentCase.netFeeToSendingFirm.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.sentCase.netFeeToSendingFirm","typeLabel":"number | null"},"netFeeToHandlingFirm":{"oneOf":[{"type":"number","description":"attorneyFees − netFeeToSendingFirm. Null when netFeeToSendingFirm is null.","uniqueKey":"data.sentCase.netFeeToHandlingFirm.oneOf.0","typeLabel":"number"},{"type":"null","description":"attorneyFees − netFeeToSendingFirm. Null when netFeeToSendingFirm is null.","uniqueKey":"data.sentCase.netFeeToHandlingFirm.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.sentCase.netFeeToHandlingFirm","typeLabel":"number | null"},"resolutionDate":{"oneOf":[{"type":"string","format":"date-time","description":"When the outcome was recorded: the most recent transition into CLOSING, or into WON/LOST for legacy referrals that never passed through CLOSING.","uniqueKey":"data.sentCase.resolutionDate.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","format":"date-time","description":"When the outcome was recorded: the most recent transition into CLOSING, or into WON/LOST for legacy referrals that never passed through CLOSING.","uniqueKey":"data.sentCase.resolutionDate.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.sentCase.resolutionDate","typeLabel":"string\u003cdate-time> | null"},"closedDate":{"oneOf":[{"type":"string","format":"date-time","description":"The most recent transition into CLOSED.","uniqueKey":"data.sentCase.closedDate.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","format":"date-time","description":"The most recent transition into CLOSED.","uniqueKey":"data.sentCase.closedDate.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.sentCase.closedDate","typeLabel":"string\u003cdate-time> | null"},"statuteOfLimitationsExpiration":{"oneOf":[{"type":"string","format":"date-time","uniqueKey":"data.sentCase.statuteOfLimitationsExpiration.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","format":"date-time","uniqueKey":"data.sentCase.statuteOfLimitationsExpiration.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.sentCase.statuteOfLimitationsExpiration","typeLabel":"string\u003cdate-time> | null"},"phase":{"oneOf":[{"type":"string","uniqueKey":"data.sentCase.phase.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"data.sentCase.phase.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.sentCase.phase","typeLabel":"string | null"},"requiresUpdate":{"type":"boolean","uniqueKey":"data.sentCase.requiresUpdate","typeLabel":"boolean"},"customFields":{"type":"array","items":{"type":"object","description":"A resolved custom field value on a referral.","properties":{"fieldId":{"type":"string","format":"uuid","isRequired":true,"uniqueKey":"data.sentCase.customFields.items.[INDEX].fieldId","typeLabel":"string\u003cuuid>"},"fieldName":{"type":"string","description":"System name of the field","isRequired":true,"uniqueKey":"data.sentCase.customFields.items.[INDEX].fieldName","typeLabel":"string"},"displayName":{"type":"string","isRequired":true,"uniqueKey":"data.sentCase.customFields.items.[INDEX].displayName","typeLabel":"string"},"fieldType":{"type":"string","isRequired":true,"uniqueKey":"data.sentCase.customFields.items.[INDEX].fieldType","typeLabel":"string"},"value":{"oneOf":[{"type":"string","isRequired":true,"uniqueKey":"data.sentCase.customFields.items.[INDEX].value.oneOf.0","typeLabel":"string"},{"type":"null","isRequired":true,"uniqueKey":"data.sentCase.customFields.items.[INDEX].value.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.sentCase.customFields.items.[INDEX].value","typeLabel":"string | null"}},"required":["fieldId","fieldName","displayName","fieldType","value"],"uniqueKey":"data.sentCase.customFields.items.[INDEX]","typeLabel":"object"},"uniqueKey":"data.sentCase.customFields","typeLabel":"object[]"},"referrals":{"type":"array","description":"All referrals on this case, most recent first.","items":{"type":"object","description":"One referral on a sent case, most recent first. Carries that referral's own settlement and outcome so a re-referred case shows each attempt, not just the most recent one flattened onto the parent. sendingFirmPercentage and isRetainerSigned are receiver-managed and omitted.","properties":{"id":{"type":"string","format":"uuid","uniqueKey":"data.sentCase.referrals.items.[INDEX].id","typeLabel":"string\u003cuuid>"},"lookNumber":{"oneOf":[{"type":"integer","minimum":1,"description":"Which look of its case this referral is: 1 for the first look, 2 for the next look after a rejection, withdrawal or expiry, and so on. Counts every look: re-referred by hand, sent by the Automatic Second Look, or recorded from the sending firm's case history.","uniqueKey":"data.sentCase.referrals.items.[INDEX].lookNumber.oneOf.0","typeLabel":"integer"},{"type":"null","minimum":1,"description":"Which look of its case this referral is: 1 for the first look, 2 for the next look after a rejection, withdrawal or expiry, and so on. Counts every look: re-referred by hand, sent by the Automatic Second Look, or recorded from the sending firm's case history.","uniqueKey":"data.sentCase.referrals.items.[INDEX].lookNumber.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.sentCase.referrals.items.[INDEX].lookNumber","typeLabel":"integer | null"},"lookType":{"oneOf":[{"type":"string","enum":["first","re_referral","auto_second_look"],"description":"How this look happened: first (the first look), re_referral (a later look the sending firm sent), or auto_second_look (a later look the Automatic Second Look sent).","uniqueKey":"data.sentCase.referrals.items.[INDEX].lookType.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","enum":["first","re_referral","auto_second_look"],"description":"How this look happened: first (the first look), re_referral (a later look the sending firm sent), or auto_second_look (a later look the Automatic Second Look sent).","uniqueKey":"data.sentCase.referrals.items.[INDEX].lookType.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.sentCase.referrals.items.[INDEX].lookType","typeLabel":"enum\u003cstring> | null"},"isLatestLook":{"oneOf":[{"type":"boolean","description":"Whether this is the case's current look. Null when the case's current look is unknown.","uniqueKey":"data.sentCase.referrals.items.[INDEX].isLatestLook.oneOf.0","typeLabel":"boolean"},{"type":"null","description":"Whether this is the case's current look. Null when the case's current look is unknown.","uniqueKey":"data.sentCase.referrals.items.[INDEX].isLatestLook.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.sentCase.referrals.items.[INDEX].isLatestLook","typeLabel":"boolean | null"},"referentFirmId":{"oneOf":[{"type":"string","format":"uuid","uniqueKey":"data.sentCase.referrals.items.[INDEX].referentFirmId.oneOf.0","typeLabel":"string\u003cuuid>"},{"type":"null","format":"uuid","uniqueKey":"data.sentCase.referrals.items.[INDEX].referentFirmId.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.sentCase.referrals.items.[INDEX].referentFirmId","typeLabel":"string\u003cuuid> | null"},"referentFirmName":{"oneOf":[{"type":"string","uniqueKey":"data.sentCase.referrals.items.[INDEX].referentFirmName.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"data.sentCase.referrals.items.[INDEX].referentFirmName.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.sentCase.referrals.items.[INDEX].referentFirmName","typeLabel":"string | null"},"status":{"type":"string","description":"CaseStatus enum value","uniqueKey":"data.sentCase.referrals.items.[INDEX].status","typeLabel":"string"},"closingStatus":{"oneOf":[{"type":"string","enum":["won_settled","lost","no_longer_pursuing"],"description":"ClosingStatus enum value; null until the closing workflow starts.","uniqueKey":"data.sentCase.referrals.items.[INDEX].closingStatus.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","enum":["won_settled","lost","no_longer_pursuing"],"description":"ClosingStatus enum value; null until the closing workflow starts.","uniqueKey":"data.sentCase.referrals.items.[INDEX].closingStatus.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.sentCase.referrals.items.[INDEX].closingStatus","typeLabel":"enum\u003cstring> | null"},"payoutType":{"oneOf":[{"type":"string","enum":["lump_sum","structured","hybrid","other"],"description":"How settlement funds are distributed; null until set during closing.","uniqueKey":"data.sentCase.referrals.items.[INDEX].payoutType.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","enum":["lump_sum","structured","hybrid","other"],"description":"How settlement funds are distributed; null until set during closing.","uniqueKey":"data.sentCase.referrals.items.[INDEX].payoutType.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.sentCase.referrals.items.[INDEX].payoutType","typeLabel":"enum\u003cstring> | null"},"closureReason":{"oneOf":[{"type":"string","description":"Free-text reason recorded when the referral is closed; null until then.","uniqueKey":"data.sentCase.referrals.items.[INDEX].closureReason.oneOf.0","typeLabel":"string"},{"type":"null","description":"Free-text reason recorded when the referral is closed; null until then.","uniqueKey":"data.sentCase.referrals.items.[INDEX].closureReason.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.sentCase.referrals.items.[INDEX].closureReason","typeLabel":"string | null"},"settlementAmount":{"oneOf":[{"type":"number","minimum":0,"maximum":1000000000,"description":"Final settlement amount in dollars; null until recorded.","uniqueKey":"data.sentCase.referrals.items.[INDEX].settlementAmount.oneOf.0","typeLabel":"number"},{"type":"null","minimum":0,"maximum":1000000000,"description":"Final settlement amount in dollars; null until recorded.","uniqueKey":"data.sentCase.referrals.items.[INDEX].settlementAmount.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.sentCase.referrals.items.[INDEX].settlementAmount","typeLabel":"number | null"},"attorneyFees":{"oneOf":[{"type":"number","minimum":0,"maximum":1000000000,"description":"Total attorney fees in dollars; null until recorded.","uniqueKey":"data.sentCase.referrals.items.[INDEX].attorneyFees.oneOf.0","typeLabel":"number"},{"type":"null","minimum":0,"maximum":1000000000,"description":"Total attorney fees in dollars; null until recorded.","uniqueKey":"data.sentCase.referrals.items.[INDEX].attorneyFees.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.sentCase.referrals.items.[INDEX].attorneyFees","typeLabel":"number | null"},"clientFeeAgreementPercentage":{"oneOf":[{"type":"number","minimum":0,"maximum":1,"description":"Client fee agreement as a FRACTION of the settlement, 0–1 (0.3333 = 33.33%). Not a whole percent — contrast with sendingFirmPercentage.","uniqueKey":"data.sentCase.referrals.items.[INDEX].clientFeeAgreementPercentage.oneOf.0","typeLabel":"number"},{"type":"null","minimum":0,"maximum":1,"description":"Client fee agreement as a FRACTION of the settlement, 0–1 (0.3333 = 33.33%). Not a whole percent — contrast with sendingFirmPercentage.","uniqueKey":"data.sentCase.referrals.items.[INDEX].clientFeeAgreementPercentage.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.sentCase.referrals.items.[INDEX].clientFeeAgreementPercentage","typeLabel":"number | null"},"projectedSettlementAmount":{"oneOf":[{"type":"number","minimum":0,"maximum":1000000000,"description":"Projected settlement amount in dollars, set while the case is open; null until estimated.","uniqueKey":"data.sentCase.referrals.items.[INDEX].projectedSettlementAmount.oneOf.0","typeLabel":"number"},{"type":"null","minimum":0,"maximum":1000000000,"description":"Projected settlement amount in dollars, set while the case is open; null until estimated.","uniqueKey":"data.sentCase.referrals.items.[INDEX].projectedSettlementAmount.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.sentCase.referrals.items.[INDEX].projectedSettlementAmount","typeLabel":"number | null"},"estimatedDateOfResolution":{"oneOf":[{"type":"string","format":"date-time","description":"Estimated resolution date (date-only on input, ISO 8601 on output); null until estimated.","uniqueKey":"data.sentCase.referrals.items.[INDEX].estimatedDateOfResolution.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","format":"date-time","description":"Estimated resolution date (date-only on input, ISO 8601 on output); null until estimated.","uniqueKey":"data.sentCase.referrals.items.[INDEX].estimatedDateOfResolution.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.sentCase.referrals.items.[INDEX].estimatedDateOfResolution","typeLabel":"string\u003cdate-time> | null"},"estimatedDistributionDate":{"oneOf":[{"type":"string","format":"date-time","description":"Estimated distribution date (date-only on input, ISO 8601 on output); null until estimated.","uniqueKey":"data.sentCase.referrals.items.[INDEX].estimatedDistributionDate.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","format":"date-time","description":"Estimated distribution date (date-only on input, ISO 8601 on output); null until estimated.","uniqueKey":"data.sentCase.referrals.items.[INDEX].estimatedDistributionDate.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.sentCase.referrals.items.[INDEX].estimatedDistributionDate","typeLabel":"string\u003cdate-time> | null"},"leadAttorneyName":{"oneOf":[{"type":"string","description":"Lead attorney at the receiving firm; null until set.","uniqueKey":"data.sentCase.referrals.items.[INDEX].leadAttorneyName.oneOf.0","typeLabel":"string"},{"type":"null","description":"Lead attorney at the receiving firm; null until set.","uniqueKey":"data.sentCase.referrals.items.[INDEX].leadAttorneyName.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.sentCase.referrals.items.[INDEX].leadAttorneyName","typeLabel":"string | null"},"leadAttorneyEmail":{"oneOf":[{"type":"string","format":"email","description":"Lead attorney email at the receiving firm; null until set.","uniqueKey":"data.sentCase.referrals.items.[INDEX].leadAttorneyEmail.oneOf.0","typeLabel":"string\u003cemail>"},{"type":"null","format":"email","description":"Lead attorney email at the receiving firm; null until set.","uniqueKey":"data.sentCase.referrals.items.[INDEX].leadAttorneyEmail.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.sentCase.referrals.items.[INDEX].leadAttorneyEmail","typeLabel":"string\u003cemail> | null"},"handlingTeamName":{"oneOf":[{"type":"string","description":"Team handling the case at the receiving firm; null until set.","uniqueKey":"data.sentCase.referrals.items.[INDEX].handlingTeamName.oneOf.0","typeLabel":"string"},{"type":"null","description":"Team handling the case at the receiving firm; null until set.","uniqueKey":"data.sentCase.referrals.items.[INDEX].handlingTeamName.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.sentCase.referrals.items.[INDEX].handlingTeamName","typeLabel":"string | null"},"handlingTeamEmail":{"oneOf":[{"type":"string","format":"email","description":"Shared email of the handling team; null until set.","uniqueKey":"data.sentCase.referrals.items.[INDEX].handlingTeamEmail.oneOf.0","typeLabel":"string\u003cemail>"},{"type":"null","format":"email","description":"Shared email of the handling team; null until set.","uniqueKey":"data.sentCase.referrals.items.[INDEX].handlingTeamEmail.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.sentCase.referrals.items.[INDEX].handlingTeamEmail","typeLabel":"string\u003cemail> | null"},"netFeeToSendingFirm":{"oneOf":[{"type":"number","description":"attorneyFees × the receiving firm's stamped sending-firm percentage ÷ 100, rounded to cents (the percentage itself is not exposed on this resource); at 33.33% it is exactly one third of attorneyFees. Null when either input is missing or zero.","uniqueKey":"data.sentCase.referrals.items.[INDEX].netFeeToSendingFirm.oneOf.0","typeLabel":"number"},{"type":"null","description":"attorneyFees × the receiving firm's stamped sending-firm percentage ÷ 100, rounded to cents (the percentage itself is not exposed on this resource); at 33.33% it is exactly one third of attorneyFees. Null when either input is missing or zero.","uniqueKey":"data.sentCase.referrals.items.[INDEX].netFeeToSendingFirm.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.sentCase.referrals.items.[INDEX].netFeeToSendingFirm","typeLabel":"number | null"},"netFeeToHandlingFirm":{"oneOf":[{"type":"number","description":"attorneyFees − netFeeToSendingFirm. Null when netFeeToSendingFirm is null.","uniqueKey":"data.sentCase.referrals.items.[INDEX].netFeeToHandlingFirm.oneOf.0","typeLabel":"number"},{"type":"null","description":"attorneyFees − netFeeToSendingFirm. Null when netFeeToSendingFirm is null.","uniqueKey":"data.sentCase.referrals.items.[INDEX].netFeeToHandlingFirm.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.sentCase.referrals.items.[INDEX].netFeeToHandlingFirm","typeLabel":"number | null"},"resolutionDate":{"oneOf":[{"type":"string","format":"date-time","description":"When the outcome was recorded: the most recent transition into CLOSING, or into WON/LOST for legacy referrals that never passed through CLOSING.","uniqueKey":"data.sentCase.referrals.items.[INDEX].resolutionDate.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","format":"date-time","description":"When the outcome was recorded: the most recent transition into CLOSING, or into WON/LOST for legacy referrals that never passed through CLOSING.","uniqueKey":"data.sentCase.referrals.items.[INDEX].resolutionDate.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.sentCase.referrals.items.[INDEX].resolutionDate","typeLabel":"string\u003cdate-time> | null"},"closedDate":{"oneOf":[{"type":"string","format":"date-time","description":"The most recent transition into CLOSED.","uniqueKey":"data.sentCase.referrals.items.[INDEX].closedDate.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","format":"date-time","description":"The most recent transition into CLOSED.","uniqueKey":"data.sentCase.referrals.items.[INDEX].closedDate.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.sentCase.referrals.items.[INDEX].closedDate","typeLabel":"string\u003cdate-time> | null"},"notes":{"oneOf":[{"type":"string","uniqueKey":"data.sentCase.referrals.items.[INDEX].notes.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"data.sentCase.referrals.items.[INDEX].notes.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.sentCase.referrals.items.[INDEX].notes","typeLabel":"string | null"},"createdBy":{"oneOf":[{"type":"string","format":"uuid","uniqueKey":"data.sentCase.referrals.items.[INDEX].createdBy.oneOf.0","typeLabel":"string\u003cuuid>"},{"type":"null","format":"uuid","uniqueKey":"data.sentCase.referrals.items.[INDEX].createdBy.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.sentCase.referrals.items.[INDEX].createdBy","typeLabel":"string\u003cuuid> | null"},"lastUpdatedBy":{"oneOf":[{"type":"string","format":"uuid","uniqueKey":"data.sentCase.referrals.items.[INDEX].lastUpdatedBy.oneOf.0","typeLabel":"string\u003cuuid>"},{"type":"null","format":"uuid","uniqueKey":"data.sentCase.referrals.items.[INDEX].lastUpdatedBy.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.sentCase.referrals.items.[INDEX].lastUpdatedBy","typeLabel":"string\u003cuuid> | null"},"createdAt":{"type":"string","format":"date-time","uniqueKey":"data.sentCase.referrals.items.[INDEX].createdAt","typeLabel":"string\u003cdate-time>"},"updatedAt":{"type":"string","format":"date-time","uniqueKey":"data.sentCase.referrals.items.[INDEX].updatedAt","typeLabel":"string\u003cdate-time>"}},"uniqueKey":"data.sentCase.referrals.items.[INDEX]","typeLabel":"object"},"uniqueKey":"data.sentCase.referrals","typeLabel":"object[]"}},"isRequired":true,"uniqueKey":"data.sentCase","typeLabel":"object"}},"required":["attempt","sentCase"],"isRequired":true,"uniqueKey":"data","typeLabel":"object"},"meta":{"type":"object","properties":{"requestId":{"type":"string","example":"req_f2dbe1d3f6ad4a7bb5b4c9f2","isRequired":true,"uniqueKey":"meta.requestId","typeLabel":"string"},"timestamp":{"type":"string","format":"date-time","isRequired":true,"uniqueKey":"meta.timestamp","typeLabel":"string\u003cdate-time>"}},"required":["requestId","timestamp"],"isRequired":true,"uniqueKey":"meta","typeLabel":"object"}},"required":["data","meta"],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"data":{"attempt":{"id":"3c90c3cc-0d44-4b50-8888-8dd25736052a","state":"processing","idempotencyKey":"3c90c3cc-0d44-4b50-8888-8dd25736052a","replay":true},"sentCase":{"id":"3c90c3cc-0d44-4b50-8888-8dd25736052a","referenceNumber":"ABC-0001","salesforceId":"\u003cstring>","salesforceObjectType":"\u003cstring>","title":"\u003cstring>","description":"\u003cstring>","caseType":"\u003cstring>","jurisdiction":"\u003cstring>","caseCounty":"\u003cstring>","caseCountySource":"sender","casePostalCode":"\u003cstring>","county":"\u003cstring>","countySource":"sender","clientAddress1":"\u003cstring>","clientAddress2":"\u003cstring>","clientCity":"\u003cstring>","clientPostalCode":"\u003cstring>","clientState":"\u003cstring>","clientFirstName":"\u003cstring>","clientLastName":"\u003cstring>","clientEmail":"jsmith@example.com","clientPhone":"\u003cstring>","clientDateOfBirth":"2023-11-07T05:31:56Z","incidentDate":"2023-11-07T05:31:56Z","tier":3,"ratedTier":3,"ratingNotes":"\u003cstring>","source":"\u003cstring>","isTestCase":true,"createdBy":"3c90c3cc-0d44-4b50-8888-8dd25736052a","createdAt":"2023-11-07T05:31:56Z","updatedAt":"2023-11-07T05:31:56Z","status":"\u003cstring>","lookNumber":2,"lookType":"first","closingStatus":"won_settled","payoutType":"lump_sum","closureReason":"\u003cstring>","settlementAmount":500000000,"attorneyFees":500000000,"clientFeeAgreementPercentage":0.5,"projectedSettlementAmount":500000000,"estimatedDateOfResolution":"2023-11-07T05:31:56Z","estimatedDistributionDate":"2023-11-07T05:31:56Z","leadAttorneyName":"\u003cstring>","leadAttorneyEmail":"jsmith@example.com","handlingTeamName":"\u003cstring>","handlingTeamEmail":"jsmith@example.com","warmTransferSuccessful":true,"warmTransferUnsuccessfulReason":"\u003cstring>","warmTransferUnsuccessfulReasonType":"FIRM_UNABLE_TO_ANSWER","netFeeToSendingFirm":123,"netFeeToHandlingFirm":123,"resolutionDate":"2023-11-07T05:31:56Z","closedDate":"2023-11-07T05:31:56Z","statuteOfLimitationsExpiration":"2023-11-07T05:31:56Z","phase":"\u003cstring>","requiresUpdate":true,"customFields":[{"fieldId":"3c90c3cc-0d44-4b50-8888-8dd25736052a","fieldName":"\u003cstring>","displayName":"\u003cstring>","fieldType":"\u003cstring>","value":"\u003cstring>"}],"referrals":[{"id":"3c90c3cc-0d44-4b50-8888-8dd25736052a","lookNumber":2,"lookType":"first","isLatestLook":true,"referentFirmId":"3c90c3cc-0d44-4b50-8888-8dd25736052a","referentFirmName":"\u003cstring>","status":"\u003cstring>","closingStatus":"won_settled","payoutType":"lump_sum","closureReason":"\u003cstring>","settlementAmount":500000000,"attorneyFees":500000000,"clientFeeAgreementPercentage":0.5,"projectedSettlementAmount":500000000,"estimatedDateOfResolution":"2023-11-07T05:31:56Z","estimatedDistributionDate":"2023-11-07T05:31:56Z","leadAttorneyName":"\u003cstring>","leadAttorneyEmail":"jsmith@example.com","handlingTeamName":"\u003cstring>","handlingTeamEmail":"jsmith@example.com","netFeeToSendingFirm":123,"netFeeToHandlingFirm":123,"resolutionDate":"2023-11-07T05:31:56Z","closedDate":"2023-11-07T05:31:56Z","notes":"\u003cstring>","createdBy":"3c90c3cc-0d44-4b50-8888-8dd25736052a","lastUpdatedBy":"3c90c3cc-0d44-4b50-8888-8dd25736052a","createdAt":"2023-11-07T05:31:56Z","updatedAt":"2023-11-07T05:31:56Z"}]}},"meta":{"requestId":"req_f2dbe1d3f6ad4a7bb5b4c9f2","timestamp":"2023-11-07T05:31:56Z"}}}},"exampleType":"generated"}},"exampleType":"generated"},"8ab83169-30ea-4a43-8e9b-536b913c5286":{"description":"Request validation failed","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","isRequired":true,"uniqueKey":"error.code","typeLabel":"string"},"message":{"type":"string","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"}},"required":["code","message"],"isRequired":true,"uniqueKey":"error","typeLabel":"object"},"meta":{"type":"object","properties":{"requestId":{"type":"string","example":"req_f2dbe1d3f6ad4a7bb5b4c9f2","isRequired":true,"uniqueKey":"meta.requestId","typeLabel":"string"},"timestamp":{"type":"string","format":"date-time","isRequired":true,"uniqueKey":"meta.timestamp","typeLabel":"string\u003cdate-time>"}},"required":["requestId","timestamp"],"isRequired":true,"uniqueKey":"meta","typeLabel":"object"}},"required":["error","meta"],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":{"code":"\u003cstring>","message":"\u003cstring>"},"meta":{"requestId":"req_f2dbe1d3f6ad4a7bb5b4c9f2","timestamp":"2023-11-07T05:31:56Z"}}}},"exampleType":"generated"}},"exampleType":"generated"},"acaaf3be-8042-4d7c-9996-15929f0367c9":{"description":"Invalid or missing API key","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","isRequired":true,"uniqueKey":"error.code","typeLabel":"string"},"message":{"type":"string","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"}},"required":["code","message"],"isRequired":true,"uniqueKey":"error","typeLabel":"object"},"meta":{"type":"object","properties":{"requestId":{"type":"string","example":"req_f2dbe1d3f6ad4a7bb5b4c9f2","isRequired":true,"uniqueKey":"meta.requestId","typeLabel":"string"},"timestamp":{"type":"string","format":"date-time","isRequired":true,"uniqueKey":"meta.timestamp","typeLabel":"string\u003cdate-time>"}},"required":["requestId","timestamp"],"isRequired":true,"uniqueKey":"meta","typeLabel":"object"}},"required":["error","meta"],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":{"code":"\u003cstring>","message":"\u003cstring>"},"meta":{"requestId":"req_f2dbe1d3f6ad4a7bb5b4c9f2","timestamp":"2023-11-07T05:31:56Z"}}}},"exampleType":"generated"}},"exampleType":"generated"},"d96619c0-29fb-45b2-92d9-385992b487ca":{"description":"API key tier does not permit this action","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","isRequired":true,"uniqueKey":"error.code","typeLabel":"string"},"message":{"type":"string","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"}},"required":["code","message"],"isRequired":true,"uniqueKey":"error","typeLabel":"object"},"meta":{"type":"object","properties":{"requestId":{"type":"string","example":"req_f2dbe1d3f6ad4a7bb5b4c9f2","isRequired":true,"uniqueKey":"meta.requestId","typeLabel":"string"},"timestamp":{"type":"string","format":"date-time","isRequired":true,"uniqueKey":"meta.timestamp","typeLabel":"string\u003cdate-time>"}},"required":["requestId","timestamp"],"isRequired":true,"uniqueKey":"meta","typeLabel":"object"}},"required":["error","meta"],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":{"code":"\u003cstring>","message":"\u003cstring>"},"meta":{"requestId":"req_f2dbe1d3f6ad4a7bb5b4c9f2","timestamp":"2023-11-07T05:31:56Z"}}}},"exampleType":"generated"}},"exampleType":"generated"},"bbada513-585f-4c24-9cfd-440fe0a9fa79":{"description":"Resource not found","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","isRequired":true,"uniqueKey":"error.code","typeLabel":"string"},"message":{"type":"string","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"}},"required":["code","message"],"isRequired":true,"uniqueKey":"error","typeLabel":"object"},"meta":{"type":"object","properties":{"requestId":{"type":"string","example":"req_f2dbe1d3f6ad4a7bb5b4c9f2","isRequired":true,"uniqueKey":"meta.requestId","typeLabel":"string"},"timestamp":{"type":"string","format":"date-time","isRequired":true,"uniqueKey":"meta.timestamp","typeLabel":"string\u003cdate-time>"}},"required":["requestId","timestamp"],"isRequired":true,"uniqueKey":"meta","typeLabel":"object"}},"required":["error","meta"],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":{"code":"\u003cstring>","message":"\u003cstring>"},"meta":{"requestId":"req_f2dbe1d3f6ad4a7bb5b4c9f2","timestamp":"2023-11-07T05:31:56Z"}}}},"exampleType":"generated"}},"exampleType":"generated"},"15fbd1e7-1449-4f29-b894-72c20a5ad1ca":{"description":"Conflict — the `error.code` selects one of five cases, each with a distinct `error.details` shape:\n- `record_already_sent` (already linked; pass reRefer to re-refer instead) — `details: { baseCaseId, referenceNumber, baseCaseReferenceNumber }` (`referenceNumber` is the linked referral's number, `baseCaseReferenceNumber` the case's).\n- `record_already_linked` (claimed by a prior send with no active link) — `details: { matchKeyValue }`.\n- `send_in_progress` (a send for this record/key is already in flight) — `details: { retryAfterMs }`, the remaining in-flight window in ms (floored at 0).\n- `attempt_failed` (the prior attempt for this idempotency key failed; use a fresh key) — `details: { failureCode, lastError }`.\n- `duplicate_client_referral`: your firm already referred this client (same name, plus a matching date of birth, phone or email) to the same receiving firm from another case of the same case type, and that referral is still live or was sent within 7 days of this one. Two cases with different incident dates never match; a missing incident date on either case does not exempt the send. `error.details`: `{ matches, overrideField }`. Re-send with `allowDuplicateClient: true` if this is a separate matter.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","isRequired":true,"uniqueKey":"error.code","typeLabel":"string"},"message":{"type":"string","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"details":{"type":"object","properties":{"matches":{"type":"array","maxItems":5,"items":{"type":"object","properties":{"baseCaseId":{"type":"string","format":"uuid","description":"The earlier case.","isRequired":true,"uniqueKey":"error.details.matches.items.[INDEX].baseCaseId","typeLabel":"string\u003cuuid>"},"referenceNumber":{"oneOf":[{"type":"string","description":"The earlier case's reference number.","isRequired":true,"uniqueKey":"error.details.matches.items.[INDEX].referenceNumber.oneOf.0","typeLabel":"string"},{"type":"null","description":"The earlier case's reference number.","isRequired":true,"uniqueKey":"error.details.matches.items.[INDEX].referenceNumber.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"error.details.matches.items.[INDEX].referenceNumber","typeLabel":"string | null"},"referralId":{"type":"string","format":"uuid","description":"The matching referral (hop) of the earlier case.","isRequired":true,"uniqueKey":"error.details.matches.items.[INDEX].referralId","typeLabel":"string\u003cuuid>"},"referentFirmName":{"type":"string","description":"The receiving firm.","isRequired":true,"uniqueKey":"error.details.matches.items.[INDEX].referentFirmName","typeLabel":"string"},"status":{"type":"string","description":"Status of the matching referral.","isRequired":true,"uniqueKey":"error.details.matches.items.[INDEX].status","typeLabel":"string"},"sentAt":{"oneOf":[{"type":"string","format":"date-time","isRequired":true,"uniqueKey":"error.details.matches.items.[INDEX].sentAt.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","format":"date-time","isRequired":true,"uniqueKey":"error.details.matches.items.[INDEX].sentAt.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"error.details.matches.items.[INDEX].sentAt","typeLabel":"string\u003cdate-time> | null"},"matchedOn":{"type":"array","items":{"type":"string","enum":["name","dob","phone","email"],"uniqueKey":"error.details.matches.items.[INDEX].matchedOn.items.[INDEX]","typeLabel":"enum\u003cstring>"},"description":"Client fields that matched. Always includes name.","isRequired":true,"uniqueKey":"error.details.matches.items.[INDEX].matchedOn","typeLabel":"enum\u003cstring>[]"}},"required":["baseCaseId","referenceNumber","referralId","referentFirmName","status","sentAt","matchedOn"],"uniqueKey":"error.details.matches.items.[INDEX]","typeLabel":"object"},"description":"Up to 5 matching referrals, newest sentAt first. Never carries the other case's DOB, phone or email.","isRequired":true,"uniqueKey":"error.details.matches","typeLabel":"object[]"},"overrideField":{"type":"string","enum":["allowDuplicateClient"],"description":"The request field that sends anyway.","isRequired":true,"uniqueKey":"error.details.overrideField","typeLabel":"enum\u003cstring>"}},"required":["matches","overrideField"],"description":"Present for `duplicate_client_referral`.","uniqueKey":"error.details","typeLabel":"object"}},"required":["code","message"],"isRequired":true,"uniqueKey":"error","typeLabel":"object"},"meta":{"type":"object","properties":{"requestId":{"type":"string","example":"req_f2dbe1d3f6ad4a7bb5b4c9f2","isRequired":true,"uniqueKey":"meta.requestId","typeLabel":"string"},"timestamp":{"type":"string","format":"date-time","isRequired":true,"uniqueKey":"meta.timestamp","typeLabel":"string\u003cdate-time>"}},"required":["requestId","timestamp"],"isRequired":true,"uniqueKey":"meta","typeLabel":"object"}},"required":["error","meta"],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":{"code":"\u003cstring>","message":"\u003cstring>","details":{"matches":[{"baseCaseId":"3c90c3cc-0d44-4b50-8888-8dd25736052a","referenceNumber":"\u003cstring>","referralId":"3c90c3cc-0d44-4b50-8888-8dd25736052a","referentFirmName":"\u003cstring>","status":"\u003cstring>","sentAt":"2023-11-07T05:31:56Z","matchedOn":["name"]}],"overrideField":"allowDuplicateClient"}},"meta":{"requestId":"req_f2dbe1d3f6ad4a7bb5b4c9f2","timestamp":"2023-11-07T05:31:56Z"}}}},"exampleType":"generated"}},"exampleType":"generated"},"f7f166b5-6b02-4982-a3d0-1418c1ccc439":{"description":"Salesforce unavailable (`salesforce_unavailable`) or the source record read failed (`salesforce_read_failed`).","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","isRequired":true,"uniqueKey":"error.code","typeLabel":"string"},"message":{"type":"string","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"}},"required":["code","message"],"isRequired":true,"uniqueKey":"error","typeLabel":"object"},"meta":{"type":"object","properties":{"requestId":{"type":"string","example":"req_f2dbe1d3f6ad4a7bb5b4c9f2","isRequired":true,"uniqueKey":"meta.requestId","typeLabel":"string"},"timestamp":{"type":"string","format":"date-time","isRequired":true,"uniqueKey":"meta.timestamp","typeLabel":"string\u003cdate-time>"}},"required":["requestId","timestamp"],"isRequired":true,"uniqueKey":"meta","typeLabel":"object"}},"required":["error","meta"],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":{"code":"\u003cstring>","message":"\u003cstring>"},"meta":{"requestId":"req_f2dbe1d3f6ad4a7bb5b4c9f2","timestamp":"2023-11-07T05:31:56Z"}}}},"exampleType":"generated"}},"exampleType":"generated"}},"security":{"260292c3-31ce-4825-a936-6b722123c948":{"apiKeyAuth":{"type":"apiKey","in":"header","name":"X-API-Key","description":"Public API key: `cxp_\u003chex>` (firm-scoped) or `cxpp_\u003chex>` (provider-scoped). Required on every request.","scopes":[],"schemeName":"apiKeyAuth"}}},"servers":{"345f5755-9455-47f7-b251-5ea16ce352e2":{"url":"https://api.casexchange.com/api/public/v1","description":"Production Public API base path"},"95e4cacd-c70c-4f31-af42-14e9bf3f2ac6":{"url":"/api/public/v1","description":"Relative base path (for proxied docs/local environments)"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"apiKey","in":"header","name":"X-API-Key","description":"Public API key: `cxp_\u003chex>` (firm-scoped) or `cxpp_\u003chex>` (provider-scoped). Required on every request.","scopes":[],"schemeName":"apiKeyAuth"},"schema":{"title":"X-API-Key","type":"string","description":"Public API key: `cxp_\u003chex>` (firm-scoped) or `cxpp_\u003chex>` (provider-scoped). Required on every request.","isRequired":true,"typeLabel":"string","deprecated":false},"schemeName":"apiKeyAuth","name":"X-API-Key"}],"title":"apiKeyAuth"}]},"originalFileLocation":"api-reference/openapi.yml"},"subdomain":"casexchange","siteName":"CaseXchange Public API","title":"Send a Salesforce record to CaseXchange as a new case or re-referral - CaseXchange Public API","contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-11-22T01:28:11.680Z","originalFileLocation":"api-reference/salesforce/send-a-salesforce-record-to-casexchange-as-a-new-case-or-re-referral.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Turns an org-side \u0026quot;send this record to CaseXchange\u0026quot; submit into a durable, idempotent CaseXchange case creation (or re-referral to a new firm) — spec §7.2. Reads the source record from Salesforce using the firm\u0026#x27;s active, activated, interactive-send-enabled v2 sending profile, applies its confirmed prefill links plus any overrides, and creates (or re-refers) a case. Idempotency: pass a fresh idempotencyKey (UUID) on every distinct submit. Replaying the same key returns the original outcome with 200 and attempt.replay: true instead of creating a duplicate case; a genuinely new submit must use a new key. Observing write-back: there is NO status-check endpoint. Once this call returns, the CaseXchange case exists, but its bridge fields (match key, status, reference number, deep link) are stamped back onto the source Salesforce record asynchronously by the write-back job — observe completion by reading those fields on the source record (typically within ~5 minutes). A send that exhausts its write-back retries moves to needs_attention and is paused for an admin; that state sends NO signal to the org side, so clients should surface a send whose fields remain unstamped after a timeout as stale rather than wait indefinitely. Error codes (409s carry a per-code error.details object — see the 409 response): - 400 match_key_missing — the resolved sending profile has no match key configured at all (send is not supported); an external-ID or lookup match key is required. - 400 validation_error — the built create payload failed validation; error.details.errors carries the field-level issues. - 400 bad_request — a re-refer business-rule rejection propagated from the re-referral service (e.g. the case is not in a re-referable status, or no prior referral exists); the message is descriptive. - 404 send_mapping_not_configured — no active, activated, interactive-send-enabled v2 sending profile matches the given object/record type (exact record-type match, falling back to the \u0026quot;Any record type\u0026quot; profile). - 404 source_record_not_found — sourceRecordId does not exist (or is not visible) in Salesforce. - 404 linked_case_not_found — reRefer was requested but no linked CaseXchange case exists for this record (or it no longer exists). - 409 record_already_sent — the record is already linked to a CaseXchange case and reRefer was not requested. error.details: { baseCaseId, referenceNumber, baseCaseReferenceNumber } (the existing case, so the client can offer re-refer; referenceNumber is the linked referral\u0026#x27;s number, baseCaseReferenceNumber the case\u0026#x27;s). - 409 record_already_linked — the record already carries a match-key value from a prior send with no active link. error.details: { matchKeyValue }. - 409 send_in_progress — a send for this record (or idempotency key) is already in flight. error.details: { retryAfterMs } — the remaining in-flight window (floored at 0) to back off before retrying. - 409 attempt_failed — a previous send with this idempotency key failed; submit a fresh key to retry. error.details: { failureCode, lastError }. - 409 duplicate_client_referral — your firm already referred this client to the target firm from another case of the same case type (live, or sent within 7 days; two cases with different incident dates never match, and a missing incident date does not exempt the send). error.details: { matches, overrideField }. Checked before the attempt is recorded; to send anyway, submit again with allowDuplicateClient: true and a fresh idempotencyKey. - 502 salesforce_unavailable — no usable Salesforce access token for this connection. - 502 salesforce_read_failed — the Salesforce SOQL read of the source record failed. Requires FULL tier.\">\u003cmeta data-mint-head name=\"application-name\" content=\"CaseXchange Public API\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/casexchange/5ej00RttGW84DLNC/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/casexchange/5ej00RttGW84DLNC/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/casexchange/5ej00RttGW84DLNC/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/casexchange/5ej00RttGW84DLNC/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/casexchange/5ej00RttGW84DLNC/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/casexchange/5ej00RttGW84DLNC/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/casexchange/5ej00RttGW84DLNC/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/casexchange/5ej00RttGW84DLNC/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/casexchange/5ej00RttGW84DLNC/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Send a Salesforce record to CaseXchange as a new case or re-referral - CaseXchange Public API\">\u003cmeta data-mint-head property=\"og:description\" content=\"Turns an org-side \u0026quot;send this record to CaseXchange\u0026quot; submit into a durable, idempotent CaseXchange case creation (or re-referral to a new firm) — spec §7.2. Reads the source record from Salesforce using the firm\u0026#x27;s active, activated, interactive-send-enabled v2 sending profile, applies its confirmed prefill links plus any overrides, and creates (or re-refers) a case. Idempotency: pass a fresh idempotencyKey (UUID) on every distinct submit. Replaying the same key returns the original outcome with 200 and attempt.replay: true instead of creating a duplicate case; a genuinely new submit must use a new key. Observing write-back: there is NO status-check endpoint. Once this call returns, the CaseXchange case exists, but its bridge fields (match key, status, reference number, deep link) are stamped back onto the source Salesforce record asynchronously by the write-back job — observe completion by reading those fields on the source record (typically within ~5 minutes). A send that exhausts its write-back retries moves to needs_attention and is paused for an admin; that state sends NO signal to the org side, so clients should surface a send whose fields remain unstamped after a timeout as stale rather than wait indefinitely. Error codes (409s carry a per-code error.details object — see the 409 response): - 400 match_key_missing — the resolved sending profile has no match key configured at all (send is not supported); an external-ID or lookup match key is required. - 400 validation_error — the built create payload failed validation; error.details.errors carries the field-level issues. - 400 bad_request — a re-refer business-rule rejection propagated from the re-referral service (e.g. the case is not in a re-referable status, or no prior referral exists); the message is descriptive. - 404 send_mapping_not_configured — no active, activated, interactive-send-enabled v2 sending profile matches the given object/record type (exact record-type match, falling back to the \u0026quot;Any record type\u0026quot; profile). - 404 source_record_not_found — sourceRecordId does not exist (or is not visible) in Salesforce. - 404 linked_case_not_found — reRefer was requested but no linked CaseXchange case exists for this record (or it no longer exists). - 409 record_already_sent — the record is already linked to a CaseXchange case and reRefer was not requested. error.details: { baseCaseId, referenceNumber, baseCaseReferenceNumber } (the existing case, so the client can offer re-refer; referenceNumber is the linked referral\u0026#x27;s number, baseCaseReferenceNumber the case\u0026#x27;s). - 409 record_already_linked — the record already carries a match-key value from a prior send with no active link. error.details: { matchKeyValue }. - 409 send_in_progress — a send for this record (or idempotency key) is already in flight. error.details: { retryAfterMs } — the remaining in-flight window (floored at 0) to back off before retrying. - 409 attempt_failed — a previous send with this idempotency key failed; submit a fresh key to retry. error.details: { failureCode, lastError }. - 409 duplicate_client_referral — your firm already referred this client to the target firm from another case of the same case type (live, or sent within 7 days; two cases with different incident dates never match, and a missing incident date does not exempt the send). error.details: { matches, overrideField }. Checked before the attempt is recorded; to send anyway, submit again with allowDuplicateClient: true and a fresh idempotencyKey. - 502 salesforce_unavailable — no usable Salesforce access token for this connection. - 502 salesforce_read_failed — the Salesforce SOQL read of the source record failed. Requires FULL tier.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"CaseXchange Public API\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.casexchange.com/api-reference/salesforce/send-a-salesforce-record-to-casexchange-as-a-new-case-or-re-referral\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://casexchange.mintlify.site/_mintlify/api/og/v2?division=Salesforce\u0026amp;title=Send+a+Salesforce+record+to+CaseXchange+as+a+new+case+or+re-referral\u0026amp;description=Turns+an+org-side+%22send+this+record+to+CaseXchange%22+submit+into+a+durable%2C+idempotent+CaseXchange+case+creation+%28or+re-referral+to+a+new+firm%29+%E2%80%94+spec+%C2%A77.2.+Read\u0026amp;theme=2a243f5ae05e2e0c81058e5c\u0026amp;signature=5a1958376ab2f22af90d9705d320496a6d2be3591c299130dc3ea19fa9b6952c\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Send a Salesforce record to CaseXchange as a new case or re-referral - CaseXchange Public API\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Turns an org-side \u0026quot;send this record to CaseXchange\u0026quot; submit into a durable, idempotent CaseXchange case creation (or re-referral to a new firm) — spec §7.2. Reads the source record from Salesforce using the firm\u0026#x27;s active, activated, interactive-send-enabled v2 sending profile, applies its confirmed prefill links plus any overrides, and creates (or re-refers) a case. Idempotency: pass a fresh idempotencyKey (UUID) on every distinct submit. Replaying the same key returns the original outcome with 200 and attempt.replay: true instead of creating a duplicate case; a genuinely new submit must use a new key. Observing write-back: there is NO status-check endpoint. Once this call returns, the CaseXchange case exists, but its bridge fields (match key, status, reference number, deep link) are stamped back onto the source Salesforce record asynchronously by the write-back job — observe completion by reading those fields on the source record (typically within ~5 minutes). A send that exhausts its write-back retries moves to needs_attention and is paused for an admin; that state sends NO signal to the org side, so clients should surface a send whose fields remain unstamped after a timeout as stale rather than wait indefinitely. Error codes (409s carry a per-code error.details object — see the 409 response): - 400 match_key_missing — the resolved sending profile has no match key configured at all (send is not supported); an external-ID or lookup match key is required. - 400 validation_error — the built create payload failed validation; error.details.errors carries the field-level issues. - 400 bad_request — a re-refer business-rule rejection propagated from the re-referral service (e.g. the case is not in a re-referable status, or no prior referral exists); the message is descriptive. - 404 send_mapping_not_configured — no active, activated, interactive-send-enabled v2 sending profile matches the given object/record type (exact record-type match, falling back to the \u0026quot;Any record type\u0026quot; profile). - 404 source_record_not_found — sourceRecordId does not exist (or is not visible) in Salesforce. - 404 linked_case_not_found — reRefer was requested but no linked CaseXchange case exists for this record (or it no longer exists). - 409 record_already_sent — the record is already linked to a CaseXchange case and reRefer was not requested. error.details: { baseCaseId, referenceNumber, baseCaseReferenceNumber } (the existing case, so the client can offer re-refer; referenceNumber is the linked referral\u0026#x27;s number, baseCaseReferenceNumber the case\u0026#x27;s). - 409 record_already_linked — the record already carries a match-key value from a prior send with no active link. error.details: { matchKeyValue }. - 409 send_in_progress — a send for this record (or idempotency key) is already in flight. error.details: { retryAfterMs } — the remaining in-flight window (floored at 0) to back off before retrying. - 409 attempt_failed — a previous send with this idempotency key failed; submit a fresh key to retry. error.details: { failureCode, lastError }. - 409 duplicate_client_referral — your firm already referred this client to the target firm from another case of the same case type (live, or sent within 7 days; two cases with different incident dates never match, and a missing incident date does not exempt the send). error.details: { matches, overrideField }. Checked before the attempt is recorded; to send anyway, submit again with allowDuplicateClient: true and a fresh idempotencyKey. - 502 salesforce_unavailable — no usable Salesforce access token for this connection. - 502 salesforce_read_failed — the Salesforce SOQL read of the source record failed. Requires FULL tier.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://casexchange.mintlify.site/_mintlify/api/og/v2?division=Salesforce\u0026amp;title=Send+a+Salesforce+record+to+CaseXchange+as+a+new+case+or+re-referral\u0026amp;description=Turns+an+org-side+%22send+this+record+to+CaseXchange%22+submit+into+a+durable%2C+idempotent+CaseXchange+case+creation+%28or+re-referral+to+a+new+firm%29+%E2%80%94+spec+%C2%A77.2.+Read\u0026amp;theme=2a243f5ae05e2e0c81058e5c\u0026amp;signature=5a1958376ab2f22af90d9705d320496a6d2be3591c299130dc3ea19fa9b6952c\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/casexchange/5ej00RttGW84DLNC/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"CaseXchange Public API\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#EA4E00\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.casexchange.com/api-reference/salesforce/send-a-salesforce-record-to-casexchange-as-a-new-case-or-re-referral\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/salesforce/send-a-salesforce-record-to-casexchange-as-a-new-case-or-re-referral.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.casexchange.com/#organization\",\"name\":\"CaseXchange Public API\",\"url\":\"https://docs.casexchange.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/casexchange/KOlGhBF7XhztshRX/logo/light.png?fit=max\u0026auto=format\u0026n=KOlGhBF7XhztshRX\u0026q=85\u0026s=deebe246bf795c2ec8e597745d5a7506\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.casexchange.com#website\",\"name\":\"CaseXchange Public API\",\"url\":\"https://docs.casexchange.com\",\"publisher\":{\"@id\":\"https://docs.casexchange.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.casexchange.com/api-reference/salesforce/send-a-salesforce-record-to-casexchange-as-a-new-case-or-re-referral#webpage\",\"url\":\"https://docs.casexchange.com/api-reference/salesforce/send-a-salesforce-record-to-casexchange-as-a-new-case-or-re-referral\",\"name\":\"Send a Salesforce record to CaseXchange as a new case or re-referral\",\"description\":\"Turns an org-side \\\"send this record to CaseXchange\\\" submit into a durable, idempotent CaseXchange case creation (or re-referral to a new firm) — spec §7.2. Reads the source record from Salesforce using the firm's active, activated, interactive-send-enabled v2 sending profile, applies its confirmed prefill links plus any overrides, and creates (or re-refers) a case. Idempotency: pass a fresh idempotencyKey (UUID) on every distinct submit. Replaying the same key returns the original outcome with 200 and attempt.replay: true instead of creating a duplicate case; a genuinely new submit must use a new key. Observing write-back: there is NO status-check endpoint. Once this call returns, the CaseXchange case exists, but its bridge fields (match key, status, reference number, deep link) are stamped back onto the source Salesforce record asynchronously by the write-back job — observe completion by reading those fields on the source record (typically within ~5 minutes). A send that exhausts its write-back retries moves to needs_attention and is paused for an admin; that state sends NO signal to the org side, so clients should surface a send whose fields remain unstamped after a timeout as stale rather than wait indefinitely. Error codes (409s carry a per-code error.details object — see the 409 response): - 400 match_key_missing — the resolved sending profile has no match key configured at all (send is not supported); an external-ID or lookup match key is required. - 400 validation_error — the built create payload failed validation; error.details.errors carries the field-level issues. - 400 bad_request — a re-refer business-rule rejection propagated from the re-referral service (e.g. the case is not in a re-referable status, or no prior referral exists); the message is descriptive. - 404 send_mapping_not_configured — no active, activated, interactive-send-enabled v2 sending profile matches the given object/record type (exact record-type match, falling back to the \\\"Any record type\\\" profile). - 404 source_record_not_found — sourceRecordId does not exist (or is not visible) in Salesforce. - 404 linked_case_not_found — reRefer was requested but no linked CaseXchange case exists for this record (or it no longer exists). - 409 record_already_sent — the record is already linked to a CaseXchange case and reRefer was not requested. error.details: { baseCaseId, referenceNumber, baseCaseReferenceNumber } (the existing case, so the client can offer re-refer; referenceNumber is the linked referral's number, baseCaseReferenceNumber the case's). - 409 record_already_linked — the record already carries a match-key value from a prior send with no active link. error.details: { matchKeyValue }. - 409 send_in_progress — a send for this record (or idempotency key) is already in flight. error.details: { retryAfterMs } — the remaining in-flight window (floored at 0) to back off before retrying. - 409 attempt_failed — a previous send with this idempotency key failed; submit a fresh key to retry. error.details: { failureCode, lastError }. - 409 duplicate_client_referral — your firm already referred this client to the target firm from another case of the same case type (live, or sent within 7 days; two cases with different incident dates never match, and a missing incident date does not exempt the send). error.details: { matches, overrideField }. Checked before the attempt is recorded; to send anyway, submit again with allowDuplicateClient: true and a fresh idempotencyKey. - 502 salesforce_unavailable — no usable Salesforce access token for this connection. - 502 salesforce_read_failed — the Salesforce SOQL read of the source record failed. Requires FULL tier.\",\"dateModified\":\"2026-11-22T01:28:11.680Z\",\"isPartOf\":{\"@id\":\"https://docs.casexchange.com#website\"},\"breadcrumb\":{\"@id\":\"https://docs.casexchange.com/api-reference/salesforce/send-a-salesforce-record-to-casexchange-as-a-new-case-or-re-referral#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.casexchange.com/api-reference/salesforce/send-a-salesforce-record-to-casexchange-as-a-new-case-or-re-referral#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Endpoints\",\"item\":\"https://docs.casexchange.com/api-reference/account/identify-the-calling-api-key\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Salesforce\",\"item\":\"https://docs.casexchange.com/api-reference/salesforce/get-the-active-sending-profile-mapping-for-an-objectrecord-type\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Send a Salesforce record to CaseXchange as a new case or re-referral\",\"item\":\"https://docs.casexchange.com/api-reference/salesforce/send-a-salesforce-record-to-casexchange-as-a-new-case-or-re-referral\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.casexchange.com/api-reference/salesforce/send-a-salesforce-record-to-casexchange-as-a-new-case-or-re-referral#apireference\",\"headline\":\"Send a Salesforce record to CaseXchange as a new case or re-referral\",\"name\":\"Send a Salesforce record to CaseXchange as a new case or re-referral\",\"description\":\"Turns an org-side \\\"send this record to CaseXchange\\\" submit into a durable, idempotent CaseXchange case creation (or re-referral to a new firm) — spec §7.2. Reads the source record from Salesforce using the firm's active, activated, interactive-send-enabled v2 sending profile, applies its confirmed prefill links plus any overrides, and creates (or re-refers) a case. Idempotency: pass a fresh idempotencyKey (UUID) on every distinct submit. Replaying the same key returns the original outcome with 200 and attempt.replay: true instead of creating a duplicate case; a genuinely new submit must use a new key. Observing write-back: there is NO status-check endpoint. Once this call returns, the CaseXchange case exists, but its bridge fields (match key, status, reference number, deep link) are stamped back onto the source Salesforce record asynchronously by the write-back job — observe completion by reading those fields on the source record (typically within ~5 minutes). A send that exhausts its write-back retries moves to needs_attention and is paused for an admin; that state sends NO signal to the org side, so clients should surface a send whose fields remain unstamped after a timeout as stale rather than wait indefinitely. Error codes (409s carry a per-code error.details object — see the 409 response): - 400 match_key_missing — the resolved sending profile has no match key configured at all (send is not supported); an external-ID or lookup match key is required. - 400 validation_error — the built create payload failed validation; error.details.errors carries the field-level issues. - 400 bad_request — a re-refer business-rule rejection propagated from the re-referral service (e.g. the case is not in a re-referable status, or no prior referral exists); the message is descriptive. - 404 send_mapping_not_configured — no active, activated, interactive-send-enabled v2 sending profile matches the given object/record type (exact record-type match, falling back to the \\\"Any record type\\\" profile). - 404 source_record_not_found — sourceRecordId does not exist (or is not visible) in Salesforce. - 404 linked_case_not_found — reRefer was requested but no linked CaseXchange case exists for this record (or it no longer exists). - 409 record_already_sent — the record is already linked to a CaseXchange case and reRefer was not requested. error.details: { baseCaseId, referenceNumber, baseCaseReferenceNumber } (the existing case, so the client can offer re-refer; referenceNumber is the linked referral's number, baseCaseReferenceNumber the case's). - 409 record_already_linked — the record already carries a match-key value from a prior send with no active link. error.details: { matchKeyValue }. - 409 send_in_progress — a send for this record (or idempotency key) is already in flight. error.details: { retryAfterMs } — the remaining in-flight window (floored at 0) to back off before retrying. - 409 attempt_failed — a previous send with this idempotency key failed; submit a fresh key to retry. error.details: { failureCode, lastError }. - 409 duplicate_client_referral — your firm already referred this client to the target firm from another case of the same case type (live, or sent within 7 days; two cases with different incident dates never match, and a missing incident date does not exempt the send). error.details: { matches, overrideField }. Checked before the attempt is recorded; to send anyway, submit again with allowDuplicateClient: true and a fresh idempotencyKey. - 502 salesforce_unavailable — no usable Salesforce access token for this connection. - 502 salesforce_read_failed — the Salesforce SOQL read of the source record failed. Requires FULL tier.\",\"url\":\"https://docs.casexchange.com/api-reference/salesforce/send-a-salesforce-record-to-casexchange-as-a-new-case-or-re-referral\",\"mainEntityOfPage\":{\"@id\":\"https://docs.casexchange.com/api-reference/salesforce/send-a-salesforce-record-to-casexchange-as-a-new-case-or-re-referral#webpage\"},\"dateModified\":\"2026-11-22T01:28:11.680Z\",\"publisher\":{\"@id\":\"https://docs.casexchange.com/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.casexchange.com#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"CaseXchange Public API\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"CaseXchange Public API\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/api-reference/salesforce/send-a-salesforce-record-to-casexchange-as-a-new-case-or-re-referral.md","siteName":"CaseXchange Public API","nav":{"global":null,"tabs":[{"tab":"Guides","pages":[{"title":"Guides","href":""}]},{"tab":"API","groups":[{"group":"Get started","pages":[{"title":"Integration Overview","icon":"terminal","sidebarTitle":"Introduction","href":"/api-reference/overview"},{"title":"Response Format","icon":"brackets-curly","sidebarTitle":"Response format","href":"/api-reference/response-format"},{"title":"Error Handling","icon":"triangle-exclamation","sidebarTitle":"Error handling","href":"/api-reference/error-handling"},{"title":"Integration Workflows","icon":"diagram-project","sidebarTitle":"Workflows","href":"/api-reference/workflows"}]},{"group":"Endpoints","pages":[{"group":"Account","expanded":false,"pages":[{"title":"Identify the calling API key","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yml get /me","href":"/api-reference/account/identify-the-calling-api-key"},{"title":"List your practice's clinicians","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yml get /me/doctors","href":"/api-reference/account/list-your-practices-clinicians"},{"title":"List your practice's locations","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yml get /me/locations","href":"/api-reference/account/list-your-practices-locations"}]},{"group":"Analytics","expanded":false,"pages":[{"title":"Get dashboard analytics","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yml get /analytics/dashboard","href":"/api-reference/analytics/get-dashboard-analytics"},{"title":"Get case analytics","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yml get /analytics/cases","href":"/api-reference/analytics/get-case-analytics"},{"title":"Get sent-referral analytics","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yml get /analytics/sent","href":"/api-reference/analytics/get-sent-referral-analytics"},{"title":"Get received-referral analytics","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yml get /analytics/received","href":"/api-reference/analytics/get-received-referral-analytics"},{"title":"Get homepage analytics","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yml get /analytics/homepage","href":"/api-reference/analytics/get-homepage-analytics"},{"title":"List cases in a status","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yml get /analytics/cases-by-status","href":"/api-reference/analytics/list-cases-in-a-status"},{"title":"Get received-referral revenue analytics","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yml get /analytics/revenue-received","href":"/api-reference/analytics/get-received-referral-revenue-analytics"},{"title":"Get sent-referral revenue analytics","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yml get /analytics/revenue-sent","href":"/api-reference/analytics/get-sent-referral-revenue-analytics"},{"title":"Get referral-flow analytics","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yml get /analytics/referrals","href":"/api-reference/analytics/get-referral-flow-analytics"}]},{"group":"Cases","expanded":false,"pages":[{"title":"List cases","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yml get /cases","href":"/api-reference/cases/list-cases"},{"title":"Create a case","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yml post /cases","href":"/api-reference/cases/create-a-case"},{"title":"Get case by ID","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yml get /cases/{id}","href":"/api-reference/cases/get-case-by-id"},{"title":"Update a case","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yml put /cases/{id}","href":"/api-reference/cases/update-a-case"},{"title":"Delete a case","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yml delete /cases/{id}","href":"/api-reference/cases/delete-a-case"},{"title":"Get case status history","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yml get /cases/{id}/status-history","href":"/api-reference/cases/get-case-status-history"},{"title":"Acknowledge a case","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yml post /cases/{id}/acknowledge","href":"/api-reference/cases/acknowledge-a-case"},{"title":"Update case status","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yml post /cases/{id}/status","href":"/api-reference/cases/update-case-status"},{"title":"Close a case","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yml post /cases/{id}/close","href":"/api-reference/cases/close-a-case"}]},{"group":"Documents","expanded":false,"pages":[{"title":"List documents for a case","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yml get /cases/{caseId}/documents","href":"/api-reference/documents/list-documents-for-a-case"},{"title":"Upload a document","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yml post /cases/{caseId}/documents","href":"/api-reference/documents/upload-a-document"},{"title":"Get document download URL","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yml get /cases/{caseId}/documents/{docId}/download","href":"/api-reference/documents/get-document-download-url"},{"title":"Delete a document","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yml delete /cases/{caseId}/documents/{docId}","href":"/api-reference/documents/delete-a-document"}]},{"group":"Export","expanded":false,"pages":[{"title":"Download the full analytics workbook","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yml get /analytics/export","href":"/api-reference/export/download-the-full-analytics-workbook"},{"title":"Download one analytics category as XLSX","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yml get /analytics/{category}/export","href":"/api-reference/export/download-one-analytics-category-as-xlsx"},{"title":"Download case data as CSV or XLSX","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yml get /cases/export","href":"/api-reference/export/download-case-data-as-csv-or-xlsx"}]},{"group":"Extension","expanded":false,"pages":[{"title":"Report a selector miss from the browser extension","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yml post /extension/telemetry/selector-miss","href":"/api-reference/extension/report-a-selector-miss-from-the-browser-extension"}]},{"group":"External Links","expanded":false,"pages":[{"title":"List external links for a system","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yml get /external-links/list","href":"/api-reference/external-links/list-external-links-for-a-system"},{"title":"Look up a link by external ID","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yml get /external-links","href":"/api-reference/external-links/look-up-a-link-by-external-id"},{"title":"Create an external link","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yml post /external-links","href":"/api-reference/external-links/create-an-external-link"},{"title":"Replace an external link","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yml post /external-links/{id}/replace","href":"/api-reference/external-links/replace-an-external-link"},{"title":"Delete an external link","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yml delete /external-links/{id}","href":"/api-reference/external-links/delete-an-external-link"}]},{"group":"Firms","expanded":false,"pages":[{"title":"List firms directory","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yml get /firms/directory","href":"/api-reference/firms/list-firms-directory"},{"title":"Get the caller's firm","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yml get /firms/me","href":"/api-reference/firms/get-the-callers-firm"},{"title":"Update the caller's firm","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yml put /firms/me","href":"/api-reference/firms/update-the-callers-firm"},{"title":"List firms available to receive referrals","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yml get /firms/available","href":"/api-reference/firms/list-firms-available-to-receive-referrals"},{"title":"Get firm by ID","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yml get /firms/{id}","href":"/api-reference/firms/get-firm-by-id"}]},{"group":"Health","expanded":false,"pages":[{"title":"Public API health check","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yml get /health","href":"/api-reference/health/public-api-health-check"}]},{"group":"Import","expanded":false,"pages":[{"title":"Bulk import cases via CSV","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yml post /import/cases","href":"/api-reference/import/bulk-import-cases-via-csv"},{"title":"Bulk update cases via CSV","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yml post /import/cases/update","href":"/api-reference/import/bulk-update-cases-via-csv"},{"title":"Get a bulk update job","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yml get /import/cases/update/jobs/{jobId}","href":"/api-reference/import/get-a-bulk-update-job"}]},{"group":"Med Cases","expanded":false,"pages":[{"title":"List med cases","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yml get /med-cases","href":"/api-reference/med-cases/list-med-cases"},{"title":"Create a med case","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yml post /med-cases","href":"/api-reference/med-cases/create-a-med-case"},{"title":"Get med case by ID","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yml get /med-cases/{id}","href":"/api-reference/med-cases/get-med-case-by-id"},{"title":"Update a med case","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yml put /med-cases/{id}","href":"/api-reference/med-cases/update-a-med-case"},{"title":"Delete a med case (not supported)","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yml delete /med-cases/{id}","href":"/api-reference/med-cases/delete-a-med-case-not-supported"},{"title":"List referrals on a med case","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yml get /med-cases/{id}/referrals","href":"/api-reference/med-cases/list-referrals-on-a-med-case"},{"title":"Create a referral on a med case","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yml post /med-cases/{id}/referrals","href":"/api-reference/med-cases/create-a-referral-on-a-med-case"},{"title":"Get a referral on a med case","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yml get /med-cases/{id}/referrals/{referralId}","href":"/api-reference/med-cases/get-a-referral-on-a-med-case"},{"title":"Update a referral on a med case","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yml put /med-cases/{id}/referrals/{referralId}","href":"/api-reference/med-cases/update-a-referral-on-a-med-case"},{"title":"Acknowledge a med referral (provider)","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yml post /med-cases/{id}/referrals/{referralId}/acknowledge","href":"/api-reference/med-cases/acknowledge-a-med-referral-provider"},{"title":"Accept a med referral (provider)","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yml post /med-cases/{id}/referrals/{referralId}/accept","href":"/api-reference/med-cases/accept-a-med-referral-provider"},{"title":"Reject a med referral (provider)","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yml post /med-cases/{id}/referrals/{referralId}/reject","href":"/api-reference/med-cases/reject-a-med-referral-provider"},{"title":"Start treatment on a med referral (provider)","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yml post /med-cases/{id}/referrals/{referralId}/start-treatment","href":"/api-reference/med-cases/start-treatment-on-a-med-referral-provider"},{"title":"Complete treatment on a med referral (provider)","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yml post /med-cases/{id}/referrals/{referralId}/complete-treatment","href":"/api-reference/med-cases/complete-treatment-on-a-med-referral-provider"},{"title":"Withdraw a med referral","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yml post /med-cases/{id}/referrals/{referralId}/withdraw","href":"/api-reference/med-cases/withdraw-a-med-referral"},{"title":"Close a med referral","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yml post /med-cases/{id}/referrals/{referralId}/close","href":"/api-reference/med-cases/close-a-med-referral"},{"title":"List insurance records the API key can access","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yml get /insurances","href":"/api-reference/med-cases/list-insurance-records-the-api-key-can-access"},{"title":"Get a single insurance record","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yml get /insurances/{id}","href":"/api-reference/med-cases/get-a-single-insurance-record"},{"title":"List insurance records for a single med case","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yml get /med-cases/{id}/insurances","href":"/api-reference/med-cases/list-insurance-records-for-a-single-med-case"}]},{"group":"Med Appointments","expanded":false,"pages":[{"title":"List appointments on a med case","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yml get /med-cases/{caseId}/appointments","href":"/api-reference/med-appointments/list-appointments-on-a-med-case"},{"title":"Add an appointment","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yml post /med-cases/{caseId}/appointments","href":"/api-reference/med-appointments/add-an-appointment"},{"title":"Get an appointment","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yml get /med-cases/{caseId}/appointments/{appointmentId}","href":"/api-reference/med-appointments/get-an-appointment"},{"title":"Edit an appointment","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yml put /med-cases/{caseId}/appointments/{appointmentId}","href":"/api-reference/med-appointments/edit-an-appointment"},{"title":"Remove an appointment","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yml delete /med-cases/{caseId}/appointments/{appointmentId}","href":"/api-reference/med-appointments/remove-an-appointment"}]},{"group":"Med Billing","expanded":false,"pages":[{"title":"List billing lines on an appointment","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yml get /med-cases/{caseId}/appointments/{appointmentId}/billable-events","href":"/api-reference/med-billing/list-billing-lines-on-an-appointment"},{"title":"Add a billing line","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yml post /med-cases/{caseId}/appointments/{appointmentId}/billable-events","href":"/api-reference/med-billing/add-a-billing-line"},{"title":"Edit a billing line","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yml patch /med-cases/{caseId}/appointments/{appointmentId}/billable-events/{eventId}","href":"/api-reference/med-billing/edit-a-billing-line"},{"title":"Remove a billing line","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yml delete /med-cases/{caseId}/appointments/{appointmentId}/billable-events/{eventId}","href":"/api-reference/med-billing/remove-a-billing-line"}]},{"group":"MedEx Documents","expanded":false,"pages":[{"title":"List MedEx case documents","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yml get /med-cases/{caseId}/documents","href":"/api-reference/medex-documents/list-medex-case-documents"},{"title":"Upload a MedEx case document","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yml post /med-cases/{caseId}/documents","href":"/api-reference/medex-documents/upload-a-medex-case-document"},{"title":"Retrieve a MedEx case document","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yml get /med-cases/{caseId}/documents/{documentId}","href":"/api-reference/medex-documents/retrieve-a-medex-case-document"}]},{"group":"MedEx Pharmacy","expanded":false,"pages":[{"title":"List prescriptions routed to your pharmacy","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yml get /med-cases/{caseId}/prescriptions","href":"/api-reference/med-prescriptions/list-prescriptions-routed-to-your-pharmacy"},{"title":"List pharmacy fills on a referral","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yml get /med-cases/{caseId}/referrals/{referralId}/pharmacy/fills","href":"/api-reference/med-pharmacy-ledger/list-pharmacy-fills-on-a-referral"},{"title":"Record a dispensed fill","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yml post /med-cases/{caseId}/referrals/{referralId}/pharmacy/fills","href":"/api-reference/med-pharmacy-ledger/record-a-dispensed-fill"},{"title":"Get a pharmacy fill","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yml get /med-cases/{caseId}/referrals/{referralId}/pharmacy/fills/{fillId}","href":"/api-reference/med-pharmacy-ledger/get-a-pharmacy-fill"},{"title":"Edit a pharmacy fill","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yml patch /med-cases/{caseId}/referrals/{referralId}/pharmacy/fills/{fillId}","href":"/api-reference/med-pharmacy-ledger/edit-a-pharmacy-fill"},{"title":"Void a pharmacy fill","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yml post /med-cases/{caseId}/referrals/{referralId}/pharmacy/fills/{fillId}/void","href":"/api-reference/med-pharmacy-ledger/void-a-pharmacy-fill"},{"title":"List pharmacy transactions on a referral","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yml get /med-cases/{caseId}/referrals/{referralId}/pharmacy/transactions","href":"/api-reference/med-pharmacy-ledger/list-pharmacy-transactions-on-a-referral"},{"title":"Record a payment or adjustment","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yml post /med-cases/{caseId}/referrals/{referralId}/pharmacy/transactions","href":"/api-reference/med-pharmacy-ledger/record-a-payment-or-adjustment"},{"title":"Get a pharmacy transaction","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yml get /med-cases/{caseId}/referrals/{referralId}/pharmacy/transactions/{transactionId}","href":"/api-reference/med-pharmacy-ledger/get-a-pharmacy-transaction"},{"title":"Edit a transaction's details","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yml patch /med-cases/{caseId}/referrals/{referralId}/pharmacy/transactions/{transactionId}","href":"/api-reference/med-pharmacy-ledger/edit-a-transactions-details"},{"title":"Get the ledger balance for a referral","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yml get /med-cases/{caseId}/referrals/{referralId}/pharmacy/balance","href":"/api-reference/med-pharmacy-ledger/get-the-ledger-balance-for-a-referral"},{"title":"List reported balance snapshots","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yml get /med-cases/{caseId}/referrals/{referralId}/pharmacy/balance-snapshots","href":"/api-reference/med-pharmacy-ledger/list-reported-balance-snapshots"},{"title":"Report your current balance","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yml post /med-cases/{caseId}/referrals/{referralId}/pharmacy/balance-snapshots","href":"/api-reference/med-pharmacy-ledger/report-your-current-balance"}]},{"group":"Messages","expanded":false,"pages":[{"title":"Send a partner message","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yml post /messages/send","href":"/api-reference/messages/send-a-partner-message"}]},{"group":"Network","expanded":false,"pages":[{"title":"List pending relationships","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yml get /network/pending","href":"/api-reference/network/list-pending-relationships"},{"title":"Get an outbound network firm","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yml get /network/outbound/{firmId}","href":"/api-reference/network/get-an-outbound-network-firm"},{"title":"Create or update an outbound relationship","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yml put /network/outbound/{firmId}","href":"/api-reference/network/create-or-update-an-outbound-relationship"},{"title":"Update an outbound relationship","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yml patch /network/outbound/{firmId}","href":"/api-reference/network/update-an-outbound-relationship"},{"title":"Get an inbound network firm","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yml get /network/inbound/{firmId}","href":"/api-reference/network/get-an-inbound-network-firm"},{"title":"Update or accept/reject an inbound relationship","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yml patch /network/inbound/{firmId}","href":"/api-reference/network/update-or-acceptreject-an-inbound-relationship"}]},{"group":"Notifications","expanded":false,"pages":[{"title":"Get notification preferences","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yml get /notifications/preferences","href":"/api-reference/notifications/get-notification-preferences"},{"title":"Update notification preferences","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yml put /notifications/preferences","href":"/api-reference/notifications/update-notification-preferences"},{"title":"List notification email addresses","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yml get /notifications/emails","href":"/api-reference/notifications/list-notification-email-addresses"},{"title":"Add a notification email address","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yml post /notifications/emails","href":"/api-reference/notifications/add-a-notification-email-address"}]},{"group":"Received Referrals","expanded":false,"pages":[{"title":"List received referrals","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yml get /received-referrals","href":"/api-reference/received-referrals/list-received-referrals"},{"title":"Get available status transitions (receiver)","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yml get /received-referrals/{id}/available-statuses","href":"/api-reference/received-referrals/get-available-status-transitions-receiver"},{"title":"Get a received referral","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yml get /received-referrals/{id}","href":"/api-reference/received-referrals/get-a-received-referral"},{"title":"Update a received referral","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yml patch /received-referrals/{id}","href":"/api-reference/received-referrals/update-a-received-referral"}]},{"group":"Reference Data","expanded":false,"pages":[{"title":"List case types","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yml get /case-types","href":"/api-reference/reference-data/list-case-types"},{"title":"List custom fields for a case type","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yml get /case-types/{id}/fields","href":"/api-reference/reference-data/list-custom-fields-for-a-case-type"},{"title":"List jurisdictions","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yml get /jurisdictions","href":"/api-reference/reference-data/list-jurisdictions"},{"title":"List counties","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yml get /counties","href":"/api-reference/reference-data/list-counties"}]},{"group":"Referrals","expanded":false,"pages":[{"title":"List referrals","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yml get /referrals","href":"/api-reference/referrals/list-referrals"},{"title":"Find referrals by client identifiers","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yml post /referrals/match","href":"/api-reference/referrals/find-referrals-by-client-identifiers"},{"title":"Get referral status history","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yml get /referrals/{id}/status-history","href":"/api-reference/referrals/get-referral-status-history"},{"title":"Get available status transitions","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yml get /referrals/{id}/available-statuses","href":"/api-reference/referrals/get-available-status-transitions"},{"title":"Get referral by ID","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yml get /referrals/{id}","href":"/api-reference/referrals/get-referral-by-id"},{"title":"Update a referral","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yml put /referrals/{id}","href":"/api-reference/referrals/update-a-referral"},{"title":"Delete a draft referral","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yml delete /referrals/{id}","href":"/api-reference/referrals/delete-a-draft-referral"},{"title":"Send a draft referral","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yml post /referrals/{id}/send","href":"/api-reference/referrals/send-a-draft-referral"},{"title":"Acknowledge a referral","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yml post /referrals/{id}/acknowledge","href":"/api-reference/referrals/acknowledge-a-referral"},{"title":"Begin investigating","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yml post /referrals/{id}/begin-investigating","href":"/api-reference/referrals/begin-investigating"},{"title":"Mark a referral as signed","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yml post /referrals/{id}/sign","href":"/api-reference/referrals/mark-a-referral-as-signed"},{"title":"Start litigation","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yml post /referrals/{id}/start-litigation","href":"/api-reference/referrals/start-litigation"},{"title":"Begin closing","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yml post /referrals/{id}/begin-closing","href":"/api-reference/referrals/begin-closing"},{"title":"Close a referral","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yml post /referrals/{id}/close","href":"/api-reference/referrals/close-a-referral"},{"title":"Reject a referral","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yml post /referrals/{id}/reject","href":"/api-reference/referrals/reject-a-referral"},{"title":"Withdraw a referral","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yml post /referrals/{id}/withdraw","href":"/api-reference/referrals/withdraw-a-referral"}]},{"group":"Routing","expanded":false,"pages":[{"title":"Evaluate routing for a case profile","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yml get /routing/evaluate","href":"/api-reference/routing/evaluate-routing-for-a-case-profile"},{"title":"Evaluate routing for an existing case (re-refer)","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yml get /routing/re-refer","href":"/api-reference/routing/evaluate-routing-for-an-existing-case-re-refer"},{"title":"List routing rules","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yml get /routing/rules","href":"/api-reference/routing/list-routing-rules"},{"title":"Create a routing rule","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yml post /routing/rules","href":"/api-reference/routing/create-a-routing-rule"},{"title":"Update a routing rule","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yml put /routing/rules/{id}","href":"/api-reference/routing/update-a-routing-rule"},{"title":"Delete a routing rule","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yml delete /routing/rules/{id}","href":"/api-reference/routing/delete-a-routing-rule"}]},{"group":"Salesforce","expanded":false,"pages":[{"title":"Get the active sending-profile mapping for an object/record-type","description":"Org-facing mapping fetch for the managed package's send LWC: match key, prefill fields, writeback fields, and the resolved send-field catalog for the firm's active, activated, interactive-send-enabled v2 sending profile matching the given object and record type. An exact record-type match wins; if no profile matches that record type exactly, a profile configured with no record type (\"Any record type\") serves as the wildcard fallback. Requires FULL tier.","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yml get /salesforce/send-mapping","href":"/api-reference/salesforce/get-the-active-sending-profile-mapping-for-an-objectrecord-type"},{"title":"Send a Salesforce record to CaseXchange as a new case or re-referral","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yml post /salesforce/interactive-sends","href":"/api-reference/salesforce/send-a-salesforce-record-to-casexchange-as-a-new-case-or-re-referral"}]},{"group":"Sent Cases","expanded":false,"pages":[{"title":"List sent cases","description":"Paginated list of cases owned by the caller's firm, each with its most-recent referral.","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yml get /sent-cases","href":"/api-reference/sent-cases/list-sent-cases"},{"title":"Create a sent case","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yml post /sent-cases","href":"/api-reference/sent-cases/create-a-sent-case"},{"title":"Get a sent case","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yml get /sent-cases/{id}","href":"/api-reference/sent-cases/get-a-sent-case"},{"title":"Update a sent case","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yml patch /sent-cases/{id}","href":"/api-reference/sent-cases/update-a-sent-case"},{"title":"Get available status transitions (sender)","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yml get /sent-cases/{id}/available-statuses","href":"/api-reference/sent-cases/get-available-status-transitions-sender"},{"title":"Refer / re-refer a sent case","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yml post /sent-cases/{id}/refer","href":"/api-reference/sent-cases/refer-re-refer-a-sent-case"}]},{"group":"SSO","expanded":false,"pages":[{"title":"Mint a single-use SSO link","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yml post /sso-links","href":"/api-reference/sso/mint-a-single-use-sso-link"}]},{"group":"Status Updates","expanded":false,"pages":[{"title":"Look up status updates by flexible id","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yml get /status-updates/lookup","href":"/api-reference/status-updates/look-up-status-updates-by-flexible-id"},{"title":"List status updates","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yml get /status-updates","href":"/api-reference/status-updates/list-status-updates"}]},{"group":"Users","expanded":false,"pages":[{"title":"List the caller's firm users","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yml get /users","href":"/api-reference/users/list-the-callers-firm-users"},{"title":"Invite a user","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yml post /users","href":"/api-reference/users/invite-a-user"},{"title":"Update a user","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yml put /users/{id}","href":"/api-reference/users/update-a-user"},{"title":"Deactivate a user","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yml delete /users/{id}","href":"/api-reference/users/deactivate-a-user"}]},{"group":"Webhooks","expanded":false,"pages":[{"title":"List webhook subscriptions","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yml get /webhooks","href":"/api-reference/webhooks/list-webhook-subscriptions"},{"title":"Create a webhook subscription","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yml post /webhooks","href":"/api-reference/webhooks/create-a-webhook-subscription"},{"title":"Get a webhook subscription","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yml get /webhooks/{id}","href":"/api-reference/webhooks/get-a-webhook-subscription"},{"title":"Update a webhook subscription","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yml patch /webhooks/{id}","href":"/api-reference/webhooks/update-a-webhook-subscription"},{"title":"Delete a webhook subscription","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yml delete /webhooks/{id}","href":"/api-reference/webhooks/delete-a-webhook-subscription"},{"title":"List deliveries for a webhook subscription","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yml get /webhooks/{id}/deliveries","href":"/api-reference/webhooks/list-deliveries-for-a-webhook-subscription"},{"title":"Send a test event","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yml post /webhooks/{id}/test","href":"/api-reference/webhooks/send-a-test-event"},{"title":"Rotate the signing secret","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yml post /webhooks/{id}/rotate-secret","href":"/api-reference/webhooks/rotate-the-signing-secret"},{"title":"Enable echo mode","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yml post /webhooks/{id}/echo/enable","href":"/api-reference/webhooks/enable-echo-mode"},{"title":"Disable echo mode","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yml post /webhooks/{id}/echo/disable","href":"/api-reference/webhooks/disable-echo-mode"},{"title":"List echo captures","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yml get /webhooks/{id}/echo/captures","href":"/api-reference/webhooks/list-echo-captures"}]}]}]},{"tab":"Webhooks","pages":[{"title":"Webhooks","href":"/webhooks"}]}]},"basePath":"","title":"Send a Salesforce record to CaseXchange as a new case or re-referral - CaseXchange Public API","deploymentId":"dpl_BLZw3QngerHodH9E8mGgC4v752y3","buildId":"dpl_BLZw3QngerHodH9E8mGgC4v752y3","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-CaRkHcld.js","snippetPresets-CbOVSLWB.js","utils-cjri0g4r.js","style-to-object-BY3JEAdk.js","utils-DINdUa17.js","v4-DIgz8zy6.js","addTypeLabelsToSchema-B6z-PJGf.js","conditional-requirements-CFM0id0Q.js","cloneDeep-BldndzCM.js","_Uint8Array-BFUkDgJK.js","isObject-FP1Yky1u.js","ApiExamples-gah5G0c1.js","usePlaygroundInputsStore-DMbftGRK.js","shallow-BPuQ-dV8.js","isEqual-Du6c450V.js","CodeSnippets-BSVM0Ibi.js","CodeSnippet-BtGQRZnK.js","use-playground-group-access-98JyaSW7.js","Page-DuvGhd6e.js","api-description-markdown-ja0XM5Ae.js","DynamicMarkdown-DgKZ4_wp.js","SectionHeading-S4Jc_qPe.js","MethodPill-HIsDH_bI.js","getPastedJson-BKEmMYEO.js","Check2Icon-CRFAnWm9.js","axios-CsQoIw0U.js","Markdown-CexXCNoj.js","AssistantPageLink-C2AZnMAs.js","dist-CjxLTLs9.js","lib-DMeTj1gb.js","lib-B8HbPgcC.js","katex-Dbtb6Wk7.js","html-void-elements-mCSPHezU.js","marked.esm-CZWythHk.js"]}