TaxCompass Chat API
The chat API from TaxCompass — 2 operation(s) for chat.
The chat API from TaxCompass — 2 operation(s) for chat.
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-chat-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 Chat API
version: 0.1.0
tags:
- name: Chat
paths:
/api/chat:
post:
tags:
- Chat
summary: Chat
operationId: chat_api_chat_post
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/ChatRequest'
required: true
responses:
'200':
description: Successful Response
content:
application/json:
schema:
$ref: '#/components/schemas/ChatResponse'
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
security:
- HTTPBearer: []
/api/chat/stream:
post:
tags:
- Chat
summary: Chat Stream
description: SSE endpoint for streaming phase events during chat.
operationId: chat_stream_api_chat_stream_post
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/ChatRequest'
required: true
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
security:
- HTTPBearer: []
components:
schemas:
ChatRequest:
properties:
messages:
items:
$ref: '#/components/schemas/ChatMessage'
type: array
maxItems: 60
minItems: 1
title: Messages
locale:
type: string
enum:
- en
- pl
- it
- de
- fr
- es
title: Locale
default: en
audience:
type: string
enum:
- standard
- commercialista
title: Audience
default: standard
plan_inputs:
anyOf:
- additionalProperties: true
type: object
- type: 'null'
title: Plan Inputs
open_clarifications:
anyOf:
- items:
additionalProperties: true
type: object
type: array
- type: 'null'
title: Open Clarifications
conversation_id:
anyOf:
- type: string
- type: 'null'
title: Conversation Id
autopilot_context:
type: boolean
title: Autopilot Context
default: false
autopilot_view:
anyOf:
- type: string
enum:
- dashboard
- invoices
- clients
- incassi
- bank
- f24
- redditi
- assistant
- onboarding
- settings
- subscription
- today
- plan
- openPartitaIva
- connections
- type: 'null'
title: Autopilot View
autopilot_demo:
type: boolean
title: Autopilot Demo
default: false
type: object
required:
- messages
title: ChatRequest
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.'
ChatMessage:
properties:
role:
type: string
enum:
- user
- assistant
title: Role
content:
type: string
maxLength: 10000
minLength: 1
title: Content
type: object
required:
- role
- content
title: ChatMessage
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
ChatResponse:
properties:
text:
type: string
title: Text
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
plan:
anyOf:
- additionalProperties: true
type: object
- type: 'null'
title: Plan
plan_inputs:
anyOf:
- additionalProperties: true
type: object
- type: 'null'
title: Plan Inputs
plan_diff:
anyOf:
- additionalProperties: true
type: object
- type: 'null'
title: Plan Diff
resolved_clarifications:
items:
type: string
type: array
title: Resolved Clarifications
draft_actions:
items:
$ref: '#/components/schemas/DraftAction'
type: array
title: Draft Actions
type: object
required:
- text
title: ChatResponse
description: Final, verifier-validated answer returned by /api/chat.
DraftAction:
properties:
kind:
type: string
enum:
- create_client
- update_client
- draft_invoice
- record_incasso
- mark_f24_paid
- confirm_bank_transaction
- ignore_bank_transaction
title: Kind
payload:
additionalProperties: true
type: object
title: Payload
missing_fields:
items:
type: string
type: array
title: Missing Fields
summary:
type: string
maxLength: 280
title: Summary
default: ''
id:
anyOf:
- type: string
maxLength: 64
- type: 'null'
title: Id
additionalProperties: false
type: object
required:
- kind
title: DraftAction
description: 'One proposed write, as the chat response carries it alongside the prose.
Data, not a command: holding one performs nothing. ``missing_fields`` is what
the prose asks about conversationally, and an empty one means the payload
already parses as the endpoint''s write body.'
HTTPValidationError:
properties:
detail:
items:
$ref: '#/components/schemas/ValidationError'
type: array
title: Detail
type: object
title: HTTPValidationError
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