# vietnamprivatetours.com auth.md

Agent access for https://www.vietnamprivatetours.com. All public read endpoints (`/api/tours`, `/api/estimate`, `/ask`, `/openapi.json`, `/llms.txt`, `/llms-full.txt`, `/mcp`, `/a2a`, and `Accept: text/markdown`) work with **no credentials**. An optional anonymous OAuth 2.0 client gets a higher result cap on `/mcp` and `/a2a`.

## Audience
AI agents, MCP hosts, NLWeb clients, and developer integrations reading Vietnam Private Tours itineraries, pricing tiers, and planning guides.

## Public No-Auth Endpoints
- OpenAPI 3.1.0 spec: `GET https://www.vietnamprivatetours.com/openapi.json`
- Filter private Vietnam tours: `GET https://www.vietnamprivatetours.com/api/tours`
- Estimate USD trip budget + pre-filled quote link: `GET https://www.vietnamprivatetours.com/api/estimate?destinations=vietnam&days=12&travelers=2`
- NLWeb natural-language search: `GET` / `POST https://www.vietnamprivatetours.com/ask`
- MCP Streamable HTTP (5 tools: `search_site`, `filter_tours`, `estimate_trip_budget`, `build_proposal_link`, `get_contact`): `POST https://www.vietnamprivatetours.com/mcp`
- A2A advisor: `POST https://www.vietnamprivatetours.com/a2a`
- Documentation: `https://www.vietnamprivatetours.com/ai-access/`

## Optional Registration (Anonymous OAuth 2.0, RFC 7591)
No account, email, or approval is needed:

```
POST https://www.vietnamprivatetours.com/oauth/register
Content-Type: application/json

{"client_name": "my-agent", "redirect_uris": ["http://localhost:8123/callback"]}
```

- With `redirect_uris`, you receive a public client (`authorization_code` + PKCE `S256`).
- Without `redirect_uris`, you receive a confidential client (`client_id` + `client_secret` for `client_credentials`).

## Getting a Token
- Authorization endpoint: https://www.vietnamprivatetours.com/oauth/authorize (auto-approved; read-only scope `mcp:read`).
- Token endpoint: https://www.vietnamprivatetours.com/oauth/token (`authorization_code` or `client_credentials`). Tokens are ES256 JWTs valid for 1 hour; keys at https://www.vietnamprivatetours.com/.well-known/jwks.json.
- Send `Authorization: Bearer <token>` to `/mcp` or `/a2a`. An invalid token returns HTTP 401 with a `WWW-Authenticate` header pointing to https://www.vietnamprivatetours.com/.well-known/oauth-protected-resource.

## Claiming
Not applicable. Anonymous clients are not tied to a person, email, or account, so there is no claim step and no human approval.

## What a Token Changes
Anonymous callers receive up to 8 search results (`search_site`) or 10 tours (`filter_tours`) per call; authenticated agents receive up to 20 search results or 25 tours. Nothing else is gated.

## Metadata
- Authorization server: https://www.vietnamprivatetours.com/.well-known/oauth-authorization-server
- Protected resource: https://www.vietnamprivatetours.com/.well-known/oauth-protected-resource

## Human Trip Requests & Itinerary Reviews
- Tailor-made quote request: https://www.vietnamprivatetours.com/tailor-made-tours/
- Free AI itinerary fact-check: https://www.vietnamprivatetours.com/review-my-itinerary/
- Direct contact: info@vietnamprivatetours.com · +84 902 011 200 (phone & WhatsApp)
