# Auth.md

Authentication for agents on סולאר 148.

Every agent endpoint on https://solar148.com is **public and read-only**. No API key, account or OAuth flow is required.

## Anonymous access (recommended)

Call the endpoints directly without an `Authorization` header:

- MCP (Streamable HTTP, JSON-RPC): `POST https://solar148.com/mcp`
- A2A (JSON-RPC `message/send`): `POST https://solar148.com/a2a`
- REST: `GET https://solar148.com/api/v1/guides` (spec: https://solar148.com/openapi.json)
- NLWeb-style ask: `GET https://solar148.com/ask?query=...`

## Agent identity (optional)

If your client wants an identity, register anonymously:

```
POST https://solar148.com/agent/identity
```

Response `201` with `agent_id`, `identity_type: "anonymous"` and `credential.type: "none"`. Nothing is stored.

## OAuth (optional, for OAuth-only clients)

- Protected resource metadata: https://solar148.com/.well-known/oauth-protected-resource
- Authorization server metadata: https://solar148.com/.well-known/oauth-authorization-server
- Token: `POST https://solar148.com/oauth/token` with `grant_type=client_credentials` (public client, no secret). Scope `content:read`.

The token grants nothing beyond anonymous access and is not checked.

## Limits and rules

- Rate limit: 60 requests per minute per client (`RateLimit` headers, `429` with `Retry-After`).
- Errors: RFC 9457 `application/problem+json`.
- Never submit the lead form (`/api/lead`) without the user's explicit consent.
- Docs: https://solar148.com/developers
