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:detail as an array:
Common HTTP Errors
Async Job Failures
Generation, deck generation, chart updates, and template analysis run asynchronously. A request can return202 and still fail later.
Poll the status endpoint and inspect:
- top-level
status - top-level
error slide_results[].errorfor deck generation
Practical Debugging
- For
404, confirm you are using aslideIdfrom the latest template analysis and the API key belongs to the same organization. - For
422, use the field path indetail[].locto find the invalid payload field. - For
partialdeck results, download may still be available; inspectslide_resultsto 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.