Read and sync cases
List cases for a time window, check coverage, and sync changes to your own system.
Use the action list to export cases for a report or keep a support system in sync.
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
Set SIFT_API_BASE and SIFT_API_KEY with a Reporting key. Follow the steps in Your first request. Replace the dates with a UTC day when your organization had cases.
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
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.
Sync changes
- In the command above, replace
sortBy=createdAtwithsortBy=updatedAt. This selects cases by their last change. - Fix an end time for the run and read all ranges through that time.
- Insert or update each row in your destination by
actionId. UseupdatedAtto keep the latest copy. - 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.