Developers and agents

CleanPigeon API and MCP server

Everything an office manager can do in the dashboard, an agent can do by API: quote a site, start its plan, read visits and photo proof, request a re-clean, and export the service record.

Authentication

Quoting and the plan list need no key and are rate-limited. Everything else uses an account API key, created at Account, API keys and sent as Authorization: Bearer sw_live_.... A key acts as its account and can reach only that account's sites.

Operations

ToolRESTKeyWhat it does
quotePOST /api/v1/quotenoPrice recurring cleaning for a site from its ZIP, square feet, rooms and visits per week. Returns the itemised scope with sources, or a coverage or catalogue gap.
list_plansGET /api/v1/plansnoPlans and deep-clean prices on sale, read live from configuration.
create_planPOST /api/v1/plansyesCreate a site from a priced estimate and start its monthly plan. Returns a Stripe Checkout URL, or adds the site to an existing subscription when a card is on file.
list_visitsGET /api/v1/sites/{siteId}/visitsyesUpcoming or past visits for a site.
get_visit_proofGET /api/v1/visits/{visitId}/proofyesTimes, checklist, review verdict and signed photo URLs for a visit.
request_recleanPOST /api/v1/sites/{siteId}/recleanyesRequest a re-clean of a completed visit within the re-clean window.
get_service_recordGET /api/v1/sites/{siteId}/recordyesEvery visit, proof count, rating and credit for a site.

The MCP server offers all of these except list_plans, under the same names.

Quote a site

curl -X POST https://www.cleanpigeon.com/api/v1/quote \
  -H 'content-type: application/json' \
  -d '{"zip":"78701","sqft":3000,"openPlanSqft":1500,"rooms":{"private_office":4,"restroom":3},"visitsPerWeek":3}'

The response is a stored estimate with an estimateId. If the ZIP has no insured vendor the result is a coverage_gap, never an invented price. Pass the estimateId to create_plan to buy.

Connect an MCP client

{
  "mcpServers": {
    "cleanpigeon": {
      "type": "http",
      "url": "https://www.cleanpigeon.com/mcp",
      "headers": { "Authorization": "Bearer sw_live_..." }
    }
  }
}

The server speaks Streamable HTTP with JSON responses. It supports protocol 2026-07-28 (stateless, server/discover) and the earlier initialize handshake revisions.

Errors

Every error is { "error": { "code", "message", "field"? } } with one of: invalid_input, invalid_request, unauthorized, forbidden, not_found, conflict, rate_limited, billing_unavailable, internal.