---
title: "Snagr auth.md"
url: https://www.snagr.sh/auth.md
---

# Snagr auth.md

Snagr's public documentation surface is anonymous. Merchant data is reachable only with a team's own secret SDK key, which the merchant creates in the dashboard and hands to their agent.

## Audience

AI agents, answer engines and crawlers reading Snagr's public pages, markdown twins, MCP server and product facts.

## Public surface — anonymous, no credentials

Everything an agent or answer engine needs is public and requires no credentials, no API key and no account:

- Every marketing and guide page, and its `.md` twin (`Accept: text/markdown` or append `.md`).
- `/llms.txt`, `/llms-full.txt`, `/ai.txt`, `/openapi.json`
- `/api/md/_catalog`, `/api/md/<path>`, `/api/ai`, `/api/mcp`, `/api/health`
- `/.well-known/api-catalog`, `/.well-known/mcp/server-card.json`, `/.well-known/agent-skills/index.json`, `/.well-known/ai-catalog.json`
- `/.well-known/oauth-protected-resource`, `/.well-known/oauth-authorization-server`

These respond to unauthenticated `GET` requests, send `Access-Control-Allow-Origin: *`, and are cacheable for one hour.

Anonymous identity: there is nothing to claim. `claim_uri` is this document.

## Application surface — session cookie, humans only

The Snagr dashboard (`/analytics`, `/sequences`, `/customers`, `/billing` and the rest) is behind a session cookie issued by [better-auth](https://better-auth.com). Sign-in is by Polar OAuth, Google OAuth, or email and password at https://www.snagr.sh/sign-in.

Requests to dashboard paths without a session redirect to `/sign-in`.

## SDK and agent surface — team API keys

A merchant creates keys at https://www.snagr.sh/developers:

- **Publishable** (`snagr_pk_…`): browser-safe. Only sends events to `POST /api/v1/batch`.
- **Secret** (`snagr_sk_…`): server-side. Sends trusted events to `/api/v1/batch` and, as `Authorization: Bearer snagr_sk_…` on `/api/mcp`, unlocks the team's MCP tools (`list_recent_events`, `send_event`, `list_flows`, `create_flow`, `update_flow`, `enroll_person`, `set_flag`, `list_people`, `get_person`, `get_recoveries`).

Agents never mint keys themselves; the merchant gives one to the agent. The `install-snagr` skill at `/.well-known/agent-skills/install-snagr/SKILL.md` describes the full setup.

The OAuth discovery documents at `/.well-known/oauth-authorization-server` and `/.well-known/oauth-protected-resource` do not issue tokens; use a secret SDK key instead.

## Registration

Do not `POST /agent/auth`. There is no agent registration endpoint. To use the public surface, just `GET` it.

## Rate limits

None on the public documents above. Please identify your crawler with a descriptive `User-Agent`.

## Contact

hello@snagr.sh
