{"openapi":"3.1.0","info":{"title":"Act 60 Business API","version":"1","description":"Read-only Act 60 tools for Puerto Rico: the Regime Calculator, and answers taken verbatim from question pages a person verified, each with citations, a regime tag and a verified-on date. Informational, not legal or tax advice. Every response carries a signature line and a trace line in _meta."},"servers":[{"url":"https://api.act60.business"}],"x-meta":{"signature":"Act 60 Business by Rabbithole Labs · verified 2026-12-01 · act60.business","trace":"sources: none · verified 2026-12-01 · steps: status read","schema_version":"1"},"components":{"schemas":{"EstimateResponse":{"type":"object","properties":{"regime":{"type":"string","enum":["pre2027","post2027"]},"years":{"type":"array","items":{"$ref":"#/components/schemas/RegimeYear"}},"totals":{"type":"object","properties":{"pr_tax":{"type":"number"},"fixed_costs":{"type":"number"},"total":{"type":"number"},"modeled_years":{"type":"integer"},"baseline_tax":{"type":"number"},"savings_vs_baseline":{"type":"number"}},"required":["pr_tax","fixed_costs","total","modeled_years"]},"capital_required":{"$ref":"#/components/schemas/Line"},"comparison":{"type":"object","properties":{"other_regime":{"type":"string","enum":["pre2027","post2027"]},"years_compared":{"type":"integer"},"this_total":{"type":"number"},"other_total":{"type":"number"},"difference":{"type":"number"}},"required":["other_regime","years_compared","this_total","other_total","difference"]},"assumptions":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string"},"rule_ref":{"type":"string"}},"required":["key"]}},"rule_refs":{"type":"array","items":{"type":"string"}},"flags":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string"},"rule_ref":{"type":"string"}},"required":["key","rule_ref"]}},"citations":{"type":"array","items":{"$ref":"#/components/schemas/Citation"},"description":"The official text behind every rule_ref."},"labels":{"type":"object","additionalProperties":{"type":"string"},"description":"Text for every key in this result, in the response language: \"line.<key>\", \"assumption.<key>\", \"flag.<key>\", \"note.<key>\"."},"disclaimer":{"type":"string","description":"One line in the response language: scenarios with stated assumptions, not legal or tax advice, and who applies the rules to a specific case. Show it with every estimate."},"_meta":{"$ref":"#/components/schemas/Meta"}},"required":["regime","years","totals","comparison","assumptions","rule_refs","flags","citations","labels","disclaimer","_meta"]},"RegimeYear":{"type":"object","properties":{"year":{"type":"integer"},"modeled":{"type":"boolean"},"lines":{"type":"array","items":{"$ref":"#/components/schemas/Line"}},"pr_tax":{"type":"number"},"fixed_costs":{"type":"number"},"total":{"type":"number"},"note":{"type":"string","description":"Note key for a year that is not modeled; text in labels[\"note.<key>\"]."}},"required":["year","modeled","lines","pr_tax","fixed_costs","total"]},"Line":{"type":"object","properties":{"key":{"type":"string","description":"Line key; its text is in labels[\"line.<key>\"]."},"year":{"type":"integer"},"amount":{"type":"number","description":"Whole US dollars."},"rate_pct":{"type":"number"},"rule_ref":{"type":"string","description":"Id of the rule this number comes from (see citations)."},"assumption":{"type":"string","description":"Assumption key; its text is in labels[\"assumption.<key>\"]."},"modeled":{"type":"boolean","description":"False when the calculator does not compute this item; excluded from totals."}},"required":["key","amount","rule_ref","assumption","modeled"]},"Citation":{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"},"publisher":{"type":"string"},"url":{"type":"string","description":"Link to the official text."},"primary":{"type":"boolean","description":"True for an official primary source."},"quote":{"type":"string","description":"Verbatim text from the source, in its original language."},"accessed_on":{"type":"string","description":"Date the source was read (YYYY-MM-DD)."}},"required":["id","title","publisher","url","primary","accessed_on"]},"Meta":{"type":"object","properties":{"signature":{"type":"string","description":"One line: \"<name> by Rabbithole Labs · verified <date> · <source>\". Show it with every answer."},"trace":{"type":"string","description":"One line: sources used, verified-on date and the steps that produced this."},"schema_version":{"type":"string","enum":["1"]}},"required":["signature","trace","schema_version"]},"Error":{"type":"object","properties":{"code":{"type":"string","enum":["invalid_input","rate_limited","turnstile_failed","no_citation","not_found","unauthorized","unavailable","internal","invalid_key"]},"message":{"type":"string"},"fix":{"type":"string","description":"What to change before trying again."},"issues":{"type":"array","items":{"$ref":"#/components/schemas/Issue"},"description":"Invalid fields (invalid_input only)."},"_meta":{"$ref":"#/components/schemas/Meta"}},"required":["code","message","fix","_meta"]},"Issue":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"]},"RegimeInput":{"type":"object","properties":{"filing":{"type":"string","enum":["by_2026_12_31","from_2027_01_01"],"description":"When the decree application is filed: by_2026_12_31 (on or before December 31, 2026) or from_2027_01_01 (on or after January 1, 2027). The filing date selects the regime."},"residency_start_year":{"type":"integer","minimum":1900,"maximum":2200,"description":"First tax year as a bona fide Puerto Rico resident; the estimate treats it as decree year 1."},"horizon_years":{"type":"integer","minimum":1,"maximum":30,"description":"Tax years to estimate, 1 to 30, starting with residency_start_year."},"income":{"type":"object","properties":{"interest":{"type":"number","minimum":0,"maximum":1000000000000,"description":"Interest income per year, in US dollars."},"dividends":{"type":"number","minimum":0,"maximum":1000000000000,"description":"Dividend income per year, in US dollars."},"post_residency_gains":{"type":"number","minimum":0,"maximum":1000000000000,"description":"Capital gains per year that accrue after becoming a resident, in US dollars."}},"required":["interest","dividends","post_residency_gains"],"description":"Annual amounts; the same amounts repeat every year of the estimate."},"pre_residency_gain":{"type":["object","null"],"properties":{"amount":{"type":"number","minimum":0,"maximum":1000000000000,"description":"The gain, in US dollars."},"recognized_year":{"type":"integer","minimum":1900,"maximum":2200,"description":"Tax year the gain is recognized."}},"required":["amount","recognized_year"],"description":"Optional: one long-term gain on assets held before becoming a resident, recognized in one tax year."},"costs":{"type":"object","properties":{"professional_fees_annual":{"type":"number","minimum":0,"maximum":1000000000000,"description":"Professional fees per year, in US dollars (an estimate; no official text sets it)."},"compliance_report_annual":{"type":"number","minimum":0,"maximum":1000000000000,"description":"Compliance report (CPA) cost per year, in US dollars (an estimate)."}},"required":["professional_fees_annual","compliance_report_annual"],"description":"Annual costs entered as estimates."},"residence_price":{"type":["number","null"],"minimum":0,"maximum":1000000000000,"description":"Optional: principal residence purchase price, in US dollars. Shown as capital required, never counted as a cost."},"current_tax_rate_pct":{"type":["number","null"],"minimum":0,"maximum":100,"description":"Optional: a current tax rate in percent (0 to 100) for a baseline on the same income."},"planned_days_in_pr":{"type":["integer","null"],"minimum":0,"maximum":366,"description":"Optional: planned days in Puerto Rico per tax year (0 to 366)."},"locale":{"type":["string","null"],"enum":["en","es",null],"description":"Optional: en or es, the language of labels and the signature."}},"required":["filing","residency_start_year","horizon_years","income","costs"]},"CanonAnswer":{"type":"object","properties":{"answer":{"type":"string","description":"The verified page’s two-sentence answer, verbatim."},"details":{"type":"string","description":"The verified page’s full answer in markdown, verbatim; [n] marks the source citations[n - 1]. Answer from it; never add facts it does not state."},"question":{"type":"string","description":"The question the matched page answers, in its own words. When it asks something different from the user’s question, the page does not answer the user’s question."},"citations":{"type":"array","items":{"$ref":"#/components/schemas/Citation"}},"regime":{"type":"string","enum":["pre2027","post2027","both"],"description":"pre2027: applications filed on or before December 31, 2026; post2027: filed from January 1, 2027; both."},"segment":{"type":"string","enum":["individual","chapter3","all"]},"verified_on":{"type":"string","description":"Date a person verified the page (YYYY-MM-DD); pages verified more than 90 days ago are not served."},"page_url":{"type":"string","description":"The page with the full answer and its sources."},"locale":{"type":"string","enum":["en","es"],"description":"Language of answer and question; the other language only when the page has no fresh version in the requested one."},"disclaimer":{"type":"string","description":"One line in the requested language: informational, not legal or tax advice, and who applies the rules to a specific case. Show it with every answer."},"canon_version":{"type":"string","description":"Version of the verified answer set this answer comes from (changes whenever a verified page changes)."},"route":{"type":"string","enum":["find_pro"],"description":"Present when the question asks what to do (for example \"should I\"): the answer states the rule only; applying it to a case is for a professional (Professional Directory and Matcher)."},"_meta":{"$ref":"#/components/schemas/Meta"}},"required":["answer","details","question","citations","regime","segment","verified_on","page_url","locale","disclaimer","canon_version","_meta"]},"CanonRefusal":{"allOf":[{"$ref":"#/components/schemas/Error"},{"type":"object","properties":{"code":{"type":"string","enum":["no_citation"]}}}],"description":"No page verified within the last 90 days answers the question, so there is no answer: show message and fix instead of an answer."},"CanonAskBody":{"type":"object","properties":{"question":{"type":"string","minLength":3,"maxLength":500,"description":"The question, in English or Spanish (3 to 500 characters)."},"locale":{"type":["string","null"],"enum":["en","es",null],"description":"Optional: en or es. Default: the language of the question."}},"required":["question"]},"Health":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]},"schema_version":{"type":"string","enum":["1"]},"pages_published":{"type":"integer","description":"Published question pages in the answer corpus, counting each language version; /v1/canon/ask serves those verified within the last 90 days."},"_meta":{"$ref":"#/components/schemas/Meta"}},"required":["ok","schema_version","pages_published","_meta"]}},"parameters":{}},"paths":{"/v1/estimate":{"post":{"operationId":"estimateActSixtyCosts","summary":"What would Act 60 cost each year in Puerto Rico tax and fixed fees?","description":"How much Puerto Rico tax and fixed costs (annual report fee, donation, professional and CPA fees entered) does an Act 60 resident investor pay each year under the regime the filing date selects, and how does it compare with the other regime?","x-openai-isConsequential":false,"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RegimeInput"}}}},"responses":{"200":{"description":"Every line with its amount, rule and assumption; totals; the comparison; the disclaimer line.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EstimateResponse"}}}},"400":{"description":"invalid_input: the issues list names each field to fix.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"rate_limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"internal","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/canon/ask":{"post":{"operationId":"askActSixtyQuestion","summary":"What does a verified Act 60 page say about this question?","description":"What do the verified Act 60 question pages say about this question, quoting one page’s two-sentence answer with its citations, regime tag, verified-on date and URL, or answering code no_citation when no verified page covers it?","x-openai-isConsequential":false,"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CanonAskBody"}}}},"responses":{"200":{"description":"The verified answer, or the no_citation refusal (no page verified within the last 90 days answers the question).","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/CanonAnswer"},{"$ref":"#/components/schemas/CanonRefusal"}]}}}},"400":{"description":"invalid_input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"rate_limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"internal","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/health":{"get":{"operationId":"getHealth","summary":"Is the Act 60 API up, and how many verified pages does it answer from?","description":"Is the API running, and how many published question pages (each language counted) does askActSixtyQuestion answer from?","x-openai-isConsequential":false,"responses":{"200":{"description":"The API is up.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Health"}}}}}}}},"webhooks":{}}