# Auth.md – 148.catering

How AI agents authenticate with קייטרינג 148 (148.catering), a kosher meat catering business in Israel.

## Audience

AI agents and assistants acting for people who plan an event or a Shabbat meal and want catering details, prices, service areas, or to contact the business.

## Summary

- Every agent-facing endpoint is **public and read-only**. No API key, OAuth token or registration is needed.
- Agents cannot book, pay or change anything. To order, send the person to WhatsApp, the phone number or the contact form (see https://148.catering/contact).

## Registration (optional, anonymous)

- Method: `anonymous`
- Register: `POST https://148.catering/agent/identity` returns an `agent_id` with credential type `none` and scope `public:read`. Nothing is stored.
- Claim: `https://148.catering/agent/identity/claim` – anonymous identities hold no data, so there is nothing to claim.

## OAuth 2.1 (optional)

For clients that require OAuth: authorization code with PKCE (S256), public clients (`token_endpoint_auth_method: none`), scope `public:read`.
No user account or login is involved, so the authorization endpoint approves at once and redirects back with a code.
The access token grants the same public read access as no token; public endpoints ignore the `Authorization` header.

- Authorize: `GET https://148.catering/oauth/authorize?response_type=code&client_id=...&redirect_uri=...&code_challenge=...&code_challenge_method=S256&state=...`
- Token: `POST https://148.catering/oauth/token` (form encoded: `grant_type=authorization_code`, `code`, `redirect_uri`, `client_id`, `code_verifier`)

## Public endpoints

- REST API v1 (read-only): `https://148.catering/api/v1/business`, `https://148.catering/api/v1/packages`, `https://148.catering/api/v1/pages?q=...` – OpenAPI `https://148.catering/openapi.json`, docs https://148.catering/developers
- MCP (Streamable HTTP, JSON-RPC): `https://148.catering/mcp` – server card `https://148.catering/.well-known/mcp/server-card.json` (v1.0.0)
- A2A: `https://148.catering/a2a` – agent card `https://148.catering/.well-known/agent-card.json`
- Markdown: any page with `Accept: text/markdown` or a `.md` suffix, plus `https://148.catering/llms.txt`
- Lead form API (write, only with the person's explicit consent): `POST https://148.catering/api/lead`

## Metadata

- Protected resource metadata: https://148.catering/.well-known/oauth-protected-resource
- Authorization server metadata: https://148.catering/.well-known/oauth-authorization-server
- Agent catalog: https://148.catering/.well-known/ai-catalog.json

```json
{
  "agent_auth": {
    "skill": "https://148.catering/auth.md",
    "register_uri": "https://148.catering/agent/identity",
    "claim_uri": "https://148.catering/agent/identity/claim",
    "identity_types_supported": [
      "anonymous"
    ],
    "anonymous": {
      "credential_types_supported": [
        "none"
      ],
      "claim_uri": "https://148.catering/agent/identity/claim"
    }
  }
}
```

## Rate limits and conduct

REST API: 60 requests per minute per client, announced in `RateLimit` headers (429 with `Retry-After` when exceeded). Identify your agent in the User-Agent header. Never submit the lead form without the person's consent and real details.
