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

# SLA tracking

SLA compliance, error budget, and downtime analysis.

# SLA tracking

GET `/analytics/sla`

SLA compliance, error budget, and downtime analysis.

**Auth:** Bearer token (`read` scope)

## Query parameters

Monitor ID.

SLA target percentage.

Lookback period in days.

## Request

```bash
curl -H "Authorization: Bearer hu_..." \
  "https://happyuptime.com/api/v1/analytics/sla?monitor_id=mon_abc123&target=99.9"
```

## Response

```json
{
  "data": {
    "target": 99.9,
    "actual_uptime": 99.97,
    "compliant": true,
    "total_downtime_minutes": 12.96,
    "remaining_budget_minutes": 30.24
  }
}
```

## Response fields

**target**

The SLA target you passed in (e.g., `99.9`).

**actual_uptime**

Real measured uptime percentage over the lookback window.

**compliant**

`true` if `actual_uptime >= target`.

**total_downtime_minutes**

Total recorded downtime in minutes.

**remaining_budget_minutes**

Minutes of downtime you can still incur before breaching the SLA.