Errors

SellTraces-owned JSON routes generally return an error field with an HTTP status code. Better Auth delegated routes may return provider-owned shapes. For request and response schemas on a specific operation, use the generated pages under API Reference.

Common errors

Error envelope

Application-owned API routes usually return:
Some legacy pre-auth routes return:

Validation issues

POST /api/ingest can include Zod validation issues for malformed JSON uploads:

Retry guidance

  • Retry 202 device polls after the returned interval.
  • Do not retry 400 schema errors without changing the request.
  • Treat 409 already_sold as final for trace eligibility changes.
  • Retry transient 500, 502, and 503 only with backoff.