Skip to content

HVAC API documentation

Authentication, the seven MCP tools, their REST endpoints, three worked examples, error codes and limits. Contract version ar-00/1.

Authentication

Send an API key as a Bearer token on every request. Create and revoke keys in the developer area of the WebApp dashboard. Keys belong to your company, and the monthly allowance is shared across the company's keys.

Authorization: Bearer YOUR_API_KEY

The MCP server uses the same keys. Calls without a valid credential return 401 unauthorized before anything runs.

The seven MCP tools

Each tool maps to one REST endpoint and returns the same JSON. Parameters are listed as the server defines them.

  • resolve_equipment

    Maps a nameplate reference to brand, family and coverage: covered, family_only, ambiguous (with candidates) or not_covered; with not_covered, cited_in_published_documents: true says published documents still cite that reference. Spaces and dashes are optional. Not billed.

    Parameters
    reference (required), brand, market = us, language = en-US
    REST
    POST /v1/equipment/resolve
  • search_hvac_documents

    Bounded passages with citations. Billed: 1 unit when status is ok. operation_id replays a call without a second charge. A model no published document mentions returns empty (not billed).

    Parameters
    question (required), brand, model_reference, fault_code, language = en-US, limit = 5, max_chars, operation_id
    REST
    POST /v1/search
  • get_hvac_source

    The passage and its bounded context for a source you already have a citation for.

    Parameters
    source_id (required)
    REST
    GET /v1/sources/{source_id}
  • answer_hvac_question

    A written answer cited to manual passages, with next_action, a one-sentence summary and page-level claims. Billed: 1 unit when status is ok, whether the cited documentation is published for your exact unit or for its family; abstained, needs_clarification and empty are not billed.

    Parameters
    question (required), brand, model_reference, fault_code, language = en-US, limit = 5, max_chars, audience = technician | homeowner, operation_id
    REST
    POST /v1/answers
  • get_hvac_document_page

    Page or cited zone as a PNG image. The PDF is not provided.

    Parameters
    document_version_id (required), page_number (required), format = png, region
    REST
    GET /v1/documents/{document_version_id}/pages/{page_number}
  • lookup_fault_code

    The published meaning of a fault code, quoted verbatim with its page. No generation. Billed: 1 unit when status is ok. Shares the search rate limit.

    Parameters
    code (required), brand, model_reference, language = en-US, operation_id
    REST
    POST /v1/fault-codes/lookup
  • get_usage

    Your plan, allowance, units used and remaining, and window end. Not billed.

    Parameters
    none
    REST
    GET /v1/usage

brand takes the nameplate name or its slug, in any case (Carrier, Day & Night, armstrong_air). Every response carries X-Request-Id and MLT-Contract: ar-00/1; billed responses also carry X-MLT-Units-Remaining and X-MLT-Units-Reset; 429 and 503 responses carry Retry-After.

OpenAPI

The full schema is public. We link to it instead of copying it, so it is always the deployed version.

https://api.myleadtech.app/v1/openapi.json

Brand and model

Call resolve_equipment first (free), then send the same brand and model_reference with your question. Read status before using the result.

You sendsearchanswersBilled
A model found in the published documentsok, with passagesok, with claimsSee limits
A model several units shareneeds_clarification, reason_code ambiguous_model, with choicesneeds_clarification, same choicesNo
A model no published document mentionsempty, missing model_reference_unpublishedabstained, next_action abstainNo
A brand, but no model or fault code anywhereneeds_clarification, reason_code missing_model_or_codeneeds_clarificationNo
  • Ambiguous model: ask the technician which choice is on the nameplate and send it back as model_reference. Do not pick a suffix for them.
  • resolve_equipment returning not_covered does not mean there is no manual: when cited_in_published_documents is true, search, answers and lookup_fault_code still serve that model or series from the documents that cite it.
  • With only brand set, put the model in the question: the answer comes from that brand's documents.

Three examples

Real production responses, captured on 28/11/2026. Shortened means fields or list items left out; every value shown is exactly what the API returned, manual text included.

1. Resolve a model

Turn a nameplate reference into brand and coverage. This call is free. Here several models share the reference: ask the technician which one is on the nameplate.

curl https://api.myleadtech.app/v1/equipment/resolve \
  -H "Authorization: Bearer ***" \
  -H "Content-Type: application/json" \
  -d '{"reference":"27TPA836","brand":"Carrier"}'
{
  "contract_version": "ar-00/1",
  "status": "ambiguous",
  "coverage": "ambiguous",
  "missing": [
    "disambiguating_suffix"
  ],
  "usage": {
    "operation": "resolve_equipment",
    "debited": false,
    "units": null,
    "remaining": null,
    "window_end": null
  },
  "brand": "carrier",
  "family": "27tpa8",
  "candidates": [
    {
      "reference": "27TPA824A**30*",
      "brand": "carrier",
      "product_id": "6b8f7619-ed54-4156-b2d7-9bdaa958c082",
      "coverage": "covered"
    },
    {
      "reference": "27TPA836A**30*",
      "brand": "carrier",
      "product_id": "079290b9-53f5-4463-b72f-893c8e6c60cc",
      "coverage": "covered"
    },
    {
      "reference": "27TPA848A**30*",
      "brand": "carrier",
      "product_id": "7ef6b207-67b2-4b99-aac4-3e087c8fba2e",
      "coverage": "covered"
    },
    {
      "reference": "27TPA860A**30*",
      "brand": "carrier",
      "product_id": "b7ae5a52-2747-4162-9baa-bf78888efd20",
      "coverage": "covered"
    }
  ]
}

Shortened: the envelope fields are left out. A complete nameplate number returns covered. search and answers return the same choice as needs_clarification (reason_code ambiguous_model).

2. Look up a fault code

lookup_fault_code returns each published meaning verbatim, one entry per meaning, with its document and page. No brand: a clarification, not a guess. Unknown code: empty. Neither is billed. model_reference may be a series name (926TC): it is read in the documents that cite it.

curl https://api.myleadtech.app/v1/fault-codes/lookup \
  -H "Authorization: Bearer ***" \
  -H "Content-Type: application/json" \
  -d '{"brand":"Carrier","code":"31"}'
{
  "contract_version": "ar-00/1",
  "status": "ok",
  "usage": {
    "operation": "lookup_fault_code",
    "debited": true,
    "units": 1.0,
    "remaining": 33.0,
    "window_end": "2026-12-01T00:00:00+00:00"
  },
  "notice": null,
  "code": "31",
  "entries": [
    {
      "meaning": "31 | Outdoor | High pressure switch open",
      "document_version_id": "6b80a658-e6a8-42f7-a7ec-3e0e5ffcb097",
      "document_title": "TIC2025-0010 Residential Fault Code List",
      "page_number": 4,
      "applicability": "unattributed"
    },
    {
      "meaning": "31 | Indoor | High pressure switch open",
      "document_version_id": "6b80a658-e6a8-42f7-a7ec-3e0e5ffcb097",
      "document_title": "TIC2025-0010 Residential Fault Code List",
      "page_number": 3,
      "applicability": "unattributed"
    },
    {
      "meaning": "31 | EFB 1 | Fault code reserved for the EFB protocol application. The meaning is protocol dependent.",
      "document_version_id": "2b60c54b-3e5c-4609-ad5d-6672279b779a",
      "document_title": "48/50P030-100 Start-Up, Operation, Service, and Controls Troubleshooting for Weathermaster® Single Package Large Rooftop Units with ComfortLink Version 9.X Controls",
      "page_number": 280,
      "applicability": "declared"
    }
  ]
}

Shortened: 3 of the 5 entries, and the verbatim, source_id, citations and passages fields are left out. Without model_reference, the meanings come from every Carrier document that publishes code 31: pass the model to narrow them.

3. Get a cited answer

Each claim carries a source_id, a page and a document title. next_action tells your agent what to do; summary is one guarded sentence a voice agent can read.

curl https://api.myleadtech.app/v1/answers \
  -H "Authorization: Bearer ***" \
  -H "Content-Type: application/json" \
  -d '{"question":"What refrigerant does it use?","brand":"Carrier","model_reference":"27TPA836A**30*"}'
{
  "contract_version": "ar-00/1",
  "status": "ok",
  "partial": true,
  "usage": {
    "operation": "answer",
    "debited": true,
    "units": 1.0,
    "remaining": 32.0,
    "window_end": "2026-12-01T00:00:00+00:00"
  },
  "next_action": "answer",
  "summary": "Refrigerant: Puron Advance™ (R-454B) Refrigerant.",
  "summary_source_ids": [
    "chunk:adda2215-c1f3-40bb-8bcf-90f447a8abcd"
  ],
  "answer": "It uses Puron Advance™ (R-454B) refrigerant.",
  "claims": [
    {
      "text": "Refrigerant: Puron Advance™ (R-454B) Refrigerant.",
      "source_id": "chunk:adda2215-c1f3-40bb-8bcf-90f447a8abcd",
      "page_number": 2,
      "document_title": "Product Data",
      "citation_window_id": "cw:chunk:adda2215-c1f3-40bb-8bcf-90f447a8abcd:p2:b315ddd46-7e9f-4e29-8289-82bac3292f99"
    },
    {
      "text": "For use with R-454B indoor units only.",
      "source_id": "chunk:197ae2c1-cf4e-48e9-aad0-ec75a0dcf59e",
      "page_number": 1,
      "document_title": "Installation Instructions",
      "citation_window_id": "cw:chunk:197ae2c1-cf4e-48e9-aad0-ec75a0dcf59e:p1:b59cf957d-4c75-40c8-929e-cbc18bafc2f3"
    }
  ],
  "limits": [
    "The passages identify the refrigerant as Puron Advance™ (R-454B) and note it is a flammable refrigerant requiring recovery equipment certified for flammable refrigerants; no additional refrigerant specifications are provided here.",
    "Applicability of a cited source is not established to your equipment (family_only).",
    "Cited sources are candidate documentation only; applicability to the requested equipment is not established."
  ]
}

Shortened: 2 of the 4 claims; passages and the envelope are left out. The model_reference is the candidate confirmed in example 1. Billed: 1 unit (usage.debited is true) even though the cited manuals cover the 27TPA8 family rather than this exact unit; limits says so, and each passage carries its applicability.

Errors

Errors return JSON with a request_id (also in the X-Request-Id header), the contract version, an error code, a doc_url pointing here and, when it applies, param and retry_after_seconds. MCP tools return the same body.

  • 400invalid_request

    A parameter is missing or invalid. error.param names it; the message says what to fix.

  • 400invalid_context

    The context object is not accepted.

  • 400cursor_mismatch

    The pagination cursor belongs to another query.

  • 401unauthorized

    Credential missing or invalid.

  • 403forbidden

    The credential does not allow this operation (scope).

  • 403not_entitled

    No active API entitlement (payment_overdue, plan_unrecognised).

  • 404not_found

    Source, page or route not visible.

  • 405method_not_allowed

    Wrong HTTP method for this route.

  • 409conflict

    Same idempotency key, different request.

  • 409cursor_expired

    The pagination cursor is too old. Restart the listing.

  • 410document_download_disabled

    The PDF is not provided. Read the page as a PNG image.

  • 429rate_limited

    Per-minute limit reached. Wait Retry-After seconds (retry_after_seconds in MCP).

  • 429quota_exceeded

    Monthly allowance used up. Retry-After gives seconds to the end of the window.

  • 500internal_error

    Unexpected server error. Retry later and quote the request_id to support.

  • 503service_closed

    Service not open for this account yet.

  • 503dependency_unavailable

    A backing service is down. Retry after Retry-After.

  • 503busy

    The page renderer is saturated. Retry after Retry-After.

  • 504timeout

    The answer took too long. Retry with the same idempotency key.

{
  "request_id": "00000000-0000-4000-8000-000000000004",
  "contract_version": "ar-00/1",
  "error": {
    "code": "quota_exceeded",
    "message": "The monthly operation allowance is used up.",
    "doc_url": "https://myleadtech.app/developers/docs#error-quota_exceeded",
    "retry_after_seconds": 1036800
  }
}
HTTP 429 · Retry-After: 1036800

quota_exceeded, body from the contract examples (the request_id is a placeholder). Nothing ran and nothing was charged.

Limits

  • Sandbox: 100 free units a month. Builder: 2,000. Production: 15,000. Hard cap, monthly reset.
  • Rate limits, the same in sandbox and production: 60 searches and fault-code lookups per minute, 30 answers per minute (per server instance).
  • Equipment lookups, source and page reads never count. Neither do clarifying questions, empty results or abstentions.
  • A search or a fault-code lookup costs 1 unit when its status is ok. An answer costs 1 unit when its status is ok, whether the cited documentation is published for your exact unit or for its family (limits and each passage's applicability say which). An answer that abstains or asks a clarifying question is free.
  • Reuse Idempotency-Key (REST) or operation_id (MCP): a replay is never charged twice. Keys are kept 7 days.
  • GET /v1/usage shows what you have left.
Get an API keyInstall the MCP server

Prices: Builder $149 a month (2,000 units), Production $499 a month (15,000 units), per company, at myleadtech.app/pricing#api.

No card

Start free — 14 days