{"openapi":"3.1.0","info":{"title":"UK Company Intelligence API","version":"1.2.0","description":"Counterparty risk signals for UK companies, derived from the Companies House public register.\n\n## For agents\n\nStart with `GET /v1/company/risk?number=...`. It returns one verdict (`concern`, `action`), evidence-linked `flags` (each with the Companies House filing or field it came from), and an explicit `coverage` block listing what was and was not checked.\n\n**One scoring function.** Every endpoint that returns a score, risk, recommendation, decision or verdict uses the same assessment. A company that is not active on the register (liquidation, administration, dissolved...) is never rated Low or Proceed: its `score` is `null` (not assessed) and its verdict says why.\n\n**Missing data is never a pass.** Checks are `passed: true | false | null`; `null` means the data could not be retrieved. Upstream failures return an error status (429/502/504), never empty data.\n\n**What this is not.** Register and filing-compliance signals only. Not a credit score, not a solvency assessment, not financial advice. Filed accounts figures, director networks, CCJs and sanctions are not covered.\n\nData from Companies House under the Open Government Licence v3.0. Not affiliated with Companies House. All endpoints are currently free; no payment protocol is implemented.","license":{"name":"Data from Companies House, used under the Open Government Licence v3.0","url":"https://www.nationalarchives.gov.uk/doc/open-government-licence/version/3/"},"contact":{"name":"UK Company Intelligence","url":"https://ukcompanyintelligence.com/"}},"servers":[{"url":"https://ukcompanyintelligence.com","description":"This host"}],"tags":[{"name":"Verdict","description":"Decision-ready counterparty risk verdicts."},{"name":"Assessment","description":"Filing-compliance assessment and its explanations."},{"name":"Company","description":"Company facts used as evidence."},{"name":"Portfolio","description":"Screen or compare several companies (max 20 per request)."},{"name":"Search","description":"Find a company number by name."},{"name":"Meta","description":"Documentation and discovery."}],"paths":{"/v1/company/risk":{"get":{"tags":["Verdict"],"operationId":"getCompanyRisk","summary":"Counterparty risk verdict","description":"One evidence-linked verdict for a UK company: register status, insolvency cases, strike-off and Gazette notices (from filing-history slugs), overdue filings, recent material changes (director churn, registered office and name changes), charges, plus explicit coverage of what was not checked. Uses 2-4 Companies House lookups.","parameters":[{"$ref":"#/components/parameters/CompanyNumber"}],"responses":{"200":{"description":"Counterparty risk verdict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RiskVerdict"}}}},"400":{"description":"Missing or invalid company number","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Company not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Companies House rate limit reached; retry after the Retry-After header","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"502":{"description":"Companies House unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"504":{"description":"Companies House timed out","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/company/changes":{"get":{"tags":["Verdict"],"operationId":"getCompanyChanges","summary":"Material changes since a date","description":"Ranked digest of material register and filing changes since `since` (ISO date). Defaults to the last 90 days if omitted. Max lookback 730 days. Includes insolvency steps, Gazette/strike-off activity, director and address changes, name/control changes, new charges, and overdue filing signals from the profile. Monitoring agents can poll this endpoint; there are no webhooks.","parameters":[{"$ref":"#/components/parameters/CompanyNumber"},{"name":"since","in":"query","required":false,"description":"ISO date YYYY-MM-DD. Defaults to 90 days before today. Must not be in the future or older than 730 days.","schema":{"type":"string","format":"date","example":"2025-01-01"}}],"responses":{"200":{"description":"Change digest","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChangesDigest"}}}},"400":{"description":"Missing/invalid company number or invalid since","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Company not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Companies House rate limit reached; retry after the Retry-After header","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"502":{"description":"Companies House unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"504":{"description":"Companies House timed out","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/health":{"get":{"tags":["Assessment"],"operationId":"getCompanyHealth","summary":"Filing compliance assessment","description":"Score (0-100, or null when the company is not active), risk, recommendation and per-check explanations.","parameters":[{"$ref":"#/components/parameters/CompanyNumber"}],"responses":{"200":{"description":"Filing compliance assessment","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Health"}}}},"400":{"description":"Missing or invalid company number","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Company not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Companies House rate limit reached; retry after the Retry-After header","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"502":{"description":"Companies House unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"504":{"description":"Companies House timed out","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/analysis":{"get":{"tags":["Assessment"],"operationId":"getCompanyAnalysis","summary":"Assessment with written summary","description":"The /health assessment plus a plain-English summary.","parameters":[{"$ref":"#/components/parameters/CompanyNumber"}],"responses":{"200":{"description":"Assessment with written summary","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Missing or invalid company number","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Company not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Companies House rate limit reached; retry after the Retry-After header","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"502":{"description":"Companies House unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"504":{"description":"Companies House timed out","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/decision":{"get":{"tags":["Assessment"],"operationId":"getCompanyDecision","summary":"Decision with strengths and red flags","description":"The assessment recommendation as `decision`, with confidence (data coverage), strengths and red flags. Red flags include register status and insolvency.","parameters":[{"$ref":"#/components/parameters/CompanyNumber"}],"responses":{"200":{"description":"Decision with strengths and red flags","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Missing or invalid company number","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Company not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Companies House rate limit reached; retry after the Retry-After header","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"502":{"description":"Companies House unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"504":{"description":"Companies House timed out","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/redflags":{"get":{"tags":["Assessment"],"operationId":"getCompanyRedFlags","summary":"Red flags","description":"Adverse findings from the register, insolvency records, filing history and officer list.","parameters":[{"$ref":"#/components/parameters/CompanyNumber"}],"responses":{"200":{"description":"Red flags","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Missing or invalid company number","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Company not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Companies House rate limit reached; retry after the Retry-After header","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"502":{"description":"Companies House unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"504":{"description":"Companies House timed out","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/strengths":{"get":{"tags":["Assessment"],"operationId":"getCompanyStrengths","summary":"Strengths","description":"Positive findings. Only produced for companies active on the register.","parameters":[{"$ref":"#/components/parameters/CompanyNumber"}],"responses":{"200":{"description":"Strengths","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Missing or invalid company number","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Company not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Companies House rate limit reached; retry after the Retry-After header","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"502":{"description":"Companies House unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"504":{"description":"Companies House timed out","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/alerts":{"get":{"tags":["Assessment"],"operationId":"getCompanyAlerts","summary":"Alerts","description":"Current alerts, including strike-off and insolvency filings from filing history.","parameters":[{"$ref":"#/components/parameters/CompanyNumber"}],"responses":{"200":{"description":"Alerts","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Missing or invalid company number","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Company not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Companies House rate limit reached; retry after the Retry-After header","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"502":{"description":"Companies House unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"504":{"description":"Companies House timed out","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/report":{"get":{"tags":["Assessment"],"operationId":"getCompanyReport","summary":"Combined report","description":"Verdict, assessment, flags, alerts, deadlines, recent filings, directors and PSCs in one request.","parameters":[{"$ref":"#/components/parameters/CompanyNumber"}],"responses":{"200":{"description":"Combined report","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Missing or invalid company number","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Company not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Companies House rate limit reached; retry after the Retry-After header","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"502":{"description":"Companies House unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"504":{"description":"Companies House timed out","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/company-page":{"get":{"tags":["Company"],"operationId":"getCompanyPage","summary":"HTML company page","description":"Human-readable company page (HTML). Also available as /company/{number}.","parameters":[{"$ref":"#/components/parameters/CompanyNumber"}],"responses":{"200":{"description":"HTML company page","content":{"application/json":{"schema":{"type":"string"}}}},"400":{"description":"Missing or invalid company number","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Company not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Companies House rate limit reached; retry after the Retry-After header","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"502":{"description":"Companies House unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"504":{"description":"Companies House timed out","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/company/{number}":{"get":{"tags":["Company"],"operationId":"getCompanyPageByPath","summary":"HTML company page","parameters":[{"name":"number","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9]{1,8}$"}}],"responses":{"200":{"description":"HTML page","content":{"text/html":{"schema":{"type":"string"}}}},"400":{"description":"Invalid number","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Company not found (HTML)"}}}},"/summary":{"get":{"tags":["Company"],"operationId":"getCompanySummary","summary":"Company summary","description":"Name, status, incorporation date, jurisdiction, SIC codes and previous names.","parameters":[{"$ref":"#/components/parameters/CompanyNumber"}],"responses":{"200":{"description":"Company summary","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Missing or invalid company number","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Company not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Companies House rate limit reached; retry after the Retry-After header","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"502":{"description":"Companies House unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"504":{"description":"Companies House timed out","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/filings":{"get":{"tags":["Company"],"operationId":"getCompanyFilings","summary":"Recent filings","description":"The 20 most recent filing-history items (date, category, description slug).","parameters":[{"$ref":"#/components/parameters/CompanyNumber"}],"responses":{"200":{"description":"Recent filings","content":{"application/json":{"schema":{"type":"array","items":{"type":"object"}}}}},"400":{"description":"Missing or invalid company number","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Company not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Companies House rate limit reached; retry after the Retry-After header","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"502":{"description":"Companies House unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"504":{"description":"Companies House timed out","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/officers":{"get":{"tags":["Company"],"operationId":"getCompanyOfficers","summary":"Officers (paginated)","parameters":[{"$ref":"#/components/parameters/CompanyNumber"},{"name":"page","in":"query","schema":{"type":"integer","minimum":1,"default":1}},{"name":"items_per_page","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":20}}],"responses":{"200":{"description":"Officers","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Missing or invalid company number","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Company not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Companies House rate limit reached; retry after the Retry-After header","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"502":{"description":"Companies House unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"504":{"description":"Companies House timed out","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/directors":{"get":{"tags":["Company"],"operationId":"getCompanyDirectors","summary":"Current and resigned directors","description":"Directors from the first 100 officer records.","parameters":[{"$ref":"#/components/parameters/CompanyNumber"}],"responses":{"200":{"description":"Current and resigned directors","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Missing or invalid company number","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Company not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Companies House rate limit reached; retry after the Retry-After header","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"502":{"description":"Companies House unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"504":{"description":"Companies House timed out","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/psc":{"get":{"tags":["Company"],"operationId":"getCompanyPsc","summary":"Persons with significant control","description":"PSC list (first 100) with notified and ceased dates.","parameters":[{"$ref":"#/components/parameters/CompanyNumber"}],"responses":{"200":{"description":"Persons with significant control","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Missing or invalid company number","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Company not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Companies House rate limit reached; retry after the Retry-After header","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"502":{"description":"Companies House unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"504":{"description":"Companies House timed out","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/timeline":{"get":{"tags":["Company"],"operationId":"getCompanyTimeline","summary":"Company timeline","description":"Incorporation, PSC notifications, director appointments and recent filings, newest first.","parameters":[{"$ref":"#/components/parameters/CompanyNumber"}],"responses":{"200":{"description":"Company timeline","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Missing or invalid company number","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Company not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Companies House rate limit reached; retry after the Retry-After header","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"502":{"description":"Companies House unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"504":{"description":"Companies House timed out","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/compare":{"get":{"tags":["Portfolio"],"operationId":"compareCompanies","summary":"Compare companies","description":"Side-by-side assessment for 2-20 companies.","parameters":[{"$ref":"#/components/parameters/CompanyNumbers"}],"responses":{"200":{"description":"Compare companies","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Compare"}}}},"400":{"description":"Missing, invalid or too many company numbers (max 20 unique)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Companies House rate limit reached","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"502":{"description":"Companies House unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/bulk":{"get":{"tags":["Portfolio"],"operationId":"bulkScreenCompanies","summary":"Bulk screening","description":"Screens up to 20 companies. Not-active companies are listed first and not scored.","parameters":[{"$ref":"#/components/parameters/CompanyNumbers"}],"responses":{"200":{"description":"Bulk screening","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Bulk"}}}},"400":{"description":"Missing, invalid or too many company numbers (max 20 unique)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Companies House rate limit reached","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"502":{"description":"Companies House unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/watchlist":{"get":{"tags":["Portfolio"],"operationId":"getWatchlist","summary":"Screen a watchlist","description":"Same as /bulk with a watchlist name. Nothing is stored server-side.","parameters":[{"$ref":"#/components/parameters/CompanyNumbers"}],"responses":{"200":{"description":"Screen a watchlist","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Bulk"}}}},"400":{"description":"Missing, invalid or too many company numbers (max 20 unique)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Companies House rate limit reached","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"502":{"description":"Companies House unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/bulk-csv":{"get":{"tags":["Portfolio"],"operationId":"bulkScreenCsv","summary":"Bulk screening as CSV","description":"CSV version of /bulk.","parameters":[{"$ref":"#/components/parameters/CompanyNumbers"}],"responses":{"200":{"description":"Bulk screening as CSV","content":{"text/csv":{"schema":{"type":"string"}}}},"400":{"description":"Missing, invalid or too many company numbers (max 20 unique)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Companies House rate limit reached","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"502":{"description":"Companies House unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/watchlist-csv":{"get":{"tags":["Portfolio"],"operationId":"watchlistCsv","summary":"Watchlist as CSV","description":"CSV version of /watchlist.","parameters":[{"$ref":"#/components/parameters/CompanyNumbers"}],"responses":{"200":{"description":"Watchlist as CSV","content":{"text/csv":{"schema":{"type":"string"}}}},"400":{"description":"Missing, invalid or too many company numbers (max 20 unique)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Companies House rate limit reached","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"502":{"description":"Companies House unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/watchlist-report":{"get":{"tags":["Portfolio"],"operationId":"watchlistReport","summary":"Watchlist links","description":"Validated numbers with links to the watchlist JSON and CSV. Makes no upstream lookups.","parameters":[{"$ref":"#/components/parameters/CompanyNumbers"}],"responses":{"200":{"description":"Watchlist links","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Missing, invalid or too many company numbers (max 20 unique)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Companies House rate limit reached","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"502":{"description":"Companies House unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/search":{"get":{"tags":["Search"],"operationId":"searchCompanies","summary":"Search companies by name","parameters":[{"name":"q","in":"query","required":true,"schema":{"type":"string","minLength":2,"maxLength":160},"example":"Tesco"}],"responses":{"200":{"description":"Matches","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Invalid query","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"502":{"description":"Upstream unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/":{"get":{"tags":["Meta"],"operationId":"getHomePage","summary":"Product page and live demo (HTML)","responses":{"200":{"description":"HTML","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/openapi.json":{"get":{"tags":["Meta"],"operationId":"getOpenApi","summary":"This OpenAPI document (also /openapi)","responses":{"200":{"description":"OpenAPI 3.1","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/llms.txt":{"get":{"tags":["Meta"],"operationId":"getLlmsTxt","summary":"Plain-text guide for LLM agents","responses":{"200":{"description":"Text","content":{"text/plain":{"schema":{"type":"string"}}}}}}},"/sitemap.xml":{"get":{"tags":["Meta"],"operationId":"getSitemap","summary":"XML sitemap (host-agnostic paths)","responses":{"200":{"description":"Sitemap","content":{"application/xml":{"schema":{"type":"string"}}}}}}},"/metrics":{"get":{"tags":["Meta"],"operationId":"getMetrics","summary":"Privacy-safe per-isolate route counters (no query strings / company numbers)","responses":{"200":{"description":"Metrics","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/status":{"get":{"tags":["Meta"],"operationId":"getStatus","summary":"Liveness JSON for uptime badges (no upstream calls)","responses":{"200":{"description":"Status","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/use-cases/supplier-vetting":{"get":{"tags":["Meta"],"operationId":"getUseCaseSupplierVetting","summary":"SEO landing: supplier vetting","responses":{"200":{"description":"HTML","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/use-cases/invoice-risk":{"get":{"tags":["Meta"],"operationId":"getUseCaseInvoiceRisk","summary":"SEO landing: invoice risk","responses":{"200":{"description":"HTML","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/use-cases/agent-tools":{"get":{"tags":["Meta"],"operationId":"getUseCaseAgentTools","summary":"SEO landing: agent tools","responses":{"200":{"description":"HTML","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/use-cases/aml-kyb-checks":{"get":{"tags":["Meta"],"operationId":"getUseCaseAmlKyb","summary":"SEO landing: KYB register checks","responses":{"200":{"description":"HTML","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/use-cases/portfolio-monitoring":{"get":{"tags":["Meta"],"operationId":"getUseCasePortfolioMonitoring","summary":"SEO landing: portfolio monitoring","responses":{"200":{"description":"HTML","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/guides/companies-house-risk-api":{"get":{"tags":["Meta"],"operationId":"getGuideCompaniesHouseRiskApi","summary":"SEO guide: Companies House risk API","responses":{"200":{"description":"HTML","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/guides/uk-company-strike-off-check":{"get":{"tags":["Meta"],"operationId":"getGuideStrikeOff","summary":"SEO guide: strike-off checks","responses":{"200":{"description":"HTML","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/guides/companies-house-liquidation-api":{"get":{"tags":["Meta"],"operationId":"getGuideLiquidation","summary":"SEO guide: liquidation signals","responses":{"200":{"description":"HTML","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/compare/companies-house-vs-ukci":{"get":{"tags":["Meta"],"operationId":"getCompareCompaniesHouse","summary":"SEO compare: Companies House vs UKCI","responses":{"200":{"description":"HTML","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/compare/endole-alternative":{"get":{"tags":["Meta"],"operationId":"getCompareEndoleAlt","summary":"SEO compare: automation-first alternative","responses":{"200":{"description":"HTML","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/compare/companystack-alternative":{"get":{"tags":["Meta"],"operationId":"getCompareCompanystackAlt","summary":"SEO compare: CompanyStack alternative framing","responses":{"200":{"description":"HTML","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/guides/uk-company-overdue-accounts-api":{"get":{"tags":["Meta"],"operationId":"getGuideOverdueAccounts","summary":"SEO guide: overdue accounts signals","responses":{"200":{"description":"HTML","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/guides/agent-uk-company-changes":{"get":{"tags":["Meta"],"operationId":"getGuideAgentChanges","summary":"SEO guide: agents polling changes","responses":{"200":{"description":"HTML","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/guides/uk-confirmation-statement-overdue":{"get":{"tags":["Meta"],"operationId":"getGuideConfirmationOverdue","summary":"SEO guide: confirmation statement overdue","responses":{"200":{"description":"HTML","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/use-cases/uk-company-monitoring-api":{"get":{"tags":["Meta"],"operationId":"getUseCaseMonitoringApi","summary":"SEO landing: UK company monitoring API","responses":{"200":{"description":"HTML","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/guides/uk-gazette-notice-company-check":{"get":{"tags":["Meta"],"operationId":"getGuideGazetteNotice","summary":"SEO guide: Gazette notice company checks","responses":{"200":{"description":"HTML","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/guides/agent-uk-company-onboarding":{"get":{"tags":["Meta"],"operationId":"getGuideAgentOnboarding","summary":"SEO guide: agent UK company onboarding checklist","responses":{"200":{"description":"HTML","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/guides/free-companies-house-risk-layer":{"get":{"tags":["Meta"],"operationId":"getGuideFreeRiskLayer","summary":"SEO guide: free Companies House risk layer","responses":{"200":{"description":"HTML","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/compare/bulk-screening-vs-verdict":{"get":{"tags":["Meta"],"operationId":"getCompareBulkVsVerdict","summary":"SEO compare: bulk screening vs risk verdict","responses":{"200":{"description":"HTML","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/guides/uk-psc-check-limits":{"get":{"tags":["Meta"],"operationId":"getGuidePscLimits","summary":"SEO guide: PSC check honest limits","responses":{"200":{"description":"HTML","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/guides/openapi-uk-company-intelligence":{"get":{"tags":["Meta"],"operationId":"getGuideOpenapiUkci","summary":"SEO guide: OpenAPI for UK company intelligence","responses":{"200":{"description":"HTML","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/compare/uk-company-risk-api":{"get":{"tags":["Meta"],"operationId":"getCompareUkCompanyRiskApi","summary":"SEO compare: UK company risk API positioning","responses":{"200":{"description":"HTML","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/compare/companies-house-mcp-vs-risk-api":{"get":{"tags":["Meta"],"operationId":"getCompareChMcpVsRisk","summary":"SEO compare: Companies House MCP vs risk API","responses":{"200":{"description":"HTML","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/guides/uk-company-filing-changes-api":{"get":{"tags":["Meta"],"operationId":"getGuideFilingChangesApi","summary":"SEO guide: monitor UK company filing changes","responses":{"200":{"description":"HTML","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/guides/uk-company-intelligence-api":{"get":{"tags":["Meta"],"operationId":"getGuideUkciApi","summary":"SEO guide: UK Company Intelligence API overview","responses":{"200":{"description":"HTML","content":{"text/html":{"schema":{"type":"string"}}}}}}}},"components":{"parameters":{"CompanyNumber":{"name":"number","in":"query","required":true,"description":"Companies House company number: 8 characters, e.g. 00445790 or SC123456. Shorter all-digit numbers are zero-padded.","schema":{"type":"string","pattern":"^[A-Za-z0-9]{1,8}$"},"example":"00445790"},"CompanyNumbers":{"name":"numbers","in":"query","required":true,"description":"Comma-separated company numbers. Duplicates are removed; invalid numbers are reported in `invalid`. Max 20 unique.","schema":{"type":"string"},"example":"00445790,03977902,13508008"}},"schemas":{"Error":{"type":"object","required":["error","code"],"properties":{"error":{"type":"string","description":"Human-readable message"},"code":{"type":"string","enum":["not_found","missing_company_number","invalid_company_number","missing_numbers","too_many_numbers","invalid_query","upstream_rate_limited","upstream_unavailable","upstream_timeout","not_configured","request_too_large","method_not_allowed","invalid_since","internal_error"]},"company_number":{"type":"string"}}},"Check":{"type":"object","properties":{"id":{"type":"string","enum":["status","strike_off_proposal","insolvency","liquidation","accounts","confirmation_statement"]},"passed":{"type":["boolean","null"],"description":"null = could not be checked (never a pass)"},"detail":{"type":"string"}}},"Flag":{"type":"object","properties":{"code":{"type":"string","examples":["in_insolvency_process","compulsory_strike_off_notice","accounts_overdue","director_churn"]},"severity":{"type":"string","enum":["critical","high","medium","info"]},"title":{"type":"string"},"detail":{"type":"string"},"observed_on":{"type":["string","null"],"format":"date"},"evidence":{"type":"array","items":{"type":"object","properties":{"source":{"type":"string"},"field":{"type":"string"},"value":{},"date":{"type":["string","null"]},"description":{"type":"string"},"transaction_id":{"type":"string"}}}}}},"Health":{"type":"object","properties":{"company":{"type":"string"},"company_status":{"type":"string"},"score":{"type":["integer","null"],"description":"null = not assessed (company not active)"},"score_available":{"type":"boolean"},"risk":{"type":"string","enum":["Low","Medium","High","Not assessed"]},"risk_level":{"type":"string"},"recommendation":{"type":"string","enum":["Proceed","Review","Investigate","Not applicable"]},"confidence":{"type":"string","enum":["High","Medium","Low"]},"register_category":{"type":"string","enum":["active","insolvency_process","closed","other"]},"checks_checked":{"type":"integer"},"checks_total":{"type":"integer"},"checks_not_checked":{"type":"integer"},"basis":{"type":"string"},"checks":{"type":"array","items":{"$ref":"#/components/schemas/Check"}},"reasons":{"type":"array","items":{"type":"string"}}}},"RiskVerdict":{"type":"object","properties":{"api_version":{"type":"string","const":"1"},"generated_at":{"type":"string","format":"date-time"},"company":{"type":"object"},"verdict":{"type":"object","properties":{"concern":{"type":"string","enum":["low","elevated","high","severe","not_trading","not_assessed"]},"action":{"type":"string","enum":["standard_checks","review","escalate"]},"headline":{"type":"string"},"reasons":{"type":"array","items":{"type":"string"}}}},"compliance":{"type":"object","properties":{"score":{"type":["integer","null"]},"risk":{"type":"string"},"recommendation":{"type":"string"},"confidence":{"type":"string"},"checks":{"type":"array","items":{"$ref":"#/components/schemas/Check"}}}},"flags":{"type":"array","items":{"$ref":"#/components/schemas/Flag"}},"positives":{"type":"array","items":{"type":"string"}},"coverage":{"type":"object"},"sources":{"type":"object"},"disclaimer":{"type":"string"}}},"ChangesDigest":{"type":"object","properties":{"api_version":{"type":"string","const":"1"},"generated_at":{"type":"string","format":"date-time"},"company":{"type":"object"},"since":{"type":"string","format":"date"},"window":{"type":"object","properties":{"from":{"type":"string","format":"date"},"to":{"type":"string","format":"date"}}},"changes":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"severity":{"type":"string","enum":["critical","high","medium","info"]},"title":{"type":"string"},"detail":{"type":"string"},"observed_on":{"type":["string","null"],"format":"date"},"evidence":{"type":"array","items":{"type":"object"}}}}},"summary":{"type":"object","properties":{"total":{"type":"integer"},"by_severity":{"type":"object","properties":{"critical":{"type":"integer"},"high":{"type":"integer"},"medium":{"type":"integer"},"info":{"type":"integer"}}}}},"coverage":{"type":"object"},"sources":{"type":"object"},"disclaimer":{"type":"string"}}},"Bulk":{"type":"object","properties":{"total_companies":{"type":"integer"},"low_risk":{"type":"integer"},"medium_risk":{"type":"integer"},"high_risk":{"type":"integer"},"not_assessed":{"type":"integer"},"portfolio_insights":{"type":"array","items":{"type":"string"}},"companies":{"type":"array","items":{"type":"object"}},"invalid":{"type":"array","items":{"type":"string"}},"not_found":{"type":"array","items":{"type":"string"}},"errors":{"type":"array","items":{"type":"object"}},"duplicates_removed":{"type":"integer"},"limit":{"type":"integer"}}},"Compare":{"type":"object","properties":{"companies":{"type":"array","items":{"type":"object"}},"invalid":{"type":"array","items":{"type":"string"}},"not_found":{"type":"array","items":{"type":"string"}}}}}}}