---
title: "Get collection health"
method: GET
path: "/api/sites/{siteId}/collection-health"
tags: ["Tracking setup"]
---

# Get collection health

`GET /api/sites/{siteId}/collection-health`

## Request

- Base URL: `https://slimlytics.com`
- URL: `https://slimlytics.com/api/sites/{siteId}/collection-health`
- Auth: HTTP bearer

Returns accepted and rejected collection counters plus the most recent tracker activity for operational and agent diagnostics.

## Path parameters

- `siteId` string, uuid, required

## Response `200`

Collection health

- CollectionHealth
  - `acceptedTotal` integer, required
  - `rejectedTotal` integer, required
  - `lastAcceptedAt` string, date-time, nullable, required
  - `lastRejectedAt` string, date-time, nullable, required
  - `lastRejectionCode` string, nullable, required
  - `lastTrackerVersion` string, nullable, required

## Other responses

- `400`: Invalid request
- `401`: Authentication required or invalid/expired credential
- `403`: Credential lacks permission
- `404`: Resource not found
- `500`: Internal service error

---

[API](https://skmtc.dev/slimlytics/apis/slimlytics-api.md) · [All operations](https://skmtc.dev/slimlytics/apis/slimlytics-api/llms.txt) · [OpenAPI document](https://skmtc.dev/slimlytics/apis/slimlytics-api/revisions/f9a26641a254?raw)
