{"openapi":"3.1.0","info":{"title":"FileClerk API for agents","version":"0.5.10","description":"The 5 reads that answer a question about one UK company: find it by name, its deadlines, its filed figures, the calculators run on its own facts, and deadlines for a company that does not exist yet. The 4 company reads need no key: 60 lookups and 600 name searches per hour per caller, and each answer with no key carries `account`, what a free FileClerk account adds. The deadlines of a new company need a free account: OAuth, or a FileClerk API key as the x-api-key header (see /auth.md); a call with neither answers 401. With an account the limits are 1,000 lookups and 10,000 name searches per hour; a refused call answers 429 with `Retry-After`. Dates are ISO 8601 calendar dates in Europe/London. Amounts are whole pounds, except a field named `pence` or ending in `_pence`. FileClerk is independent, not part of HMRC or Companies House. Every other operation is in /api/v1/openapi.json."},"servers":[{"url":"https://fileclerk.co.uk","description":"Production"}],"paths":{"/api/v1/companies/search":{"get":{"tags":["companies"],"operationId":"companies.search","security":[{},{"ApiKey":[]},{"OAuth2":["mcp"]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"query":{"type":"string"},"items":{"type":"array","items":{"type":"object","properties":{"company_number":{"type":"string"},"company_name":{"type":"string"},"company_status":{"anyOf":[{"type":"string"},{"type":"null"}]},"locality":{"anyOf":[{"type":"string"},{"type":"null"}]},"postcode":{"anyOf":[{"type":"string"},{"type":"null"}]},"incorporated_on":{"anyOf":[{"type":"string"},{"type":"null"}]},"match":{"type":"string","enum":["exact","prefix","partial"]}},"required":["company_number","company_name","company_status","locality","postcode","incorporated_on","match"],"additionalProperties":false}},"source":{"type":"string","enum":["register","snapshot"]},"snapshot_on":{"type":"string"}},"required":["query","items"],"additionalProperties":false}}}},"400":{"description":"InvalidInput","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidInputEncoded"}}}},"429":{"description":"RateLimited","content":{"application/json":{"schema":{"type":"object","properties":{"_tag":{"type":"string","enum":["RateLimited"]},"message":{"type":"string"},"reset_at":{"type":"number"},"retry_after":{"type":"number"}},"required":["_tag","message","reset_at","retry_after"],"additionalProperties":false}}},"headers":{"retry-after":{"schema":{"type":"string"},"required":true}}},"502":{"description":"Upstream","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpstreamEncoded"}}}}},"description":"Up to 20 companies whose name matches `q` (2 to 160 characters), from the Companies House register. Active companies come first. While Companies House refuses lookups, the answer comes from FileClerk's copy of its monthly snapshot instead, with exact and prefix matches only: `source` is `register` or `snapshot`, and `snapshot_on` is that snapshot's date.","summary":"Find UK companies by name","parameters":[{"name":"q","in":"query","schema":{"type":"string"},"required":true}]}},"/api/v1/companies/{number}/deadlines":{"get":{"tags":["companies"],"operationId":"companies.deadlines","security":[{},{"ApiKey":[]},{"OAuth2":["mcp"]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"view":{"type":"string","enum":["summary"]},"version":{"type":"number"},"company":{"type":"object","properties":{"number":{"type":"string"},"name":{"type":"string"},"status":{"type":"string"},"type":{"type":"string"},"status_label":{"type":"string"},"type_label":{"type":"string"},"incorporated_on":{"anyOf":[{"type":"string"},{"type":"null"}]},"dissolved_on":{"type":"string"},"registered_office":{"type":"object","properties":{"address_line_1":{"type":"string"},"address_line_2":{"type":"string"},"locality":{"type":"string"},"region":{"type":"string"},"postal_code":{"type":"string"},"country":{"type":"string"}},"additionalProperties":false},"year_end":{"anyOf":[{"type":"object","properties":{"day":{"type":"number"},"month":{"type":"number"}},"required":["day","month"],"additionalProperties":false},{"type":"null"}]},"last_accounts":{"anyOf":[{"type":"object","properties":{"made_up_to":{"type":"string"},"period_start_on":{"type":"string"},"type":{"anyOf":[{"type":"string"},{"type":"null"}]},"filed_on":{"anyOf":[{"type":"string"},{"type":"null"}]},"filed_via":{"anyOf":[{"type":"string","enum":["paper","webfiling","hmrc_joint","software"]},{"type":"null"}]},"web_service":{"type":"string","enum":["webfiling","companies_house_online"]},"figures":{"type":"object","properties":{"net_assets":{"anyOf":[{"type":"number"},{"type":"null"}]},"turnover":{"anyOf":[{"type":"number"},{"type":"null"}]},"profit":{"anyOf":[{"type":"number"},{"type":"null"}]},"register_url":{"type":"string"}},"required":["net_assets","turnover","profit","register_url"],"additionalProperties":false,"description":"Net assets, turnover and profit (profit or loss for the year) in pounds, as tagged in these accounts' iXBRL; each null when not tagged. Absent for accounts filed as a PDF. register_url opens the filed accounts."}},"required":["made_up_to","type","filed_on","filed_via"],"additionalProperties":false},{"type":"null"}]},"sic_codes":{"type":"array","items":{"type":"string"}},"pscs":{"type":"array","items":{"type":"object","properties":{"id":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The register's id for this person, the same on their officer and PSC records: identity/<id> is their identity card. Null when the register gives none."},"name":{"anyOf":[{"type":"string"},{"type":"null"}]},"kind":{"type":"string","enum":["individual","entity","protected"],"description":"individual, entity (a company or other legal entity) or protected (the register withholds the details)."},"company_number":{"type":"string"},"notified_on":{"anyOf":[{"type":"string"},{"type":"null"}]},"control":{"type":"object","properties":{"shares":{"anyOf":[{"type":"string","enum":["25-to-50","50-to-75","75-to-100","more-than-25"],"description":"25-to-50 more than 25% but not more than 50%, 50-to-75 more than 50% but less than 75%, 75-to-100 75% or more, more-than-25 more than 25% (an overseas entity's beneficial owner)."},{"type":"null"}],"description":"The band of the shares the person holds directly or indirectly, as the register records it: 25-to-50 more than 25% but not more than 50%, 50-to-75 more than 50% but less than 75%, 75-to-100 75% or more, more-than-25 more than 25% (an overseas entity's beneficial owner). Null when the register records no share band: they may hold 25% or less, or control through a trust or a firm (in natures)."},"votes":{"anyOf":[{"type":"string","enum":["25-to-50","50-to-75","75-to-100","more-than-25"],"description":"25-to-50 more than 25% but not more than 50%, 50-to-75 more than 50% but less than 75%, 75-to-100 75% or more, more-than-25 more than 25% (an overseas entity's beneficial owner)."},{"type":"null"}],"description":"The voting rights, in the same bands; an LLP's too. Null when the register records no voting band."},"natures":{"type":"array","items":{"type":"string"},"description":"Every nature of control as Companies House codes it, such as right-to-appoint-and-remove-directors."}},"required":["shares","votes","natures"],"additionalProperties":false}},"required":["id","name","kind","notified_on","control"],"additionalProperties":false},"description":"Each current person with significant control (PSC) on the register: a person, or a company or other legal entity, and what they control. Empty when the register lists none; FileClerk does not read PSC statements."},"officers":{"type":"array","items":{"type":"object","properties":{"id":{"anyOf":[{"type":"string"},{"type":"null"}]},"name":{"type":"string"},"role":{"type":"string"},"appointed_on":{"anyOf":[{"type":"string"},{"type":"null"}]},"occupation":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["id","name","role","appointed_on","occupation"],"additionalProperties":false},"description":"Current officers; id is get_officer's input. No birth date or nationality."},"last_confirmation_statement":{"anyOf":[{"type":"object","properties":{"made_up_to":{"type":"string"},"filed_on":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["made_up_to","filed_on"],"additionalProperties":false},{"type":"null"}]}},"required":["number","name","status","type","status_label","type_label","incorporated_on","year_end","last_accounts","last_confirmation_statement"],"additionalProperties":false},"as_of":{"type":"string"},"fetched_at":{"type":"string"},"timezone":{"type":"string"},"applicable":{"type":"boolean"},"verdict":{"type":"object","properties":{"state":{"type":"string","enum":["act_now","coming_up","all_clear","not_applicable"]},"headline":{"type":"string"},"chip":{"type":"string"},"basis":{"type":"string"},"overdue":{"type":"number"},"due_soon":{"type":"number"},"check_needed":{"type":"number"},"window_days":{"type":"number"},"next":{"anyOf":[{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"},"due_on":{"type":"string"},"basis":{"type":"string","enum":["register","estimate","inferred"]}},"required":["id","title","due_on","basis"],"additionalProperties":false},{"type":"null"}]},"companies_house":{"type":"string","enum":["act_now","coming_up","all_clear","not_applicable"]},"hmrc":{"type":"string","enum":["not_visible"]}},"required":["state","headline","chip","basis","overdue","due_soon","check_needed","window_days","next"],"additionalProperties":false},"nearest":{"anyOf":[{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"},"due_on":{"type":"string"},"days_left":{"type":"number"},"basis":{"type":"string","enum":["register","estimate","inferred"]}},"required":["id","title","due_on","days_left","basis"],"additionalProperties":false},{"type":"null"}]},"nearest_conditional":{"anyOf":[{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"},"due_on":{"type":"string"},"days_left":{"type":"number"},"basis":{"type":"string","enum":["register","estimate","inferred"]}},"required":["id","title","due_on","days_left","basis"],"additionalProperties":false},{"type":"null"}]},"obligations":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"kind":{"type":"string","enum":["accounts","cic34","confirmation_statement","identity","ct600","ct_payment","strike_off","winding_up","registered_office","hmrc_notify","plc_agm","gender_pay_gap","payment_practices","modern_slavery","charity_return","employer"]},"title":{"type":"string"},"status":{"type":"string","enum":["overdue","due_soon","on_track","check_needed","done","not_applicable"]},"due_on":{"anyOf":[{"type":"string"},{"type":"null"}]},"days_left":{"anyOf":[{"type":"number"},{"type":"null"}]},"done_on":{"anyOf":[{"type":"string"},{"type":"null"}]},"period_start_on":{"anyOf":[{"type":"string"},{"type":"null"}]},"period_end_on":{"anyOf":[{"type":"string"},{"type":"null"}]},"basis":{"type":"string","enum":["register","estimate","inferred"]},"completion":{"type":"string","enum":["done","open","unknown"]},"estimate":{"anyOf":[{"type":"string"},{"type":"null"}]},"formula":{"type":"string"},"applies_if":{"type":"string","enum":["has_employees"]},"effective_due_on":{"type":"string"},"next_monthly_on":{"type":"string"},"rule_url":{"type":"string"},"evidence_url":{"type":"string"},"last_filed_on":{"type":"string"},"filing_url":{"type":"string"},"status_reason":{"type":"string"},"calculation":{"type":"object","properties":{"base_on":{"type":"string"},"base":{"type":"string"},"add_months":{"type":"number"},"add_days":{"type":"number"},"result":{"type":"string"}},"required":["base_on","base","add_months","add_days","result"],"additionalProperties":false},"if_missed":{"type":"string"},"if_missed_url":{"type":"string"},"penalty":{"type":"object","properties":{"amount_now":{"type":"number"},"doubled":{"anyOf":[{"type":"boolean","enum":[true]},{"type":"boolean","enum":[false]},{"type":"string","enum":["possible"]}]},"doubled_reason":{"anyOf":[{"type":"string"},{"type":"null"}]},"next_amount":{"anyOf":[{"type":"number"},{"type":"null"}]},"next_band_on":{"anyOf":[{"type":"string"},{"type":"null"}]},"basis":{"type":"string"},"scale":{"type":"object","properties":{"bands":{"type":"array","items":{"type":"object","properties":{"late_by":{"type":"string"},"from_on":{"type":"string"},"amount":{"type":"number"}},"required":["late_by","from_on","amount"],"additionalProperties":false}},"doubling":{"type":"string"}},"required":["bands","doubling"],"additionalProperties":false}},"required":["amount_now","doubled","doubled_reason","next_amount","next_band_on","basis"],"additionalProperties":false},"source":{"type":"object","properties":{"name":{"type":"string"},"url":{"type":"string"},"checked_on":{"type":"string"}},"required":["name","url","checked_on"],"additionalProperties":false}},"required":["id","kind","title","status","due_on","days_left","done_on","period_start_on","period_end_on","basis","completion","estimate","if_missed","source"],"additionalProperties":false}},"time_limits":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"},"last_day":{"type":"string"},"note":{"type":"string"},"accounts_end_on":{"type":"string"},"source":{"type":"object","properties":{"name":{"type":"string"},"url":{"type":"string"},"checked_on":{"type":"string"}},"required":["name","url","checked_on"],"additionalProperties":false}},"required":["id","title","last_day","note","source"],"additionalProperties":false}},"time_limits_more":{"type":"number"},"coverage":{"type":"object","properties":{"reads":{"type":"array","items":{"type":"string"}},"assumptions":{"type":"array","items":{"type":"string"}},"cannot_see":{"type":"array","items":{"type":"string"}}},"required":["reads","cannot_see"],"additionalProperties":false},"notes":{"type":"array","items":{"type":"string"}}},"required":["view","company","as_of","timezone","applicable","verdict","nearest","nearest_conditional","obligations","time_limits","time_limits_more","coverage","notes"],"additionalProperties":false},"examples":{"summary":{"summary":"view=summary, for a sample company that is not on the register","value":{"view":"summary","version":8,"company":{"number":"90000001","name":"HEALTHY MICRO LTD","status":"active","type":"ltd","status_label":"Active","type_label":"Private limited company","incorporated_on":"2020-03-10","year_end":{"day":31,"month":3},"last_accounts":{"made_up_to":"2025-03-31","type":"micro-entity","filed_on":"2025-11-02","filed_via":null},"last_confirmation_statement":{"made_up_to":"2026-03-10","filed_on":null},"pscs":[],"officers":[]},"as_of":"2026-11-24","fetched_at":"2026-11-24T09:00:00.000Z","timezone":"Europe/London","applicable":true,"verdict":{"state":"all_clear","headline":"All clear on the Companies House register. Next: Annual accounts, due 31 December 2026.","chip":"All clear · next: Annual accounts in 37 days","basis":"Based on the Companies House register, checked 24 November 2026. HMRC dates are estimates: FileClerk cannot see HMRC filings or payments.","overdue":0,"due_soon":0,"check_needed":0,"window_days":30,"next":{"id":"accounts","title":"Annual accounts","due_on":"2026-12-31","basis":"register"},"companies_house":"all_clear","hmrc":"not_visible"},"nearest":{"id":"accounts","title":"Annual accounts","due_on":"2026-12-31","days_left":37,"basis":"register"},"nearest_conditional":null,"obligations":[{"id":"accounts","kind":"accounts","title":"Annual accounts","status":"on_track","due_on":"2026-12-31","days_left":37,"done_on":null,"period_start_on":null,"period_end_on":"2026-03-31","basis":"register","completion":"open","estimate":null,"formula":"Companies House register, next accounts due date.","rule_url":"https://www.gov.uk/prepare-file-annual-accounts-for-limited-company","evidence_url":"https://find-and-update.company-information.service.gov.uk/company/90000001/filing-history?category=accounts","last_filed_on":"2025-11-02","if_missed":"If late: Companies House charges £150, rising the longer it is late.","if_missed_url":"https://www.gov.uk/government/publications/late-filing-penalties/late-filing-penalties","penalty":{"amount_now":0,"doubled":false,"doubled_reason":null,"next_amount":150,"next_band_on":"2027-01-01","basis":"Companies House late filing penalty, measured from the accounts due date.","scale":{"bands":[{"late_by":"Up to 1 month","from_on":"2027-01-01","amount":150},{"late_by":"1 to 3 months","from_on":"2027-02-01","amount":375},{"late_by":"3 to 6 months","from_on":"2027-04-01","amount":750},{"late_by":"More than 6 months","from_on":"2027-07-01","amount":1500}],"doubling":"The amounts double when the accounts for the previous financial year were also delivered late."}},"source":{"name":"Companies House register","url":"https://find-and-update.company-information.service.gov.uk/company/90000001","checked_on":"2026-11-22"}},{"id":"ct_payment/2026-03-31","kind":"ct_payment","title":"Corporation Tax payment","status":"on_track","due_on":"2027-01-01","days_left":38,"done_on":null,"period_start_on":"2025-04-01","period_end_on":"2026-03-31","basis":"estimate","completion":"unknown","estimate":"Estimate: assumes the Corporation Tax accounting period matches the accounts period, 1 April 2025 to 31 March 2026.","formula":"Corporation Tax period end + 9 months + 1 day.","effective_due_on":"2026-12-31","rule_url":"https://www.gov.uk/pay-corporation-tax","calculation":{"base_on":"2026-03-31","base":"Corporation Tax period end","add_months":9,"add_days":1,"result":"2027-01-01"},"if_missed":"If late: HMRC charges interest at 8.00% a year from the day after it is due.","if_missed_url":"https://www.gov.uk/government/publications/rates-and-allowances-hmrc-interest-rates-for-late-and-early-payments/rates-and-allowances-hmrc-interest-rates","source":{"name":"FileClerk estimate from the accounts period on the register","url":"https://www.gov.uk/pay-corporation-tax","checked_on":"2026-11-22"}},{"id":"confirmation_statement","kind":"confirmation_statement","title":"Confirmation statement","status":"on_track","due_on":"2027-03-24","days_left":120,"done_on":null,"period_start_on":null,"period_end_on":null,"basis":"register","completion":"open","estimate":null,"formula":"Companies House register, next confirmation statement due date.","rule_url":"https://www.gov.uk/running-a-limited-company/confirmation-statement","evidence_url":"https://find-and-update.company-information.service.gov.uk/company/90000001/filing-history?category=confirmation-statement","if_missed":"If late: a criminal offence for the company and its directors, and the company can be struck off.","if_missed_url":"https://www.gov.uk/government/publications/late-filing-penalties/late-filing-penalties","source":{"name":"Companies House register","url":"https://find-and-update.company-information.service.gov.uk/company/90000001","checked_on":"2026-11-22"}},{"id":"ct600/2026-03-31","kind":"ct600","title":"Company Tax Return (CT600)","status":"on_track","due_on":"2027-03-31","days_left":127,"done_on":null,"period_start_on":"2025-04-01","period_end_on":"2026-03-31","basis":"estimate","completion":"unknown","estimate":"Estimate: assumes the Corporation Tax accounting period matches the accounts period, 1 April 2025 to 31 March 2026.","formula":"End of the accounts period + 12 months.","rule_url":"https://www.gov.uk/company-tax-returns","calculation":{"base_on":"2026-03-31","base":"Corporation Tax period end","add_months":12,"add_days":0,"result":"2027-03-31"},"if_missed":"If late: a £200 penalty from HMRC, and another £200 at 3 months.","if_missed_url":"https://www.gov.uk/company-tax-returns/penalties-for-late-filing","source":{"name":"FileClerk estimate from the accounts period on the register","url":"https://www.gov.uk/pay-corporation-tax","checked_on":"2026-11-22"}}],"time_limits":[{"id":"ct600_amend/2025-03-31","title":"Amend the Company Tax Return","last_day":"2027-03-31","note":"For the period ending 31 March 2025: changes, including an R&D claim, can be made up to 12 months after the return's filing deadline.","source":{"name":"Finance Act 1998 Sch 18 para 15: amending a company tax return","url":"https://www.legislation.gov.uk/ukpga/1998/36/schedule/18/paragraph/15","checked_on":"2026-11-22"}},{"id":"loss_carry_back/2025-03-31","title":"Trading loss relief","last_day":"2027-03-31","note":"For a loss in the period ending 31 March 2025: set it against that period's profits, then those of the previous 12 months.","source":{"name":"Corporation Tax Act 2010 s37: relief for trade losses","url":"https://www.legislation.gov.uk/ukpga/2010/4/section/37","checked_on":"2026-11-25"}},{"id":"overpayment_relief/2025-03-31","title":"Overpayment relief","last_day":"2029-03-31","note":"For the period ending 31 March 2025: reclaim Corporation Tax paid by mistake.","source":{"name":"GOV.UK: Check if you should claim overpayment relief for Corporation Tax","url":"https://www.gov.uk/guidance/check-if-you-should-claim-overpayment-relief-for-corporation-tax","checked_on":"2026-11-22"}}],"time_limits_more":3,"coverage":{"reads":["Companies House register: the company profile, filing history, officers, people with significant control, charges and Gazette notices.","The latest accounts filed at Companies House: the average number of employees."],"assumptions":["Corporation Tax periods follow the accounts periods on the register. A company that told HMRC of other dates has other deadlines.","The company trades. A company HMRC treats as dormant may have no Company Tax Return to file until HMRC asks for one.","Taxable profits up to £1.5 million, because no large-company register lists the company: the payment date uses the 9 months and 1 day rule. A larger company pays in quarterly instalments."],"cannot_see":["HMRC records. Corporation Tax periods, returns and payments are not public, so each HMRC date is an estimate from the accounts period on the register.","Payroll records. A payroll is inferred from the average number of employees in the latest filed accounts.","VAT. VAT periods are not public, so VAT return dates are not listed.","Taxable profit. It is not public, so FileClerk cannot work out Corporation Tax instalment dates. Large companies are found from the gender pay gap, payment practices and modern slavery registers.","General meetings. FileClerk cannot see whether an AGM was held.","HMRC dormancy. A company HMRC treats as dormant may have no Corporation Tax period."]},"notes":[]}}}}}},"400":{"description":"InvalidCompanyNumber","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidCompanyNumberEncoded"}}}},"404":{"description":"CompanyNotFound","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CompanyNotFoundEncoded"}}}},"429":{"description":"RateLimited","content":{"application/json":{"schema":{"type":"object","properties":{"_tag":{"type":"string","enum":["RateLimited"]},"message":{"type":"string"},"reset_at":{"type":"number"},"retry_after":{"type":"number"}},"required":["_tag","message","reset_at","retry_after"],"additionalProperties":false}}},"headers":{"retry-after":{"schema":{"type":"string"},"required":true}}},"502":{"description":"Upstream","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpstreamEncoded"}}}}},"description":"Every deadline of one company with its status, basis and source, the nearest open date of all, the company facts and what FileClerk cannot see. Dates are calendar dates in `timezone`; day counts are for `as_of`. The full report (each card's details, risks and links, the timeline, the track record) is `view=full`, described in /api/v1/openapi.json.","summary":"Deadlines for a UK company","parameters":[{"name":"number","in":"path","schema":{"type":"string"},"required":true},{"name":"view","in":"query","schema":{"type":"string","enum":["summary"]},"required":true}]}},"/api/v1/companies/{number}/finances":{"get":{"tags":["companies"],"operationId":"companies.finances","security":[{},{"ApiKey":[]},{"OAuth2":["mcp"]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"company":{"type":"object","properties":{"number":{"type":"string"},"name":{"type":"string"}},"required":["number","name"],"additionalProperties":false},"years":{"type":"array","items":{"type":"object","properties":{"made_up_to":{"type":"string"},"filed_on":{"type":"string"},"source":{"type":"string","enum":["ixbrl","comparative","pdf-read","pdf"]},"description":{"type":"string"},"register_url":{"type":"string"},"figures":{"type":"object","properties":{"net_assets":{"anyOf":[{"type":"number"},{"type":"null"}]},"cash":{"anyOf":[{"type":"number"},{"type":"null"}]},"working_capital":{"anyOf":[{"type":"number"},{"type":"null"}]},"employees":{"anyOf":[{"type":"number"},{"type":"null"}]},"turnover":{"anyOf":[{"type":"number"},{"type":"null"}]},"profit":{"anyOf":[{"type":"number"},{"type":"null"}]},"fixed_assets":{"anyOf":[{"type":"number"},{"type":"null"}]},"current_assets":{"anyOf":[{"type":"number"},{"type":"null"}]},"owed_within_year":{"anyOf":[{"type":"number"},{"type":"null"}]},"owed_after_year":{"anyOf":[{"type":"number"},{"type":"null"}]},"bank_loans":{"anyOf":[{"type":"number"},{"type":"null"}]},"directors_loan":{"anyOf":[{"type":"number"},{"type":"null"}]},"tax_owed":{"anyOf":[{"type":"number"},{"type":"null"}]}},"required":["net_assets","cash","working_capital","employees","turnover","profit","fixed_assets","current_assets","owed_within_year","owed_after_year","bank_loans","directors_loan","tax_owed"],"additionalProperties":false},"reading":{"type":"boolean"},"scannable":{"type":"boolean"}},"required":["made_up_to","filed_on","source","description","register_url","figures","reading","scannable"],"additionalProperties":false}},"about":{"type":"object","properties":{"standard":{"anyOf":[{"type":"string"},{"type":"null"}]},"accounts_type":{"anyOf":[{"type":"string"},{"type":"null"}]},"audit":{"anyOf":[{"type":"string"},{"type":"null"}]},"signed_by":{"anyOf":[{"type":"string"},{"type":"null"}]},"approved_on":{"anyOf":[{"type":"string"},{"type":"null"}]},"accountant":{"anyOf":[{"type":"string"},{"type":"null"}]},"activity":{"anyOf":[{"type":"string"},{"type":"null"}]},"filed_via":{"anyOf":[{"type":"string","enum":["webfiling","hmrc_joint","software"]},{"type":"null"}]},"web_service":{"anyOf":[{"type":"string","enum":["webfiling","companies_house_online"]},{"type":"null"}]},"software":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["standard","accounts_type","audit","signed_by","approved_on","accountant","activity","filed_via","web_service","software"],"additionalProperties":false},"days_to_approval":{"anyOf":[{"type":"number"},{"type":"null"}]},"pl_filed":{"type":"boolean"},"charges":{"anyOf":[{"type":"object","properties":{"outstanding":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"lender":{"type":"string"},"created_on":{"anyOf":[{"type":"string"},{"type":"null"}]},"kind":{"type":"string"},"register_url":{"type":"string"}},"required":["id","lender","created_on","kind","register_url"],"additionalProperties":false}},"satisfied":{"type":"number"},"last_satisfied_on":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["outstanding","satisfied","last_satisfied_on"],"additionalProperties":false},{"type":"null"}]},"as_of":{"type":"string"}},"required":["company","years","about","days_to_approval","pl_filed","charges","as_of"],"additionalProperties":false}}}},"400":{"description":"InvalidCompanyNumber","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidCompanyNumberEncoded"}}}},"404":{"description":"CompanyNotFound","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CompanyNotFoundEncoded"}}}},"429":{"description":"RateLimited","content":{"application/json":{"schema":{"type":"object","properties":{"_tag":{"type":"string","enum":["RateLimited"]},"message":{"type":"string"},"reset_at":{"type":"number"},"retry_after":{"type":"number"}},"required":["_tag","message","reset_at","retry_after"],"additionalProperties":false}}},"headers":{"retry-after":{"schema":{"type":"string"},"required":true}}},"502":{"description":"Upstream","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpstreamEncoded"}}}}},"description":"Figures from the company's last 6 annual accounts on the register, as tagged in the filed iXBRL: net assets, cash, working capital, employees, and turnover and profit when filed. A year filed as PDF only takes the prior-year column of the next year's iXBRL accounts (source: comparative); else, after a POST to the scan endpoint, its scanned pages are read by OCR and Claude and a figure is kept only when the totals or the OCR digits confirm it (source: pdf-read). scannable is true for a year not read yet; reading is true while it is queued. Small and micro companies may omit the profit and loss account, so they are often null.","summary":"Filed figures for a UK company","parameters":[{"name":"number","in":"path","schema":{"type":"string"},"required":true}]}},"/api/v1/companies/{number}/tools":{"get":{"tags":["tools"],"operationId":"tools.company","security":[{},{"ApiKey":[]},{"OAuth2":["mcp"]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"company":{"type":"object","properties":{"number":{"type":"string"},"name":{"type":"string"}},"required":["number","name"],"additionalProperties":false},"software_2028":{"type":"object","properties":{"input":{"type":"string"},"company_number":{"anyOf":[{"type":"string"},{"type":"null"}]},"name":{"anyOf":[{"type":"string"},{"type":"null"}]},"made_up_to":{"anyOf":[{"type":"string"},{"type":"null"}]},"route":{"anyOf":[{"type":"string","enum":["paper","pdf","webfiling","hmrc_joint","software"]},{"type":"null"}]},"web_service":{"anyOf":[{"type":"string","enum":["webfiling","companies_house_online"]},{"type":"null"}]},"verdict":{"type":"string","enum":["must_move","ready","no_accounts","not_found","invalid","unknown","limit"]}},"required":["input","company_number","name","made_up_to","route","web_service","verdict"],"additionalProperties":false},"strike_off":{"type":"object","properties":{"company_number":{"type":"string"},"company_name":{"type":"string"},"verdict":{"type":"string","enum":["can_apply","not_yet","answer_questions","closed"]},"bars":{"type":"array","items":{"type":"object","properties":{"text":{"type":"string"},"source":{"type":"string"}},"required":["text","source"],"additionalProperties":false}},"warnings":{"type":"array","items":{"type":"object","properties":{"text":{"type":"string"},"source":{"type":"string"}},"required":["text","source"],"additionalProperties":false}},"todo":{"type":"array","items":{"type":"object","properties":{"text":{"type":"string"},"source":{"type":"string"}},"required":["text","source"],"additionalProperties":false}},"apply_url":{"type":"string"},"checked_on":{"type":"string"}},"required":["company_number","company_name","verdict","bars","warnings","todo","apply_url","checked_on"],"additionalProperties":false},"size":{"anyOf":[{"type":"object","properties":{"years":{"type":"array","items":{"type":"string"}},"result":{"type":"object","properties":{"size":{"anyOf":[{"type":"string","enum":["micro","small","medium","large"]},{"type":"null"}]},"excluded":{"type":"boolean"},"years":{"type":"array","items":{"type":"object","properties":{"label":{"type":"string"},"micro":{"type":"boolean"},"small":{"type":"boolean"},"medium":{"type":"boolean"}},"required":["label","micro","small","medium"],"additionalProperties":false}},"lines":{"type":"array","items":{"type":"object","properties":{"text":{"type":"string"},"source":{"type":"string"}},"required":["text","source"],"additionalProperties":false}},"audit":{"type":"object","properties":{"exempt":{"type":"string","enum":["yes","no","check"]},"text":{"type":"string"},"source":{"type":"string"}},"required":["exempt","text","source"],"additionalProperties":false}},"required":["size","excluded","years","lines","audit"],"additionalProperties":false}},"required":["years","result"],"additionalProperties":false},{"type":"null"}]},"penalty":{"anyOf":[{"type":"object","properties":{"due_on":{"type":"string"},"result":{"type":"object","properties":{"measured_to":{"type":"string"},"accounts":{"anyOf":[{"type":"object","properties":{"days_late":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"charges":{"type":"array","items":{"type":"object","properties":{"label":{"type":"string"},"pence":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"source":{"type":"string"}},"required":["label","pence","source"],"additionalProperties":false}},"next":{"anyOf":[{"type":"object","properties":{"on":{"type":"string"},"pence":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["on","pence"],"additionalProperties":false},{"type":"null"}]}},"required":["days_late","charges","next"],"additionalProperties":false},{"type":"null"}]},"ct":{"anyOf":[{"type":"object","properties":{"return_due_on":{"type":"string"},"payment_due_on":{"type":"string"},"days_late":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"charges":{"type":"array","items":{"type":"object","properties":{"label":{"type":"string"},"pence":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"source":{"type":"string"}},"required":["label","pence","source"],"additionalProperties":false}},"interest":{"anyOf":[{"type":"object","properties":{"days":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"periods":{"type":"array","items":{"type":"object","properties":{"from":{"type":"string"},"to":{"type":"string"},"rate":{"type":"string"},"days":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"pence":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["from","to","rate","days","pence"],"additionalProperties":false}}},"required":["days","periods"],"additionalProperties":false},{"type":"null"}]}},"required":["return_due_on","payment_due_on","days_late","charges","interest"],"additionalProperties":false},{"type":"null"}]},"total_pence":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"notes":{"type":"array","items":{"type":"string"}}},"required":["measured_to","accounts","ct","total_pence","notes"],"additionalProperties":false}},"required":["due_on","result"],"additionalProperties":false},{"type":"null"}]}},"required":["company","software_2028","strike_off","size","penalty"],"additionalProperties":false}}}},"400":{"description":"InvalidCompanyNumber","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidCompanyNumberEncoded"}}}},"404":{"description":"CompanyNotFound","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CompanyNotFoundEncoded"}}}},"429":{"description":"RateLimited","content":{"application/json":{"schema":{"type":"object","properties":{"_tag":{"type":"string","enum":["RateLimited"]},"message":{"type":"string"},"reset_at":{"type":"number"},"retry_after":{"type":"number"}},"required":["_tag","message","reset_at","retry_after"],"additionalProperties":false}}},"headers":{"retry-after":{"schema":{"type":"string"},"required":true}}},"502":{"description":"Upstream","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpstreamEncoded"}}}}},"description":"For one company: the 2028 filing route, the strike-off check (pass traded, insolvency and activity as yes or no), the size from its two newest filed accounts (null when they carry too few figures) and the accounts late filing penalty measured to today. One lookup on the hourly limit covers all of them.","summary":"Run every tool on one company","parameters":[{"name":"number","in":"path","schema":{"type":"string"},"required":true},{"name":"traded","in":"query","schema":{"type":"string","enum":["yes","no"]},"required":false},{"name":"insolvency","in":"query","schema":{"type":"string","enum":["yes","no"]},"required":false},{"name":"activity","in":"query","schema":{"type":"string","enum":["yes","no"]},"required":false}]}},"/api/v1/tools/deadlines":{"post":{"tags":["tools"],"operationId":"tools.deadlines","security":[{"OAuth2":["mcp"]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"kind":{"type":"string","enum":["ltd","llp","plc"]},"period_start_on":{"type":"string"},"period_end_on":{"type":"string"},"accounts_due_on":{"type":"string"},"accounts_rule":{"type":"object","properties":{"text":{"type":"string"},"source":{"type":"string"}},"required":["text","source"],"additionalProperties":false},"statement_made_up_to":{"type":"string"},"statement_due_on":{"type":"string"},"corporation_tax":{"anyOf":[{"type":"array","items":{"type":"object","properties":{"period_start_on":{"type":"string"},"period_end_on":{"type":"string"},"ct600_due_on":{"type":"string"},"payment_due_on":{"type":"string"},"estimate":{"type":"boolean","enum":[true]},"reason":{"type":"string"}},"required":["period_start_on","period_end_on","ct600_due_on","payment_due_on","estimate","reason"],"additionalProperties":false}},{"type":"null"}]}},"required":["kind","period_start_on","period_end_on","accounts_due_on","accounts_rule","statement_made_up_to","statement_due_on","corporation_tax"],"additionalProperties":false}}}},"400":{"description":"InvalidInput","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidInputEncoded"}}}}},"description":"From the incorporation date (and the first period end, if not the default; and the date an AA01 shortened it): the first accounts due date with its Companies Act rule, the first confirmation statement, and the CT600 and Corporation Tax payment dates (estimates; none for an LLP). No company number needed, nothing stored, no rate limit beyond the server's.","summary":"Work out a company's first deadlines","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"kind":{"type":"string","enum":["ltd","llp","plc"],"description":"Company type: ltd, llp or plc."},"incorporated_on":{"type":"string","description":"Incorporation date, YYYY-MM-DD."},"period_end_on":{"type":"string","description":"End of the first accounts period, YYYY-MM-DD. Left out: the last day of the anniversary month (Companies Act 2006 s391(4))."},"shortened_on":{"type":"string","description":"Date an AA01 that shortened the first period was filed, YYYY-MM-DD (s442(4))."}},"required":["kind","incorporated_on"],"additionalProperties":false}}},"required":true}}}},"components":{"schemas":{"UpstreamEncoded":{"type":"object","properties":{"_tag":{"type":"string","enum":["Upstream"]},"message":{"type":"string"},"retry_at":{"type":"string"},"retryable":{"type":"boolean"}},"required":["_tag","message"],"additionalProperties":false},"CompanyNotFoundEncoded":{"type":"object","properties":{"_tag":{"type":"string","enum":["CompanyNotFound"]},"company_number":{"type":"string"}},"required":["_tag","company_number"],"additionalProperties":false},"InvalidCompanyNumberEncoded":{"type":"object","properties":{"_tag":{"type":"string","enum":["InvalidCompanyNumber"]},"message":{"type":"string"}},"required":["_tag","message"],"additionalProperties":false},"InvalidInputEncoded":{"type":"object","properties":{"_tag":{"type":"string","enum":["InvalidInput"]},"message":{"type":"string"}},"required":["_tag","message"],"additionalProperties":false}},"securitySchemes":{"ApiKey":{"type":"apiKey","in":"header","name":"x-api-key","description":"A FileClerk API key: a personal key from the Console API keys page, or a free key by email (POST /api/v1/keys). The register reads work with no key at 60 lookups per hour; every other tool needs a key or an OAuth token. With an account: 1,000 lookups and 10,000 name searches per hour. The account operations need a personal key with Account access, turned on in the Console."},"Bearer":{"type":"http","scheme":"bearer","description":"An OAuth access token, a workspace key, a filing approval token or a receipt token, as the operation says."},"OAuth2":{"type":"oauth2","description":"OAuth 2.1 with PKCE, for an MCP client or an app that signs the person in. The token acts as that person in every workspace they belong to.","flows":{"authorizationCode":{"authorizationUrl":"https://fileclerk.co.uk/console/authorize","tokenUrl":"https://fileclerk.co.uk/api/v1/agent/token","refreshUrl":"https://fileclerk.co.uk/api/v1/agent/token","scopes":{"mcp":"Every tool, as the person who allowed the app."}}}}}}}