API overview
The public API is for user-owned clients such as the SellTraces CLI, browser flows, Rebate frontends, and integrations that act on behalf of a signed-in user. The generated endpoint reference is built withzod-openapi from scripts/generate-openapi.ts, shared Zod request schemas, and the Next.js route tree under apps/web/src/app/api/**.
Base URLs
The generated OpenAPI file includes both servers.
Main surfaces
Internal and delegated routes such as health checks, Better Auth, and Gravity tracking proxy URLs are excluded from the public API reference.
Generated reference
Open the API Reference tab for generated operation pages. Endpoint pages use stable/api-reference/... URLs generated from the OpenAPI manifest.
The raw OpenAPI document is available at:
Response style
Most application-owned JSON routes return anok envelope:
error objects because their wire contract predates the shared envelope and is optimized for CLI rendering fallback.