Skip to main content

Finn is now All Gas No Brakes. Same team, same product, now the whole team.

Docs menu

API reference

CRM cases

Open, read and move CRM cases: claims, orders or matters on a record, with parties, documents, forms and follow-ups. Member tokens only.

Beta. Two switches apply. The CRM API must be on for your organization; while it is off, these endpoints answer as an unknown route (404). CRM cases must be on too (GET /crm/setup shows it); while they are off, these endpoints answer 404 feature_off. Ask our support team to turn them on.

Overview

A CRM case is one piece of work for a client record: a claim, an order, a matter. A record can have several cases, each with its own pipeline, stage, owner, parties, documents, forms checklist and follow-ups. The record mirrors its primary case.

These endpoints read and change cases, their parties, and the relations between records. They are the API behind the MCP server's crm_*_case tools.

CRM cases are not Operator cases. Operator cases are an AI agent's runs; see Cases.

Base URL: https://api.hirefinn.ai/api/v1. See authentication and scopes.

Credential: member token only

Every endpoint here acts as one person, with that person's contact visibility. Call it with their personal MCP key (wsk_mcp_..., or an older finn_mcp_...) or an AI app's OAuth access token (wsk_oat_..., or an older finn_oat_...). A case or record the person can't see answers 404, the same as one that doesn't exist.

An org API key gets 403 user_token_required. Org keys use the Records endpoints (/contacts) instead.

If the person belongs to more than one organization, send Finn-Org with the organization's ID. GET /me/organizations lists the organizations a token can act in.

Scopes

ScopeAllows
crm:readEvery read on this page.
crm:writeOpen and update cases, add, change and remove parties, link and unlink records.
crm:stageMove a case to another stage.

{id} in a case path is the case's UUID or its Case ID (ref_no). Bodies and answers use snake_case.

Cases

MethodPathScopeWhat it does
GET/crm/casescrm:readList CRM cases.
POST/crm/casescrm:writeOpen a CRM case for a record.
GET/crm/pipelinescrm:readList CRM pipelines.
GET/crm/cases/{id}crm:readGet a CRM case.
PATCH/crm/cases/{id}crm:writeUpdate a CRM case.
POST/crm/cases/{id}/stage_movescrm:stageMove a CRM case to another stage.
GET/crm/cases/{id}/stage_gatecrm:readCheck a CRM case's stage gate.
GET/crm/cases/{id}/documentscrm:readList a CRM case's documents.
GET/crm/cases/{id}/forms_checklistcrm:readGet a CRM case's forms checklist.
GET/crm/cases/{id}/timelinecrm:readGet a CRM case's timeline.
GET/crm/cases/{id}/follow_upscrm:readList a CRM case's follow-ups.

GET /crm/cases filters by state (open, won, lost), stage, owner_id (none for no owner), pipeline and record_id. Each takes a comma-separated list. It pages with limit (1 to 100, default 25) and cursor; send the same filters with the cursor. See pagination.

A stage move checks the case's stage gate: its own documents, checks and forms. Read GET /crm/cases/{id}/stage_gate first to see what is missing.

Parties

MethodPathScopeWhat it does
GET/crm/cases/{id}/partiescrm:readList a CRM case's parties.
POST/crm/cases/{id}/partiescrm:writeAdd a party to a CRM case.
PATCH/crm/cases/{id}/parties/{party_id}crm:writeUpdate a party of a CRM case.
DELETE/crm/cases/{id}/parties/{party_id}crm:writeRemove a party from a CRM case.

A party is another record on the case with a role, for example a doctor or a lawyer. Add an existing record with contact_id, or a new contact with new_contact (name, phone, email).

Record cases and relations

MethodPathScopeWhat it does
GET/crm/records/{id}/casescrm:readList a record's cases.
GET/crm/records/{id}/relationscrm:readList a record's relations.
POST/crm/records/{id}/relationscrm:writeLink a record to another.
DELETE/crm/records/{id}/relations/{relation_id}crm:writeUnlink a relation.

Writes held for approval

POST /crm/cases/{id}/stage_moves is held for the person to approve, exactly like a record's stage move (hold action contact.stage_move). It answers 202 with "status": "pending_approval" and an approval_id; poll GET /approvals/{id}. Once approved, it runs as sent. See requests held for approval.

Writes take an Idempotency-Key header. A retry with the same key returns the first answer, or the same hold.

Example: open a case for a record

curl -X POST https://api.hirefinn.ai/api/v1/crm/cases \
  -H "Authorization: Bearer $FINN_MCP_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: open-case-ravi-2026-11-27" \
  -d '{
    "record_id": "6f1c2a0e-8d1b-4b7a-9f3e-2c4d5e6f7a8b",
    "title": "Motor claim, November",
    "pipeline_key": "claims",
    "stage": "intake"
  }'

201 Created:

{
  "id": "2b7d9e4c-1a3f-4c8e-9d0b-6e5f4a3b2c1d",
  "ref_no": "CB-1042",
  "title": "Motor claim, November",
  "case_type_key": null,
  "case_type_label": null,
  "pipeline": { "id": "9a8b7c6d-5e4f-4a3b-8c2d-1e0f9a8b7c6d", "key": "claims", "label": "Claims" },
  "stage": "intake",
  "stage_label": "Intake",
  "stage_kind": "open",
  "substatus": null,
  "state": "open",
  "close_reason": null,
  "owner": { "id": "4d3c2b1a-0f9e-4d8c-7b6a-5f4e3d2c1b0a", "name": "Asha Menon" },
  "client": { "id": "6f1c2a0e-8d1b-4b7a-9f3e-2c4d5e6f7a8b", "ref_no": "C-2210", "name": "Ravi Rao", "phone": "+919800000001" },
  "parties": [],
  "custom_fields": {},
  "source": "api",
  "is_first": true,
  "is_primary": true,
  "opened_at": "2026-11-27T09:30:00.000Z",
  "closed_at": null,
  "stage_at": "2026-11-27T09:30:00.000Z",
  "created_at": "2026-11-27T09:30:00.000Z",
  "updated_at": "2026-11-27T09:30:00.000Z"
}
FieldTypeRequiredNotes
record_idstringYesThe client record.
titlestringNo
case_type_keystringNoA case type from GET /crm/setup.
pipeline_keystringNoFrom GET /crm/pipelines.
stagestringNoA stage key of that pipeline.
substatus, close_reason, owner_idstringNo
partiesarrayNoParties to add, as in POST /crm/cases/{id}/parties.

Rate limits

120 reads and 30 writes per minute per credential, shared with the same credential's other CRM calls. Reading one case (GET /crm/cases/{id}) also counts toward the daily limit on single-record reads (500 a day per credential). See rate limits.

Errors

StatusCodeWhen
400invalid_request, validation_failedThe body or a parameter isn't valid.
400org_conflictThe query or body names another organization than the one the request acts in.
401api_key_required, invalid_api_keyThe token is missing, unknown or revoked.
403user_token_requiredAn org API key. Use a member token.
403insufficient_scopeThe token lacks the scope.
403forbiddenThe person may not see or change this.
404not_foundNo such case or record visible to this person.
404feature_offCRM cases are off for your organization.
409stage_blockedThe stage gate stops the move. error.details lists what is missing. Other CRM checks keep their own code, such as case_exists.
423ai_apps_pausedAn admin paused all AI apps. Writes are refused; reads still work.
429rate_limitedOver the limit. Wait Retry-After seconds.