# Get the SLA report

`GET /app/reports/sla`

Days to fix per severity in the period, and the issues past their SLA.

Scope: `reports:read`.

## Parameters

- `projectId` (query, integer): Only this project's numbers.
- `assetId` (query, integer): Only this asset's numbers.
- `from` (query, string)
- `to` (query, string)

## Example

```bash
curl -X GET "https://api.fortwatch.ai/app/reports/sla" \
  -H "Authorization: Bearer $FORTWATCH_API_KEY"
```

## Response 200

The request succeeded.

- `slaTargets` (object, required)
- `window` (number, required)
- `daysToFix` (object, required)
- `avgDays` (object | null, required)
- `overallAvgDays` (object | null, required)
- `resolvedInPeriod` (number, required)
- `compliance` (object, required)
- `overdue` (object, required)

```json
{
  "slaTargets": {},
  "window": 1,
  "daysToFix": {},
  "avgDays": {},
  "overallAvgDays": {},
  "resolvedInPeriod": 1,
  "compliance": {},
  "overdue": {}
}
```

## Errors

- 400: The request is not valid: a field is missing or has the wrong shape (the message names it).
- 401: No valid credentials: the API key or access token is missing, revoked or expired (INVALID_API_KEY, INVALID_TOKEN).
- 403: Not allowed: the key or token lacks this scope (SCOPE_REQUIRED), the route is dashboard-only (SESSION_REQUIRED), or a plan limit applies.
- 429: Too many requests (RATE_LIMITED): wait the seconds Retry-After gives.
