# List control reliability states

Requires the `compliance:read` scope.

`GET /compliance/states`

Scope `compliance:read` | Plan **Scale+**

Requires the `compliance:read` scope. Needs the `continuous_monitoring` plan feature.

## Query parameters

| Name | Type | Required | Description |
|---|---|---|---|
| `limit` | integer | no | Page size. minimum 1, maximum 100, default 25 |
| `offset` | integer | no | Rows to skip (offset mode). Cannot be combined with cursor. minimum 0, maximum 10000, default 0 |
| `cursor` | string | no | An opaque cursor taken from meta.nextCursor of the previous page (cursor mode). Valid for 24 hours and bound to the token and the query; do not parse or construct it. |
| `sort[stateId]` | string | no | Sort direction for stateId. One of `asc`, `desc`. |
| `sort[updatedAt]` | string | no | Sort direction for updatedAt. One of `asc`, `desc`. |
| `filter[objectiveId][eq]` | string | no | Filter objectiveId (eq). |
| `filter[objectiveId][in]` | string | no | Filter objectiveId (in). Comma-separated, at most 50 values. |
| `filter[state][eq]` | string | no | Filter state (eq). |
| `filter[state][in]` | string | no | Filter state (in). Comma-separated, at most 50 values. |
| `filter[stateId][eq]` | string | no | Filter stateId (eq). |
| `filter[stateId][in]` | string | no | Filter stateId (in). Comma-separated, at most 50 values. |
| `filter[updatedAt][gte]` | string (date-time) | no | Filter updatedAt (gte). |
| `filter[updatedAt][lt]` | string (date-time) | no | Filter updatedAt (lt). |

## Returns

The `data` field of the standard `{ data, error, meta }` envelope:

An array of object:
- `exceptionCount`: integer Number of active exceptions.
- `lastEvidenceAt`: optional string (date-time) or null Time of the latest evidence (UTC), when any.
- `mttrMinutes`: optional integer or null Mean time to recover in minutes, when measured.
- `objectiveId`: string Catalog control objective id.
- `state`: string healthy, degraded, failed or unknown.
- `stateId`: string Control reliability state id.
- `updatedAt`: string (date-time) Last update time (UTC); the sync field.
- No other fields.

## Errors

| Status | Code | Retry | Meaning |
|---|---|---|---|
| 400 | - | no | The request is invalid. |
| 401 | - | no | The token is missing, malformed, expired or revoked. |
| 402 | - | no | The organisation's plan does not include the feature this route needs. |
| 403 | - | no | The token may not use this route. |
| 429 | - | yes | Rate limit or row budget exceeded; retry after the time in Retry-After. |
| 500 | - | no | Unexpected server error. |
| 503 | - | yes | A dependency is temporarily unavailable; retry later. |

## Example

### curl

```bash
curl "https://api.autociso.io/api/v1/compliance/states" \
  -H "Authorization: Bearer <your-api-token>"
```

### Python

```python
import requests

response = requests.get(
    "https://api.autociso.io/api/v1/compliance/states",
    headers={"Authorization": "Bearer <your-api-token>"},
)
print(response.json())
```

### JavaScript

```javascript
const response = await fetch("https://api.autociso.io/api/v1/compliance/states", {
  method: "GET",
  headers: { "Authorization": "Bearer <your-api-token>" },
});
console.log(await response.json());
```

## Response (200)

```json
{
  "data": [
    {
      "exceptionCount": 0,
      "lastEvidenceAt": "2026-10-13T05:00:00Z",
      "objectiveId": "obj_014",
      "state": "healthy",
      "stateId": "cst_1hk2z7r4m0qb",
      "updatedAt": "2026-10-13T05:02:00Z"
    },
    {
      "exceptionCount": 1,
      "lastEvidenceAt": "2026-10-05T05:00:00Z",
      "mttrMinutes": 240,
      "objectiveId": "obj_027",
      "state": "degraded",
      "stateId": "cst_1hk2z8d1w6xn",
      "updatedAt": "2026-10-12T05:02:00Z"
    }
  ],
  "error": null,
  "meta": {
    "limit": 25,
    "offset": 0,
    "total": 42
  }
}
```
