TaxCompass Plan API
The plan API from TaxCompass — 5 operation(s) for plan.
The plan API from TaxCompass — 5 operation(s) for plan.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/taxcompass-it:taxcompass-it-plan-api"
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: TaxCompass Plan API
version: 0.1.0
tags:
- name: Plan
paths:
/api/plan:
post:
tags:
- Plan
summary: Plan
operationId: plan_api_plan_post
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/PlanRequest'
required: true
responses:
'200':
description: Successful Response
content:
application/json:
schema:
$ref: '#/components/schemas/PlanResponse'
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
/api/plan/ateco:
post:
tags:
- Plan
summary: Plan Ateco
description: 'Suggest ATECO code(s) from the activity description — async enrich.
``_ateco_candidates`` already swallows model errors and returns ``[]``, so
this responds 200 with an empty list rather than erroring when the LLM is
down — the card then shows its fallback copy instead of breaking the plan.'
operationId: plan_ateco_api_plan_ateco_post
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/PlanRequest'
required: true
responses:
'200':
description: Successful Response
content:
application/json:
schema:
$ref: '#/components/schemas/AtecoResponse'
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
/api/ateco/suggest:
post:
tags:
- Plan
summary: Ateco Suggest
description: 'Suggest ATECO 2025 code(s) from a description of what someone does.
Same single retrieval-grounded call as ``/plan/ateco`` and the same failure
mode: ``_ateco_candidates`` swallows model errors and returns ``[]``, so a
slow or unavailable model costs the caller its suggestions and nothing else.
A wizard that cannot suggest a code still lets the person type one.
Anonymous, like ``/plan/ateco`` — it reads the public ATECO catalogue and
touches no account. The rate limit is the one every calculator shares.'
operationId: ateco_suggest_api_ateco_suggest_post
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/AtecoSuggestRequest'
required: true
responses:
'200':
description: Successful Response
content:
application/json:
schema:
$ref: '#/components/schemas/AtecoResponse'
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
/api/plan/clarify:
post:
tags:
- Plan
summary: Plan Clarify
description: Surface the highest-value clarifying questions for this profile — async.
operationId: plan_clarify_api_plan_clarify_post
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/PlanRequest'
required: true
responses:
'200':
description: Successful Response
content:
application/json:
schema:
$ref: '#/components/schemas/ClarifyResponse'
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
/api/plan/pdf:
post:
tags:
- Plan
summary: Plan Pdf
description: Render the deterministic Setup Plan as a downloadable PDF (no LLM).
operationId: plan_pdf_api_plan_pdf_post
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/PlanRequest'
required: true
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
components:
schemas:
Breakdown:
properties:
country:
type: string
title: Country
regime:
type: string
title: Regime
revenue_local:
type: number
title: Revenue Local
revenue_eur:
type: number
title: Revenue Eur
currency:
type: string
enum:
- EUR
- PLN
- RON
title: Currency
social_contributions:
type: number
title: Social Contributions
default: 0.0
health_contribution:
type: number
title: Health Contribution
default: 0.0
income_tax:
type: number
title: Income Tax
default: 0.0
substitute_tax:
type: number
title: Substitute Tax
default: 0.0
other_deductions:
type: number
title: Other Deductions
default: 0.0
net_local:
type: number
title: Net Local
default: 0.0
net_eur:
type: number
title: Net Eur
default: 0.0
effective_rate:
anyOf:
- type: number
- type: 'null'
title: Effective Rate
eligible:
type: boolean
title: Eligible
default: true
contributions_are_stand_in:
type: boolean
title: Contributions Are Stand In
default: false
assumptions:
items:
type: string
type: array
title: Assumptions
default: []
notes:
items:
type: string
type: array
title: Notes
default: []
type: object
required:
- country
- regime
- revenue_local
- revenue_eur
- currency
title: Breakdown
PlanRequest:
properties:
locale:
type: string
enum:
- en
- pl
- it
- de
- fr
- es
title: Locale
default: en
current_residency:
type: string
maxLength: 120
minLength: 1
title: Current Residency
target_setup:
type: string
enum:
- moving_to_italy
- staying_abroad
- already_in_italy
title: Target Setup
expected_annual_revenue_eur:
type: number
maximum: 100000000.0
minimum: 0.0
title: Expected Annual Revenue Eur
activity_description:
type: string
maxLength: 2000
minLength: 1
title: Activity Description
impatriate_eligibility:
type: boolean
title: Impatriate Eligibility
regulated_profession:
anyOf:
- type: boolean
- type: 'null'
title: Regulated Profession
expected_annual_costs_eur:
anyOf:
- type: number
maximum: 100000000.0
minimum: 0.0
- type: 'null'
title: Expected Annual Costs Eur
business_type:
anyOf:
- type: string
enum:
- professionista
- artigiano
- commerciante
- type: 'null'
title: Business Type
passport_country:
anyOf:
- type: string
maxLength: 120
- type: 'null'
title: Passport Country
permit_status:
anyOf:
- type: string
enum:
- eu_no_permit_needed
- has_self_employment
- has_other_permit
- needs_permit
- unsure
- type: 'null'
title: Permit Status
ateco_chosen:
anyOf:
- type: string
maxLength: 12
- type: 'null'
title: Ateco Chosen
single_client_is_employer:
anyOf:
- type: boolean
- type: 'null'
title: Single Client Is Employer
existing_business:
anyOf:
- type: string
maxLength: 2000
- type: 'null'
title: Existing Business
client_situation:
anyOf:
- type: string
maxLength: 2000
- type: 'null'
title: Client Situation
family_situation:
anyOf:
- type: string
maxLength: 2000
- type: 'null'
title: Family Situation
pension_situation:
anyOf:
- type: string
maxLength: 2000
- type: 'null'
title: Pension Situation
prior_employment_income_eur:
anyOf:
- type: number
maximum: 100000000.0
minimum: 0.0
- type: 'null'
title: Prior Employment Income Eur
social_security_coverage:
anyOf:
- type: string
enum:
- none
- eu_a1
- non_eu_totalization
- unsure
- type: 'null'
title: Social Security Coverage
days_in_italy_this_year:
anyOf:
- type: integer
maximum: 366.0
minimum: 0.0
- type: 'null'
title: Days In Italy This Year
urgency:
anyOf:
- type: string
maxLength: 120
- type: 'null'
title: Urgency
type: object
required:
- current_residency
- target_setup
- expected_annual_revenue_eur
- activity_description
- impatriate_eligibility
title: PlanRequest
description: 'Structured intake answers → one-shot Setup Plan.
Five of the Italy pack''s six ``critical`` slots are required here; the rest
are optional but improve the cross-border risk flags + accountant match.
``regulated_profession`` is the exception — it is **derived** from the
activity, not asked (see the field comment), so the intake never poses a
question a foreign founder can''t answer.'
AtecoCandidate:
properties:
code:
type: string
title: Code
title:
type: string
title: Title
title_en:
anyOf:
- type: string
- type: 'null'
title: Title En
rationale:
type: string
title: Rationale
coefficiente:
anyOf:
- type: integer
- type: 'null'
title: Coefficiente
chunk_id:
anyOf:
- type: string
- type: 'null'
title: Chunk Id
url:
anyOf:
- type: string
- type: 'null'
title: Url
type: object
required:
- code
- title
- rationale
title: AtecoCandidate
CitedSentence:
properties:
text:
type: string
title: Text
chunk_ids:
items:
type: string
type: array
title: Chunk Ids
type: object
required:
- text
title: CitedSentence
description: 'One sentence of the final answer with its validated chunk IDs.
`chunk_ids` is the verifier-validated subset of the markers that appeared
in the synthesiser''s raw output for this sentence. Empty for disclaimers
and non-factual connectives.'
CompanyRequestDraft:
properties:
id:
type: string
title: Id
summary_md:
type: string
title: Summary Md
sentences:
items:
$ref: '#/components/schemas/CitedSentence'
type: array
title: Sentences
ateco_candidates:
items:
$ref: '#/components/schemas/AtecoCandidate'
type: array
title: Ateco Candidates
recommended_regime:
anyOf:
- type: string
enum:
- forfettario
- ordinario_with_impatriate
- ordinario
- semplificato
- type: 'null'
title: Recommended Regime
recommended_social_scheme:
anyOf:
- type: string
enum:
- inps_gestione_separata
- inps_artigiani_commercianti
- cassa_professionale
- type: 'null'
title: Recommended Social Scheme
cassa_name:
anyOf:
- type: string
- type: 'null'
title: Cassa Name
business_type:
type: string
enum:
- professionista
- artigiano
- commerciante
title: Business Type
default: professionista
business_type_basis:
type: string
enum:
- stated
- ateco
- default
title: Business Type Basis
default: default
business_type_ateco:
anyOf:
- type: string
- type: 'null'
title: Business Type Ateco
business_type_law_url:
anyOf:
- type: string
- type: 'null'
title: Business Type Law Url
impatriate_eligible:
anyOf:
- type: boolean
- type: 'null'
title: Impatriate Eligible
forfettario_vs_impatriate_comparison:
anyOf:
- additionalProperties: true
type: object
- type: 'null'
title: Forfettario Vs Impatriate Comparison
matched_accountant:
anyOf:
- $ref: '#/components/schemas/AccountantMatch'
- type: 'null'
risk_flags:
items:
type: string
type: array
title: Risk Flags
type: object
required:
- id
- summary_md
title: CompanyRequestDraft
description: 'Output of the summarise node — what the user previews and signs off on.
Fields use Italian-pack literals for v1; a v2 country-pack expansion will
widen the unions or move them onto the pack itself (see plan).'
AtecoResponse:
properties:
ateco_candidates:
items:
$ref: '#/components/schemas/AtecoCandidate'
type: array
title: Ateco Candidates
type: object
title: AtecoResponse
description: AI-suggested ATECO 2025 candidates for the Setup Plan.
HTTPValidationError:
properties:
detail:
items:
$ref: '#/components/schemas/ValidationError'
type: array
title: Detail
type: object
title: HTTPValidationError
AccountantMatch:
properties:
accountant_id:
type: string
title: Accountant Id
name:
type: string
title: Name
firm:
anyOf:
- type: string
- type: 'null'
title: Firm
matched_specialties:
items:
type: string
type: array
title: Matched Specialties
matched_languages:
items:
type: string
type: array
title: Matched Languages
city:
anyOf:
- type: string
- type: 'null'
title: City
rationale:
type: string
title: Rationale
default: ''
type: object
required:
- accountant_id
- name
title: AccountantMatch
ClarifyResponse:
properties:
clarifications:
items:
$ref: '#/components/schemas/ClarificationItem'
type: array
title: Clarifications
type: object
title: ClarifyResponse
description: Ranked, person-specific questions that would sharpen the Setup Plan.
InterviewSlot:
properties:
key:
type: string
title: Key
value:
anyOf:
- {}
- type: 'null'
title: Value
confidence:
type: string
enum:
- empty
- guessed
- confirmed
title: Confidence
default: empty
asked_count:
type: integer
title: Asked Count
default: 0
critical:
type: boolean
title: Critical
default: false
label:
type: string
title: Label
default: ''
type: object
required:
- key
title: InterviewSlot
description: 'One field gathered during the structured onboarding interview.
Slots are designed in country packs (see ``app.chatbot.countries``) — each
pack declares which slots exist, which are critical (gate to summarise),
and how to extract them. The graph''s interview node is country-agnostic.'
ClarificationItem:
properties:
id:
type: string
title: Id
description: Stable kebab-case key; used for dedup + UI keys.
question:
type: string
title: Question
description: The question to ask the user, plain language.
why_it_matters:
type: string
title: Why It Matters
description: 'One line: what the answer changes (regime / risk / document).'
target_slot:
anyOf:
- type: string
- type: 'null'
title: Target Slot
severity:
type: string
enum:
- blocking
- sharpening
title: Severity
default: sharpening
kind:
type: string
enum:
- edit
- discuss
title: Kind
default: discuss
type: object
required:
- id
- question
- why_it_matters
title: ClarificationItem
description: One sharp, person-specific question that would tighten the plan.
ChunkManifestEntry:
properties:
chunk_id:
type: string
title: Chunk Id
source:
type: string
title: Source
title:
anyOf:
- type: string
- type: 'null'
title: Title
url:
anyOf:
- type: string
- type: 'null'
title: Url
similarity:
anyOf:
- type: number
- type: 'null'
title: Similarity
text:
anyOf:
- type: string
- type: 'null'
title: Text
highlights:
items:
type: string
type: array
title: Highlights
type: object
required:
- chunk_id
- source
title: ChunkManifestEntry
InterviewProfile:
properties:
slots:
additionalProperties:
$ref: '#/components/schemas/InterviewSlot'
type: object
title: Slots
intent:
type: string
enum:
- unknown
- create_company
- qa_only
- both
title: Intent
default: unknown
ready_to_summarise:
type: boolean
title: Ready To Summarise
default: false
country:
type: string
const: IT
title: Country
default: IT
type: object
title: InterviewProfile
description: 'All onboarding-interview state for a single conversation.
The router/interview/summarise nodes mutate this; QA-mode turns pass it
through unchanged so slot chips never disappear if the user takes a
detour to ask a freeform question.'
PlanResponse:
properties:
draft:
anyOf:
- $ref: '#/components/schemas/CompanyRequestDraft'
- type: 'null'
text:
type: string
title: Text
default: ''
markdown:
type: string
title: Markdown
default: ''
sentences:
items:
$ref: '#/components/schemas/CitedSentence'
type: array
title: Sentences
chunks:
items:
$ref: '#/components/schemas/ChunkManifestEntry'
type: array
title: Chunks
profile:
anyOf:
- $ref: '#/components/schemas/InterviewProfile'
- type: 'null'
breakdowns:
items:
$ref: '#/components/schemas/Breakdown'
type: array
title: Breakdowns
type: object
title: PlanResponse
description: 'One-shot Setup Plan: the draft + brief + deterministic number cards.'
AtecoSuggestRequest:
properties:
activity_description:
type: string
maxLength: 2000
minLength: 1
title: Activity Description
locale:
type: string
enum:
- en
- pl
- it
- de
- fr
- es
title: Locale
default: en
type: object
required:
- activity_description
title: AtecoSuggestRequest
description: 'Just the activity, for callers that are not the Setup Plan.
``/plan/ateco`` takes a whole ``PlanRequest`` because the Setup Plan already
has one in hand. The autopilot''s onboarding wizard does not: it knows the
person''s trade and nothing about residency, target setup or expected
revenue, and inventing those five required fields to reach the one the
endpoint actually reads would put fabricated intake answers into PostHog.
So the same helper gets a second door with the honest body.'
ValidationError:
properties:
loc:
items:
anyOf:
- type: string
- type: integer
type: array
title: Location
msg:
type: string
title: Message
type:
type: string
title: Error Type
input:
title: Input
ctx:
type: object
title: Context
type: object
required:
- loc
- msg
- type
title: ValidationError
securitySchemes:
HTTPBearer:
type: http
scheme: bearer