Skip to main content
Every failed /v2 call returns a consistent JSON envelope without deducting from your grants, allowances, or prepaid balance:
Branch on error.code rather than the text of error.message. Include requestId (also returned in X-Request-Id) if you contact api@noteboxd.com.

Extra fields by error type

  • 402 INSUFFICIENT_BALANCE / 429 AI_BUDGET_EXCEEDED: Includes shortfallMicros (missing micro-USD needed for the call).
  • 403 TERMS_NOT_ACCEPTED: Includes termsVersion ("2.0") and termsUrl ("https://www.noteboxd.com/legal/api-terms").
  • 429 rate limit and distinct quota errors: Include limit, window ("second", "day", "30d", or null), and retryAfterSeconds, alongside Retry-After and X-RateLimit-Limit headers.

API error codes

Image server (img.noteboxd.com) errors

Handling errors in code