Developers
Quick start
Tax tools for your application or agent.
- Free tools: USD 0
- Free tools need no API key or wallet
- REST + MCP
Get employment tax estimates, country filing timelines and submission steps at www.tassi.ai. Professional review and return submission are not included.
API referenceMake your first request
Check available services, then check your full country selection before sending tax facts.
1. Check services
curl --fail-with-body 'https://www.tassi.ai/api/v1/capabilities'2. Check coverage
curl --fail-with-body 'https://www.tassi.ai/api/v1/coverage/check' \
-H 'Content-Type: application/json' \
--data '{
"countryCodes": [
"TW"
],
"taxYear": 2026,
"capability": "estimate_tax_position"
}'Browse free official-source country guides
This fixed example sends only countries, year and service. No personal data or interest registration.
Live response
Get a report for 1 USDC
Use x402 over REST for supported employment tax cases in Singapore and Taiwan. Each report includes estimated tax, filing dates and submission steps. A Tassi account is optional.
POST /api/v1/reports
-
Check the tax details and get a quote
With the user's consent, send only the required calculation facts. Generate one UUID v4 for requestId and encode 32 random bytes as base64 for retrievalKey. Save both privately before paying. HTTP 402 returns a quote in Payment-Required. HTTP 422 can return questions to resolve without paying.
For missing details, each question gives the field path and a prompt in the requested report language. Ask the user for that fact before retrying.
If a source check blocks the quote,
blockingSourcesidentifies the official sources to review. ChecksourceStatusPathfor updates before requesting a new quote.If a case needs review, show the countries and next steps from
review.countriesandreview.actionsbefore asking for another quote. -
Approve and pay the exact quote
Check Arc (eip155:5042), 1 USDC and the asset and recipient in Tassi’s published payment requirements. Get spending approval before signing. Preserve extensions.payment-identifier.info.id exactly as returned. Send Payment-Signature with requestId and retrievalKey. An automatic retry can reuse the identical quote body. The facilitator must accept the wallet's authorization before settlement.
-
Open the same report after payment
HTTP 200 returns the report and receipt after settlement is verified. If the outcome is unclear, use ordinary fetch with only the same requestId and retrievalKey. Leave out Payment-Signature.
On HTTP 202, wait the seconds in Retry-After before checking again. Set a time limit for these checks. If time runs out or you receive 409 payment_not_recorded, keep the same access file so you can check later.
Report access lasts seven days. A later unsigned check can still return the confirmed transaction hash after the report expires or is deleted.
Try an unsigned quote with synthetic facts
Run this as a Node.js module. It saves a private access file and prints the HTTP status. It does not sign or spend.
Node.js quote request
import { randomBytes, randomUUID } from "node:crypto";
import { writeFile } from "node:fs/promises";
const access = {
schema: "tassi.report-access.v1",
requestId: randomUUID(),
retrievalKey: randomBytes(32).toString("base64"),
};
await writeFile("tassi-report-access.json", JSON.stringify(access), {
flag: "wx", mode: 0o600,
});
const { requestId, retrievalKey } = access;
const response = await fetch("https://www.tassi.ai/api/v1/reports", {
method: "POST",
credentials: "omit",
redirect: "error",
signal: AbortSignal.timeout(20000),
headers: { "Content-Type": "application/json" },
body: JSON.stringify({
requestId, retrievalKey, language: "en",
consent: "tassi.direct-report.v1",
taxDetails: {
"taxYear": 2026,
"countries": [
"Taiwan"
],
"facts": {
"taiwanDays": 250,
"taiwanAlien": true,
"taiwanSingleUnder70": true,
"taiwanEarlyDeparture": false
},
"income": [
{
"category": "Salary",
"currency": "TWD",
"gross": 1000000,
"workCountry": "Taiwan",
"employerCountry": "Taiwan"
}
]
},
}),
});
console.log("HTTP", response.status);
await response.body?.cancel();Use the Node.js report client
Download the module beside your integration. It needs Node.js 24 and viem. Importing it makes no network request.
npm install viem@2.57.6
Supply the same private request ID and retrieval key, the tax facts the user approved, and the recipient you trust. Use your wallet's address and signTypedData method. Your approveSpend callback must confirm this exact 1 USDC purchase.
Quote, pay and retrieve
import { createDirectReportClient } from "./tassi-direct-report.mjs";
import { writeFile } from "node:fs/promises";
const order = createDirectReportClient({
requestId, retrievalKey, taxDetails, expectedRecipient,
});
await writeFile("tassi-report-access.json", order.accessFile(), { flag: "wx", mode: 0o600 });
const quote = await order.quote();
let outcome = quote;
if (quote.state === "approval_required") {
outcome = await order.pay({ signer, approveSpend });
if (["payment_pending", "payment_outcome_unknown"].includes(outcome.state)) {
outcome = await order.waitForReport();
}
}
// Use outcome in your app. Keep the report, access key and receipt private.If your agent restarts after an interrupted signed payment, reuse the saved request ID and key with waitForReport({ afterInterruptedPayment: true }). It checks the same order without signing.
A single retrieve() check can return payment_pending or payment_outcome_unknown if a status check fails temporarily. Keep the same order and honor retryAfterSeconds if provided.
Check an existing purchase
Confirm the successful 1 USDC transfer from your wallet to Tassi’s receiving address. Copy its transaction hash and use your original report access file. Open Arc explorer
node tassi-direct-report.mjs verify-delivery tassi-report-access.json EXPECTED_TRANSACTION_HASH
The command checks your hash against Tassi’s receipt and compares two retrieved copies of the report and receipt. Use your saved copy to compare with the original. The command only reads your existing order.
repeat_unconfirmed means the first receipt matched and the second check could not be completed. Rerun with the same file and hash. If retryAfterSeconds is shown, wait that long first.
invalid_transaction_hash means the hash format is invalid. Correct it to 0x followed by 64 hexadecimal characters before retrying. Share only the status output.
Connect to a saved tax year
Approved accounts only.
- Use a pre-registered OAuth client and its exact registered callback. Start the authorization code flow with S256 PKCE, the openid scope and the saved-workspace MCP URL as the resource.
- The account owner approves the connection in their browser. In My account, open Connected agents to grant or revoke separate tax permission for one saved year.
- Send the bearer token to private MCP and use the approved permission file for the tax task. Keep both private. Sign-in codes, vault passwords and original documents stay with the account owner.
https://www.tassi.ai/mcp/private
Connect your agent
Use the free connector in ChatGPT or Claude
Use an MCP client with the Streamable HTTP transport. No Tassi OAuth, API key or payment is needed for these free tools.
MCP server URL
https://www.tassi.ai/mcpNode.js SDK example
Install the official SDK
npm install @modelcontextprotocol/sdkJavaScript module
import { Client } from "@modelcontextprotocol/sdk/client/index.js";
import { StreamableHTTPClientTransport } from
"@modelcontextprotocol/sdk/client/streamableHttp.js";
const client = new Client({ name: "tassi-example", version: "1.0" });
try {
await client.connect(new StreamableHTTPClientTransport(
new URL("https://www.tassi.ai/mcp")
), { timeout: 10000 });
const available = await client.callTool({
name: "get_capabilities", arguments: {}
}, undefined, { timeout: 10000 });
if (available.isError) throw new Error("Capabilities unavailable");
const result = await client.callTool({
name: "check_coverage",
arguments: {"countryCodes":["TW"],"taxYear":2026,"capability":"estimate_tax_position"}
}, undefined, { timeout: 10000 });
if (result.isError) throw new Error("Coverage check failed");
console.log(result.structuredContent);
} finally {
await client.close();
}The SDK negotiates the protocol at initialization. tools/list is authoritative. Read structuredContent only on a successful call; isError is not a tax result.
Transport details
POST /mcp uses stateless JSON responses. GET returns 405; no SSE session is offered. Send the JSON and event-stream Accept types through your MCP client. Private tools and permission files are not accepted.
Read the result, not just the amount
supportedForPilot- Continue only for the supported scope. A limitedAlternative needs the person's explicit approval; keep excluded countries visible.
estimatedTax: null- No estimate is available. This never means zero tax.
totalPayable- Not determined. Do not add country estimates into a final bill. A reliefProjection is illustrative, not an approved credit or proof of tax paid.
sourceChecks- Include source status, citations and missing facts with every result. Source monitoring detects changes; it is not professional tax review. Reference FX is for estimates, not filing.
Free API limits
Send only calculation facts. Never send names, tax IDs, documents, credentials or payment details. REST coverage bodies are limited to 2 KiB; estimates and day counts to 16 KiB. MCP bodies are limited to 64 KiB. Query parameters are rejected.
Use a server-side client. Cross-origin browser requests are not supported. If you send an Origin header, it must match the API origin.
- 400 / 403 / 413
- Correct invalid fields, origin or body size before retrying. Do not automatically retry an invalid request.
429 public_tools_busy- Respect Retry-After. Use bounded retries with jitter, not continuous polling. Limits are per server instance, not a guaranteed global quota.
503 / exchange_rates_unavailable- Show that the service or rate is unavailable. Never substitute a made-up exchange rate or a zero-tax result. Some source-estimate responses instead include exchangeRateStatus: unavailable; check it even on HTTP 200.
tool_unavailable- MCP returns HTTP 400 and JSON-RPC -32602 for unadvertised tools. Do not retry or ask for credentials. Coverage gaps are also not retryable.
Tassi processes free estimates without saving your calculation inputs. Hosting access and security metadata are handled separately.
Privacy and data handling