# Spwig agent authentication policy

> Schema: https://workos.com/auth.md

## Public surfaces (no authentication required)

The following surfaces of `spwig.com` are open to anonymous AI agents:

- `/` and all locale-prefixed marketing pages (`/en/`, `/es/`, etc.)
- `/llms.txt`, `/llms-full.txt`
- `/.well-known/api-catalog`
- `/.well-known/agent-skills/`
- `/.well-known/mcp/server-card.json`
- `/.well-known/security.txt`
- `/robots.txt`, `/sitemap.xml`
- Markdown representations of marketing pages (`Accept: text/markdown`)
- Public blog posts under `/{locale}/blog/`

Agents accessing these surfaces should:
- Send a descriptive `User-Agent`
- Honor `robots.txt`
- Cache responses respecting `Cache-Control`

## Protected surfaces (authentication required)

Spwig operates separate authentication infrastructure for licensed installations and merchant accounts. These surfaces are **not** intended for general agent traffic and there is currently no public agent registration flow.

| Surface | Audience | Auth mechanism |
|---------|----------|----------------|
| `https://sso.spwig.com/` | Operators of Spwig installations | OAuth 2.0 / OIDC (issued at purchase) |
| `https://licenses.spwig.com/` | Licensed installations | Installation token (issued at purchase) |
| `https://updates.spwig.com/` | Licensed installations | Installation token (issued at purchase) |
| `https://spwig.com/admin/` | Spwig staff only | Session cookie + 2FA |
| `https://spwig.com/affiliate/` | Registered affiliates | Session cookie |
| `https://spwig.com/accounts/` | Customer account portal | Session cookie + OAuth (allauth) |
| `https://spwig.com/api/` | Spwig staff & first-party tooling | Session cookie |

## Agent registration

Spwig does not currently offer a self-service agent registration endpoint. Agents requiring programmatic access to protected surfaces (for example, an integration partner building an agent on top of an installed Spwig store) must contact <mailto:hello@spwig.com> to be issued credentials manually. Once issued, those credentials apply to the merchant's own installation, not to `spwig.com` itself.

## Identity & credential types accepted

For the limited set of cases where access is granted:

- **Identity types:** human-managed integration accounts only. No `agent`, `delegated_agent`, or `autonomous_agent` identity types are recognised.
- **Credential types:** OAuth 2.0 bearer tokens issued by `sso.spwig.com`, or per-installation tokens issued at licence purchase.
- **Claim formats:** standard OIDC ID Tokens.
- **Revocation:** by request to <mailto:hello@spwig.com>.

## Reporting abuse

Report agent misuse, scraping that bypasses `robots.txt`, or any security concern to <mailto:security@spwig.com>. See `/.well-known/security.txt` for canonical security contact details.
