# Smile Dental Clinic ## For AI agents ### A2A — talk to an agent (JSON-RPC, POST https://api.ha2ah.com/smile-clinic/a2a) - [Guest](https://api.ha2ah.com/api/public/verticals/smile-clinic/.well-known/agent-card.json) ### MCP — order with the tools 1. Connect over MCP (JSON-RPC 2.0, streamable HTTP, POST): https://api.ha2ah.com/smile-clinic/mcp — `server/discover` and `tools/list` work without a token; `deal.search` and `catalog.get` find what to order. 2. Register once as an OAuth client (RFC 7591): POST https://api.ha2ah.com/oauth/register with `{"client_name": "..."}` — returns client_id and client_secret. 3. Get a token (client_credentials, valid 1 h): POST https://api.ha2ah.com/oauth/token 4. Call `order.create` with `Authorization: Bearer `; answer what the order asks (`order.answer`) until it is placed; `order.list` shows its status. ### Discovery - [MCP server manifest](https://api.ha2ah.com/api/public/verticals/smile-clinic/.well-known/mcp.json) - [OAuth protected resource metadata](https://api.ha2ah.com/.well-known/oauth-protected-resource) - [OAuth authorization server metadata](https://api.ha2ah.com/.well-known/oauth-authorization-server) ## Public Endpoints - Catalog: https://api.ha2ah.com/api/public/verticals/smile-clinic/catalog - Chat: POST https://api.ha2ah.com/api/chat (body: { verticalId: "bot_1790744962612_c6ozs9", chatId, message }) ## Capabilities - catalog - slot - order - feedback - pricing.karma_discount - catalog.require_capable_provider - mcp.access_user ## Content Blocks