Developer & AI Agent Documentation

El Plomero de Santiago SRL — API & MCP Docs

Machine-readable REST endpoints, OpenAPI 3.1 specification, Markdown content negotiation, and Streamable HTTP Model Context Protocol (MCP) tools for plumbing services in Santiago de los Caballeros, Dominican Republic.

Authentication

All public discovery, Markdown, MCP, membership catalog, and service quote endpoints require no authentication. Private account and administrative endpoints require an authenticated session cookie.

Public Endpoints

GET /api

Returns API health and service identity.

curl -s https://elplomerosantiago.com/api
GET /api/markdown?path=/

Returns a clean Markdown representation of any public page. Sending Accept: text/markdown to any public route also returns Markdown.

curl -s -H "Accept: text/markdown" https://elplomerosantiago.com/
POST /api/mcp

Streamable HTTP JSON-RPC 2.0 MCP endpoint exposing get_plumbing_services, check_business_status, and request_plumbing_quote.

curl -s -X POST -H "Content-Type: application/json" \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/list","params":{}}' \
  https://elplomerosantiago.com/api/mcp
GET /api/membership/plans

Lists residential and enterprise plumbing maintenance plans (igualas) and extensions.

curl -s https://elplomerosantiago.com/api/membership/plans
POST /api/leads

Submits a plumbing service or quote request. Requires name and phone.

Structured JSON Error Responses

API routes return structured JSON errors (including 404 for unknown /api/* routes, 400/422 for validation issues, 403 for WAF/CSRF blocks, and 429 for rate limiting) with status, code, detail, and resolution hints.