API
Guide

Errors

Errors use real HTTP status codes and a uniform body:

{ "error": { "type": "not_found", "message": "No run found with id run_..." } }

Common type values: bad_request, not_found, forbidden, duplicate_run_key, insufficient_credits, credit_cap_exceeded, validation, not_implemented. A dataset endpoint on an older account that has not completed its move to Datasets answers 403 with feature_not_enabled; the account moves itself from Datasets in the app (Migrate to Datasets).

One exception: authentication failures (401) come from the shared auth layer and use the shape { "request_status": "error", "message": "...", "error_type": "unauthorized" }.