> ## Documentation Index
> Fetch the complete documentation index at: https://docs.blinkops.com/llms.txt
> Use this file to discover all available pages before exploring further.

# List Case IDs

Retrieve the IDs of all the cases that match a given query.

**Note:** Required permissions: `cases:read`

> [!NOTE]
>
> External Documentation
>
> To learn more, visit the [CrowdStrike documentation](https://developer.crowdstrike.com/api-reference/collections/case-management/#queriescasesgetv1).

## Parameters

| Parameter | Description |
| - | - |
| Filter | Filter the results based on FQL queries. |
| Limit | The maximum number of cases to return per page. Maximum value is `10000`. |
| Offset | The first case to return, where `0` is the latest case. |
| Query | The query to filter the results by. |
| Return All Pages | Automatically fetch all resources, page by page. |
| Sort | Sort the results based on a field. **Notes:** \* The format of the sort criteria is: `field\|direction`. \* Direction can be either `asc` or `desc` order. **For example:** <pre>`created_timestamp\|desc`</pre>. |

## Example Output

```json theme={"dark"}
{
	"meta": {
		"query_time": 0.061909093,
		"pagination": {
			"offset": 0,
			"limit": 1,
			"total": 1018
		},
		"writes": {
			"resources_affected": 0
		},
		"powered_by": "casesapi",
		"trace_id": "trace-1234"
	},
	"resources": [
		"case-1234"
	]
}
```
