Skip to main content
Check the HTTP status before reading a success response. Capture X-Request-ID when reporting a failed call.
detail can be a string, an object, or a list of validation errors. Parse it according to its type.

Decide whether to retry

HTTP success does not guarantee browser-task success. Check content_ok for fetch, ok for actions and agent tasks, and the terminal job status for asynchronous work.
Concurrency counts live sessions across your account. GET /v1/usage returns concurrency_limit and the applicable rate limits. Close unused sessions before starting more. See the error reference and rate-limit reference for route-specific codes.