---
title: "Get setup state"
method: GET
path: "/api/sites/{id}/setup-state"
tags: ["Sites"]
---

# Get setup state

`GET /api/sites/{id}/setup-state`

## Request

- Base URL: `https://demo.hitkeep.com`
- URL: `https://demo.hitkeep.com/api/sites/{id}/setup-state`
- Auth: API key in cookie `hk_token`

Reports whether a site has ever recorded AI fetches, chatbot events, custom events, ecommerce events, or web vitals so the dashboard can show setup guidance instead of empty reports. Requires site.view.

## Path parameters

- `id` string, uuid, required

## Response `200`

Site setup state

- SiteSetupState
  - `has_ai_fetches` boolean, required
  - `has_chatbot_events` boolean, required
  - `has_custom_events` boolean, required
  - `has_ecommerce_events` boolean, required
  - `has_web_vitals` boolean, required

## Other responses

- `403`: Access denied

---

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