# Cases

The review workflow for each claim: assignment, status and notes.

Related guide: [Cases and appeals](https://provenanceauth.com/docs/attest/guides/cases-and-appeals.md)

## Endpoints

- `POST /v1/attest/cases/{claim_id}/notes`: [Add a case note](#post-v1-attest-cases-claim-id-notes)
- `GET /v1/attest/cases/{claim_id}`: [Retrieve a case](#get-v1-attest-cases-claim-id)
- `POST /v1/attest/cases/{claim_id}/assign`: [Assign a case](#post-v1-attest-cases-claim-id-assign)
- `POST /v1/attest/cases/{claim_id}/transition`: [Change a case's status](#post-v1-attest-cases-claim-id-transition)
- `GET /v1/attest/cases`: [List cases](#get-v1-attest-cases)

## The case summary object

### Attributes

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `id` | string | no | The case's ID. |
| `object` | enum | no | The type of object. One of `case`. |
| `claim_id` | string | no | The claim, or case in another vertical, the asset belongs to. |
| `status` | enum | no | The object's current status. One of `new`, `in_review`, `approved`, `denied`, `escalated`, `reopened`. |
| `assignee_account_id` | string \| null | no | Who the case is assigned to. |
| `risk_snapshot` | integer | no | Overall risk at case creation. |
| `overall_risk_score` | integer | no | Current overall risk (live). |
| `asset_count` | integer | no | How many assets the claim has. |
| `submitted_at` | timestamp \| null | no | When it was submitted. |
| `opened_at` | timestamp | no | When it was opened. |
| `updated_at` | timestamp | no | When it last changed. |
| `events` | array of objects | no | The events, oldest first. |
| `events.id` | string | yes | Unique identifier for the object. |
| `events.object` | enum | yes | The type of object. One of `case_event`. |
| `events.type` | string | yes | The type. |
| `events.from_status` | any \| null | no | The status it moved from. |
| `events.to_status` | any \| null | no | The status to move to. |
| `events.reason_code` | any \| null | no | A structured reason, from the fixed list. |
| `events.note` | string | yes | A note for the record. |
| `events.actor_account_id` | any \| null | yes | The account that acted. |
| `events.created_at` | string | yes | When it was created. |
| `events.case_id` | string | no | The case's ID. |

### Example

```json
{
  "id": "01M6VQBC6VQG94TH36D62YMH2D",
  "object": "case",
  "claim_id": "CLM-SANDBOX-FRAUD",
  "status": "escalated",
  "assignee_account_id": null,
  "risk_snapshot": 100,
  "overall_risk_score": 100,
  "asset_count": 2,
  "submitted_at": "2026-11-07T19:21:45.947Z",
  "opened_at": "2026-11-07T19:21:45.943Z",
  "updated_at": "2026-11-07T19:21:45.943Z"
}
```

## Events

Sent to your [webhook endpoints](https://provenanceauth.com/docs/integrate/webhooks.md) when they subscribe:

- `attest.case.status_changed`

## Add a case note

`POST /v1/attest/cases/{claim_id}/notes`

Adds a note to a case's history.

Auth: an API key, as `Authorization: Bearer <key>`.

### Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `Idempotency-Key` | header | string | no | Retry a create safely: the same key + request returns the stored response (24 h, per caller). |
| `claim_id` | path | string | yes | The claim, or case in another vertical, the asset belongs to. |
| `note` | body | string | yes | A note for the record. |

### Returns

The note, as a case event.

### Errors

- [`authentication_required`](https://provenanceauth.com/docs/platform/errors.md#authentication_required)
- [`invalid_json`](https://provenanceauth.com/docs/platform/errors.md#invalid_json)
- [`parameter_invalid`](https://provenanceauth.com/docs/platform/errors.md#parameter_invalid)
- [`parameter_missing`](https://provenanceauth.com/docs/platform/errors.md#parameter_missing)
- [`rate_limit_exceeded`](https://provenanceauth.com/docs/platform/errors.md#rate_limit_exceeded)
- [`resource_missing`](https://provenanceauth.com/docs/platform/errors.md#resource_missing)

### Request

**curl**

```bash
export PROVENANCE_KEY=prv_test_full_K7mN3xQp9RbT2vWm8sYd4cFjLhXn6gAe
curl -X POST "$PROVENANCE_API/v1/attest/cases/CLM-SANDBOX-CLEAN/notes" \
  -H "Authorization: Bearer $PROVENANCE_KEY" \
  -H "Content-Type: application/json" \
  -d '{ "note": "Called the policyholder to confirm the date of loss" }'
```

**Node**

```ts
const data = await (await fetch(`${process.env.PROVENANCE_API}/v1/attest/cases/CLM-SANDBOX-CLEAN/notes`, {
  method: "POST",
  headers: { Authorization: `Bearer ${process.env.PROVENANCE_KEY}`, "Content-Type": "application/json" },
  body: JSON.stringify({ "note": "Called the policyholder to confirm the date of loss" }),
})).json();
```

**Python**

```python
import os
import httpx

api = os.environ["PROVENANCE_API"]
data = httpx.post(f"{api}/v1/attest/cases/CLM-SANDBOX-CLEAN/notes", headers={"Authorization": f"Bearer {os.environ['PROVENANCE_KEY']}"}, json={
    "note": "Called the policyholder to confirm the date of loss"
}).json()
```

### Response 200

```json
{
  "id": "evt_01M6VQBD8YG5TD6R1PXD8KX9VF",
  "object": "case_event",
  "case_id": "case_01M6VQBD8T6EJ8D6BG27CNVNXT",
  "type": "note_added",
  "note": "Called the policyholder to confirm the date of loss",
  "actor_account_id": null,
  "created_at": "2026-11-07T19:21:47.038Z"
}
```

## Retrieve a case

`GET /v1/attest/cases/{claim_id}`

Returns a case with its full history of assignments, transitions and notes.

Auth: an API key, as `Authorization: Bearer <key>`.

### Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `claim_id` | path | string | yes | The claim, or case in another vertical, the asset belongs to. |

### Returns

The case and its history.

### Errors

- [`authentication_required`](https://provenanceauth.com/docs/platform/errors.md#authentication_required)
- [`rate_limit_exceeded`](https://provenanceauth.com/docs/platform/errors.md#rate_limit_exceeded)
- [`resource_missing`](https://provenanceauth.com/docs/platform/errors.md#resource_missing)

### Request

**curl**

```bash
export PROVENANCE_KEY=prv_test_full_K7mN3xQp9RbT2vWm8sYd4cFjLhXn6gAe
curl "$PROVENANCE_API/v1/attest/cases/CLM-SANDBOX-FRAUD" \
  -H "Authorization: Bearer $PROVENANCE_KEY"
```

**Node**

```ts
const data = await (await fetch(`${process.env.PROVENANCE_API}/v1/attest/cases/CLM-SANDBOX-FRAUD`, {
  headers: { Authorization: `Bearer ${process.env.PROVENANCE_KEY}` },
})).json();
```

**Python**

```python
import os
import httpx

api = os.environ["PROVENANCE_API"]
data = httpx.get(f"{api}/v1/attest/cases/CLM-SANDBOX-FRAUD", headers={"Authorization": f"Bearer {os.environ['PROVENANCE_KEY']}"}).json()
```

### Response 200

```json
{
  "id": "01M6VQBC6VQG94TH36D62YMH2D",
  "object": "case",
  "claim_id": "CLM-SANDBOX-FRAUD",
  "status": "escalated",
  "assignee_account_id": null,
  "risk_snapshot": 100,
  "overall_risk_score": 100,
  "asset_count": 2,
  "submitted_at": "2026-11-07T19:21:45.947Z",
  "opened_at": "2026-11-07T19:21:45.943Z",
  "updated_at": "2026-11-07T19:21:45.943Z",
  "events": [
    {
      "id": "evt_01M6VQBD7T8P119M08RKBP5Q59",
      "object": "case_event",
      "type": "explanation_rendered",
      "from_status": null,
      "to_status": null,
      "reason_code": null,
      "note": "template 2026-07-05.1",
      "actor_account_id": null,
      "created_at": "2026-11-07T19:21:47.002Z"
    }
  ]
}
```

## Assign a case

`POST /v1/attest/cases/{claim_id}/assign`

Assigns a case to a reviewer.

Auth: an API key, as `Authorization: Bearer <key>`.

### Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `Idempotency-Key` | header | string | no | Retry a create safely: the same key + request returns the stored response (24 h, per caller). |
| `claim_id` | path | string | yes | The claim, or case in another vertical, the asset belongs to. |
| `assignee_account_id` | body | string | yes | Who the case is assigned to. |

### Returns

The updated case. See [the case summary object](#object).

### Errors

- [`authentication_required`](https://provenanceauth.com/docs/platform/errors.md#authentication_required)
- [`invalid_json`](https://provenanceauth.com/docs/platform/errors.md#invalid_json)
- [`parameter_invalid`](https://provenanceauth.com/docs/platform/errors.md#parameter_invalid)
- [`parameter_missing`](https://provenanceauth.com/docs/platform/errors.md#parameter_missing)
- [`rate_limit_exceeded`](https://provenanceauth.com/docs/platform/errors.md#rate_limit_exceeded)
- [`resource_missing`](https://provenanceauth.com/docs/platform/errors.md#resource_missing)

### Request

**curl**

```bash
export PROVENANCE_KEY=prv_test_full_K7mN3xQp9RbT2vWm8sYd4cFjLhXn6gAe
curl -X POST "$PROVENANCE_API/v1/attest/cases/CLM-SANDBOX-CLEAN/assign" \
  -H "Authorization: Bearer $PROVENANCE_KEY" \
  -H "Content-Type: application/json" \
  -d '{ "assignee_account_id": "acct_000000000000000000000000000000c0" }'
```

**Node**

```ts
const data = await (await fetch(`${process.env.PROVENANCE_API}/v1/attest/cases/CLM-SANDBOX-CLEAN/assign`, {
  method: "POST",
  headers: { Authorization: `Bearer ${process.env.PROVENANCE_KEY}`, "Content-Type": "application/json" },
  body: JSON.stringify({ "assignee_account_id": "acct_000000000000000000000000000000c0" }),
})).json();
```

**Python**

```python
import os
import httpx

api = os.environ["PROVENANCE_API"]
data = httpx.post(f"{api}/v1/attest/cases/CLM-SANDBOX-CLEAN/assign", headers={"Authorization": f"Bearer {os.environ['PROVENANCE_KEY']}"}, json={
    "assignee_account_id": "acct_000000000000000000000000000000c0"
}).json()
```

### Response 200

```json
{
  "id": "case_01M6VQBD8T6EJ8D6BG27CNVNXT",
  "object": "case",
  "claim_id": "CLM-SANDBOX-CLEAN",
  "status": "new",
  "assignee_account_id": "acct_000000000000000000000000000000c0",
  "risk_snapshot": 0,
  "overall_risk_score": 0,
  "asset_count": 0,
  "submitted_at": null,
  "opened_at": "2026-11-07T19:21:47.034Z",
  "updated_at": "2026-11-07T19:21:47.036Z"
}
```

## Change a case's status

`POST /v1/attest/cases/{claim_id}/transition`

Moves a case to a new status. Approving, denying or escalating needs a reason_code. The attest.case.status_changed webhook fires.

Auth: an API key, as `Authorization: Bearer <key>`.

### Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `Idempotency-Key` | header | string | no | Retry a create safely: the same key + request returns the stored response (24 h, per caller). |
| `claim_id` | path | string | yes | The claim, or case in another vertical, the asset belongs to. |
| `to_status` | body | enum | yes | The status to move to. One of `in_review`, `approved`, `denied`, `escalated`, `reopened`. |
| `reason_code` | body | enum | no | A structured reason, from the fixed list. One of `provenance_verified`, `risk_accepted`, `signature_invalid`, `suspected_fraud`, `insufficient_evidence`, `policyholder_withdrew`, `OTHER`. |
| `note` | body | string | no | A note for the record. |

### Returns

The updated case. See [the case summary object](#object).

### Errors

- [`authentication_required`](https://provenanceauth.com/docs/platform/errors.md#authentication_required)
- [`invalid_json`](https://provenanceauth.com/docs/platform/errors.md#invalid_json)
- [`parameter_invalid`](https://provenanceauth.com/docs/platform/errors.md#parameter_invalid)
- [`parameter_missing`](https://provenanceauth.com/docs/platform/errors.md#parameter_missing)
- [`rate_limit_exceeded`](https://provenanceauth.com/docs/platform/errors.md#rate_limit_exceeded)
- [`resource_missing`](https://provenanceauth.com/docs/platform/errors.md#resource_missing)

### Request

**curl**

```bash
export PROVENANCE_KEY=prv_test_full_K7mN3xQp9RbT2vWm8sYd4cFjLhXn6gAe
curl -X POST "$PROVENANCE_API/v1/attest/cases/VER-SANDBOX-INSPECTION/transition" \
  -H "Authorization: Bearer $PROVENANCE_KEY" \
  -H "Content-Type: application/json" \
  -d '{ "to_status": "in_review", "note": "Checking the inspector'\''s GPS" }'
```

**Node**

```ts
const data = await (await fetch(`${process.env.PROVENANCE_API}/v1/attest/cases/VER-SANDBOX-INSPECTION/transition`, {
  method: "POST",
  headers: { Authorization: `Bearer ${process.env.PROVENANCE_KEY}`, "Content-Type": "application/json" },
  body: JSON.stringify({ "to_status": "in_review", "note": "Checking the inspector's GPS" }),
})).json();
```

**Python**

```python
import os
import httpx

api = os.environ["PROVENANCE_API"]
data = httpx.post(f"{api}/v1/attest/cases/VER-SANDBOX-INSPECTION/transition", headers={"Authorization": f"Bearer {os.environ['PROVENANCE_KEY']}"}, json={
    "to_status": "in_review",
    "note": "Checking the inspector's GPS"
}).json()
```

### Response 200

```json
{
  "id": "case_01M6VQBD8TE75EGV1VQTB823HS",
  "object": "case",
  "claim_id": "VER-SANDBOX-INSPECTION",
  "status": "in_review",
  "assignee_account_id": null,
  "risk_snapshot": 0,
  "overall_risk_score": 0,
  "asset_count": 0,
  "submitted_at": null,
  "opened_at": "2026-11-07T19:21:47.034Z",
  "updated_at": "2026-11-07T19:21:47.037Z"
}
```

## List cases

`GET /v1/attest/cases`

Lists your claims as cases for review, highest risk first by default. Filter by status or assignee.

Auth: an API key, as `Authorization: Bearer <key>`.

### Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `status` | query | enum | no | The object's current status. One of `new`, `in_review`, `approved`, `denied`, `escalated`, `reopened`. |
| `assignee` | query | string | no | The assignee. |
| `sort` | query | enum | no | `risk` (the default) or `age`. One of `risk`, `age`. |
| `limit` | query | integer | no | The most items to return, from 1 to 100. The default is 20. |
| `cursor` | query | string | no | The `next_cursor` from the previous page. |

### Returns

The cases, highest risk first.

### Errors

- [`authentication_required`](https://provenanceauth.com/docs/platform/errors.md#authentication_required)
- [`insufficient_scope`](https://provenanceauth.com/docs/platform/errors.md#insufficient_scope)
- [`parameter_invalid`](https://provenanceauth.com/docs/platform/errors.md#parameter_invalid)
- [`rate_limit_exceeded`](https://provenanceauth.com/docs/platform/errors.md#rate_limit_exceeded)

### Request

**curl**

```bash
export PROVENANCE_KEY=prv_test_full_K7mN3xQp9RbT2vWm8sYd4cFjLhXn6gAe
curl "$PROVENANCE_API/v1/attest/cases?status=escalated&limit=1" \
  -H "Authorization: Bearer $PROVENANCE_KEY"
```

**Node**

```ts
const data = await (await fetch(`${process.env.PROVENANCE_API}/v1/attest/cases?status=escalated&limit=1`, {
  headers: { Authorization: `Bearer ${process.env.PROVENANCE_KEY}` },
})).json();
```

**Python**

```python
import os
import httpx

api = os.environ["PROVENANCE_API"]
data = httpx.get(f"{api}/v1/attest/cases?status=escalated&limit=1", headers={"Authorization": f"Bearer {os.environ['PROVENANCE_KEY']}"}).json()
```

### Response 200

```json
{
  "object": "list",
  "data": [
    {
      "id": "01M6VQBC6VQG94TH36D62YMH2D",
      "object": "case",
      "claim_id": "CLM-SANDBOX-FRAUD",
      "status": "escalated",
      "assignee_account_id": null,
      "risk_snapshot": 100,
      "overall_risk_score": 100,
      "asset_count": 2,
      "submitted_at": "2026-11-07T19:21:45.947Z",
      "opened_at": "2026-11-07T19:21:45.943Z",
      "updated_at": "2026-11-07T19:21:45.943Z"
    }
  ],
  "has_more": false,
  "next_cursor": null
}
```
