Skip to main content

Errors

The API has two error surfaces:
  • Request errors returned immediately by an endpoint.
  • Async job failures returned inside generation or analysis status responses.

Request Error Shape

Most route, auth, and validation errors use FastAPI’s standard shape:
Pydantic validation errors use detail as an array:
Unhandled server errors use the API’s fallback shape:

Common HTTP Errors

Async Job Failures

Generation, deck generation, chart updates, and template analysis run asynchronously. A request can return 202 and still fail later. Poll the status endpoint and inspect:
  • top-level status
  • top-level error
  • slide_results[].error for deck generation
Example failed generation status:
Common async error codes include:

Practical Debugging

  • For 404, confirm you are using a slideId from the latest template analysis and the API key belongs to the same organization.
  • For 422, use the field path in detail[].loc to find the invalid payload field.
  • For partial deck results, download may still be available; inspect slide_results to decide whether to use or regenerate the deck.
  • For storage-related failures, verify the template/generated storage backend and bucket or path permissions.
  • For repeated 429, tune generation worker settings or reduce concurrent requests.