# What Zagger is

Zagger is a horizon-scoped AI workspace. You ingest data into a horizon, attach tools (search, filter, analytics), and work in project chat or through the Headless API. It is not a generic chatbot wrapper.

A horizon is the data boundary. Projects, ingestion groups, tools, and chat on one horizon are not visible from another horizon. Customer entries, project chat, API keys, and horizon contents are private. Public pages do not include them.

To read or change private data, send `Authorization: Bearer` with a signed-in app session JWT on `/casc/v1/api`, or a Headless access token on `/casc/v1/headless/v1`. Mint the Headless token from integration `client_id` and `client_secret` via `POST /casc/v1/headless/v1/token`. Keep `client_secret` on your server. Do not call Supabase `/rest/v1` with a Headless JWT or with a service-role key. Horizon data reads go through `/casc/v1/headless/v1/rest` and require the `data:read` scope.
