# agent-402

> HTTP endpoints that AI agents pay for per call over the x402 protocol. No account, no API key: the agent pays in USDC and the response is served in the same request.

Settlement network: Base Sepolia.
Payments go to 0xa7b59861cd48ee4384Fd7aC9B27569cE8f0DBBF4. A failed call is not charged.
The buyer needs no gas; the x402 facilitator sponsors it.

## Endpoints

### GET /x/echo — $0.01 per call

Echoes the caller's query string back. Placeholder for a real product.

Example: `curl 'https://dev-agent402.throuzlabs.com/x/echo?q=hello'`

### GET /x/tw/payroll — $0.05 per call

Taiwan payroll calculator - 勞保, 健保 and 勞退 contributions from a monthly salary, on the current 2026 brackets.

Example: `curl 'https://dev-agent402.throuzlabs.com/x/tw/payroll?monthlySalary=45000&voluntaryPensionRate=0.06'`

### GET /x/tw/address — $0.02 per call

Taiwan address parser - splits a Chinese address into structured fields and a canonical form.

Example: `curl 'https://dev-agent402.throuzlabs.com/x/tw/address?address=%E5%8F%B0%E5%8C%97%E5%B8%82%E5%A4%A7%E5%AE%89%E5%8D%80%E5%BF%A0%E5%AD%9D%E6%9D%B1%E8%B7%AF%E5%9B%9B%E6%AE%B535%E5%B7%B712%E4%B9%8B3%E8%99%9F5%E6%A8%93'`

### GET /x/tw/company — $0.03 per call

Taiwan company lookup by 統一編號 - name, status, representative, capital and address from the official registry.

Example: `curl 'https://dev-agent402.throuzlabs.com/x/tw/company?taxId=22099131'`

## Free reference

Taiwan payroll brackets 2026: https://dev-agent402.throuzlabs.com/tw/payroll-2026
The full 勞保, 健保 and 勞退 bracket tables and rates with their source documents,
free to read. The paid endpoint computes contributions against them.

## Machine-readable catalogue

https://dev-agent402.throuzlabs.com/.well-known/x402

## Protocol

Requests without payment return HTTP 402 with a `payment-required` header
carrying a base64 JSON quote. Sign the quoted USDC amount and retry.
See https://x402.org for client libraries.