*REST API › Endpoint reference › Operations › Incidents*

# Count incidents by status

> Returns how many incidents there are in each status, with optional filters by project, space, vehicle, item, physical unit or order.

The six keys always come out, with 0 if there are none. It is the only way to discover the volume: this resource does not publish a listing.

`GET /api/v1/incidents/status-counts` — scope `incidents:read`

Scope: `incidents:read` · 120/min · Add-on (402) · If-None-Match · MCP: `filmo_incidents_status_counts`

## Authorizations

Bearer API key with the scope below. `incidents:read`

## Headers

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `If-None-Match` | string | No | Conditional read: the `ETag` of the copy you already have. If the resource has not changed, the response is `304` with no body. |

## Query parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `projectId` | string | No | Filter by project. |
| `spaceId` | string | No | Filter by space. |
| `vehicleId` | string | No | Filter by vehicle. |
| `itemId` | string | No | Filter by catalog item. |
| `serializedItemId` | string | No | Filter by physical unit. |
| `orderId` | string | No | Filter by order. |

## Request examples

*Count incidents by status*

**cURL**

```bash
curl https://app.filmo.io/api/v1/incidents/status-counts \
  --header "Authorization: Bearer $FILMO_API_KEY"
```

**Node.js**

```javascript
fetch('https://app.filmo.io/api/v1/incidents/status-counts', {
  headers: {
    Authorization: 'Bearer YOUR_FILMO_API_KEY'
  }
})
```

**Python**

```python
import requests

requests.get(
    "https://app.filmo.io/api/v1/incidents/status-counts",
    headers={
      "Authorization": "Bearer YOUR_FILMO_API_KEY"
    }
)
```

## Response

Response schema: `IncidentStatusCountsDto`

| Status | Description |
| --- | --- |
| 200 | Successful response. |
| 304 | Not modified: the `If-None-Match` sent matches the current `ETag`. No body; the copy you have is current. |
| 400 | Invalid request (validation_error): malformed query or body. `errors[]` lists every offending field with its stable code. |
| 401 | Authentication failed (unauthorized, api_key_invalid, api_key_revoked, api_key_expired, api_key_owner_inactive, api_key_owner_not_admin). |
| 402 | Add-on required (addon_required): the account plan does not include the add-on this operation needs; `requiredAddon` names it. |
| 403 | Not allowed (insufficient_scope: the API key does not have the required scope, named in `requiredScope`; forbidden: the owner of the key lacks the permission the operation requires). `insufficient_scope` is answered before the request counts against the rate limit, so it carries no `RateLimit-*` headers; `forbidden` does. |
| 429 | Rate limit exceeded (rate_limited): retry after `Retry-After` seconds; `RateLimit-*` says which quota ran out. |
| 500 | Internal error (internal_error). |

**200**

| Name | Type | Description |
| --- | --- | --- |
| `data` | object | How many incidents there are in each status. All six keys are always returned, with 0 when there are none. |
| `data.draft` | integer | Incidents in draft. |
| `data.open` | integer | Open incidents. |
| `data.waiting` | integer | Waiting incidents. |
| `data.repairing` | integer | Incidents under repair. |
| `data.complete` | integer | Resolved incidents. |
| `data.lost` | integer | Material declared lost. |
| `meta` | object | Additional information about the response. |
| `meta.warnings` | object[] | Lifecycle warnings; present only when the operation is deprecated. |
| `meta.warnings.code` | string | Stable warning code. `deprecated` |
| `meta.warnings.message` | string | For people: what is deprecated, until when, and what to use. |
| `meta.warnings.sunset` | string | Day (YYYY-MM-DD) the operation stops being served. |
| `meta.warnings.replacement` | string | `operationId` of the operation to use instead, or null if there is none. |
| `meta.warnings.link` | string | Where the deprecation is documented (the changelog). |

*Example response · 200*

```json
{
  "data": {
    "draft": 1,
    "open": 1,
    "waiting": 1,
    "repairing": 1,
    "complete": 1,
    "lost": 1
  }
}
```

304: No body.

## Errors

| Status | Codes | Meaning |
| --- | --- | --- |
| 400 | `validation_error` | Malformed query or body. `errors[]` lists every offending field with its stable code. |
| 402 | `addon_required` | The account plan does not include the add-on this operation needs; `requiredAddon` names it. |

## Deprecation

This operation is not deprecated. Deprecations are announced with a Deprecation header and a sunset date.

---

Canonical URL: https://docs.filmo.io/rest-api/endpoint-reference/incidents/count-incidents-by-status  
Last updated: 2026-10-25