---
title: SnowLive Agent Authentication Guide
description: RFC 9421 Web Bot Auth, RFC 9728/8414 OAuth discovery, and WorkOS agent_auth instructions for AI agents connecting to SnowLive.
canonical: https://snowlive.io/auth.md
last-updated: 2026-12-06
---

# SnowLive Agent Authentication Guide

> **Zero-Key Public Access:** SnowLive's read-only public interfaces — including `POST https://snowlive.io/mcp`, `GET|POST https://snowlive.io/ask` (`/v1/ask`), `GET https://snowlive.io/api/resort-traffic`, and `GET https://snowlive.io/openapi.json` — work **without any API key or bearer token**. Use the authentication flow below only when establishing verified agent identity, claiming higher rate tiers, or authenticating to protected agent endpoints.

## Discover

Start by fetching SnowLive's standard OAuth and Web Bot Auth discovery documents:

1. **Protected Resource Metadata (RFC 9728)**:
   `GET https://snowlive.io/.well-known/oauth-protected-resource`
   Returns `resource: "https://snowlive.io"`, `authorization_servers: ["https://snowlive.io"]`, `scopes_supported: ["read:docs", "read:api", "read:resorts"]`, and `resource_documentation: "https://snowlive.io/auth.md"`.
2. **Authorization Server Metadata (RFC 8414 + WorkOS `agent_auth`)**:
   `GET https://snowlive.io/.well-known/oauth-authorization-server`
   Returns `issuer`, `token_endpoint`, `jwks_uri`, and the `agent_auth` block:
   - `identity_endpoint`: `https://snowlive.io/api/agent-auth/identity`
   - `claim_endpoint`: `https://snowlive.io/api/agent-auth/claim`
   - `events_endpoint`: `https://snowlive.io/api/agent-auth/events`
   - `identity_types_supported`: `["service_auth", "id-jag"]`
   - `identity_assertion.assertion_types_supported`: `["urn:ietf:params:oauth:grant-type:jwt-bearer"]`
   - `skill`: `https://snowlive.io/auth.md`
3. **Web Bot Auth Key Directory (RFC 9421)**:
   `GET https://snowlive.io/.well-known/http-message-signatures-directory`
   Publishes SnowLive's active Ed25519 public JWK (`kty: "OKP"`, `crv: "Ed25519"`, `alg: "EdDSA"`, RFC 7638 thumbprint `kid`).

## Pick a method

Choose the access mode that fits your agent:

- **Anonymous Read-Only (Recommended for most agents)**: Call `/mcp`, `/ask`, or `/api/resort-traffic` directly with no `Authorization` header.
- **`service_auth` (Autonomous Agent Identity)**: Present an Ed25519/JWT assertion (`urn:ietf:params:oauth:grant-type:jwt-bearer`) to `/api/agent-auth/identity` for verified service-to-service access.
- **`id-jag` (User-Delegated Identity Assertion)**: Present a signed Identity Assertion JWT Authorization Grant (`id-jag`) when acting on behalf of a specific user.

## Register

Send an agent identity registration or assertion request to `POST https://snowlive.io/api/agent-auth/identity` with `Content-Type: application/json`:

```json
{
  "identity_type": "service_auth",
  "agent_name": "my-alpine-agent",
  "scopes": ["read:docs", "read:api", "read:resorts"]
}
```

For RFC 9421 HTTP Message Signatures, include `Signature-Input` and `Signature` headers verifiable against your published key directory.

## Claim

When human or operator approval is required for elevated scopes, call `POST https://snowlive.io/api/agent-auth/claim` with your bearer assertion. Unauthenticated calls to `/api/agent-auth/claim` return HTTP `401 Unauthorized` with:

```http
WWW-Authenticate: Bearer resource_metadata="https://snowlive.io/.well-known/oauth-protected-resource"
```

Inspect the `resource_metadata` URL in `WWW-Authenticate` to restart discovery automatically.

## Exchange

Exchange a verified `service_auth` or `id-jag` JWT assertion (`grant_type: "urn:ietf:params:oauth:grant-type:jwt-bearer"`) at `https://snowlive.io/api/agent-auth/identity` to receive a short-lived `access_token` scoped to `read:docs`, `read:api`, or `read:resorts`.

## Use the access_token

Include the token in the `Authorization` header on subsequent requests:

```http
Authorization: Bearer <access_token>
Accept: application/json
```

Again, public read-only calls to `/mcp`, `/ask`, `/v1/ask`, and `/api/resort-traffic` continue to succeed even if `Authorization` is omitted.

## Errors

| HTTP Status | Meaning | Recommended Agent Action |
| --- | --- | --- |
| `400 Bad Request` | Malformed JSON or unsupported `identity_type` / `grant_type`. | Validate against `/.well-known/oauth-authorization-server`. |
| `401 Unauthorized` | Missing, expired, or invalid bearer token on a protected endpoint. | Follow `WWW-Authenticate: Bearer resource_metadata="..."` and re-authenticate. |
| `403 Forbidden` | Valid token lacks the required scope. | Request the needed scope (`read:docs`, `read:api`, `read:resorts`). |
| `429 Too Many Requests` | Rate limit exceeded. | Respect `RateLimit` / `X-RateLimit-Reset` headers and back off. |

## Revocation

Audit and lifecycle events are published to `https://snowlive.io/api/agent-auth/events`. To revoke an active agent session or report a compromised key, send a revocation event or contact [support@snowlive.io](mailto:support@snowlive.io).
