# Read and sync cases (/docs/developer/api-cases)

Use the action list to export cases for a report or keep a support system in sync.

## At a glance [#at-a-glance]

| Task | Request |
| --- | --- |
| List new cases | `GET /v0/action/list` with `sortBy=createdAt` |
| Find changed cases | `GET /v0/action/list` with `sortBy=updatedAt` |
| Open a case in Sift | `data[].siftURL` |
| Key profile | **Reporting** with `read` |
| Match rows across requests | `actionId` |

## List cases for one day [#list-cases-for-one-day]

Set `SIFT_API_BASE` and `SIFT_API_KEY` with a **Reporting** key. Follow the steps in [Your first request](/docs/developer/api#your-first-request). Replace the dates with a UTC day when your organization had cases.

```bash
curl --fail-with-body --get "$SIFT_API_BASE/v0/action/list" \
  --header "X-API-Key: $SIFT_API_KEY" \
  --data-urlencode 'from=2026-11-01T00:00:00Z' \
  --data-urlencode 'to=2026-11-02T00:00:00Z' \
  --data-urlencode 'sortBy=createdAt' \
  --data-urlencode 'filter=ro=false' \
  --data-urlencode 'pageSize=500'
```

On HTTP 200, the `data` array contains the cases returned. Use `actionId` to identify each case and `siftURL` to open it in Sift. If `data` is empty, try a day when you know cases were created.

`from` includes the start of the window. `to` excludes the end. These bounds cover all of November 1 in UTC.

The action list defaults to cases with an agent response. The example uses `filter=ro=false` to include cases awaiting a reply. To narrow the result, replace that argument with `fullFilter=src=INSTAGRAM+st=OPEN`. A full filter applies the conditions you send. Use one filter parameter per request.

## Check that the export covers the window [#check-that-the-export-covers-the-window]

Compare the number of cases in `data` with `totalRecords`. For example, if you get 500 cases and `totalRecords` is 1,164, some cases are still missing. Split the day into two ranges, midnight to noon and noon to midnight. Keep the same filters. Split any range that still exceeds the limit.

If more than 500 cases share one timestamp, split the results by a filter such as platform or queue. To page by cursor, use [`query.search.actions` in MCP](/docs/developer/mcp-reference).

## Sync changes [#sync-changes]

1. In the command above, replace `sortBy=createdAt` with `sortBy=updatedAt`. This selects cases by their last change.
2. Fix an end time for the run and read all ranges through that time.
3. Insert or update each row in your destination by `actionId`. Use `updatedAt` to keep the latest copy.
4. Save the end time after all ranges succeed. On the next run, overlap the previous window and let the same ID update its existing row.

For example, if the last complete run ended at 12:00 UTC, start the next run at 11:55 UTC. This rereads five minutes. Choose an overlap that fits the delays in your data.

For a sync of all cases, keep the filter broad. A filter for open cases stops returning a case after it closes.

## Related [#related]

<Cards>
  <Card href="/docs/developer/api-reference#get-v0actionlist" title="Action list fields">See the query parameters and response fields.</Card>
  <Card href="/docs/developer/query-syntax" title="Query syntax">Filter cases by source, queue, status, and more.</Card>
  <Card href="/docs/developer/api" title="REST API quickstart">Make your first call and choose a key profile.</Card>
</Cards>
