[AVAILABLE], every route below is mounted in
packages/api/src/app.ts. No other routes exist.Base URL
Local:http://localhost:3000 (see Quickstart for starting the server).
Errors
Non-2xx responses are{ "error": string }, sometimes with a code field, per
packages/api/src/middleware/error-handler.ts, verified for each route on
Endpoints:
| Status | When | Verified this session |
|---|---|---|
| 400 | BusinessTransactionValidationError, PolicyValidationError, SignalValidationError, or a route’s own hand-written field check | Field checks yes, on every route. BusinessTransactionValidationError specifically, no, see the warning below. |
| 404 | PolicyNotFoundError, or a route’s own “not found” check | Yes |
| 409 | DuplicateBusinessTransactionError | Yes |
| (varies, seen: 500) | Any other RuntimeError, status/code from the error itself | Yes, RUNTIME_ERROR / VERIFICATION_FAILED |
| 500 | Unexpected failure (logged via console.error, not a structured logger, see Roadmap) | Yes, see the warning below |
ValidationError/NotFoundError/ConflictError/ServerError/etc.), see
Python SDK. The TypeScript SDK does not, see
TypeScript SDK.