Async estimates and webhooks
Non-breaking changes to version 2026-10-05. Nothing changes for a request that does not ask for the new features.
POST /v1/estimatesand follow-ups acceptmode: async. The answer is 202 withstatus: processing, and the estimate finishes in the background. See Async estimates.- An estimate can now have the status
processingorfailed, and a failed one carrieserror. Both happen only withmode: async. - Webhook endpoints receive signed events:
estimate.completed,estimate.failed,credits.low,credits.exhausted,api_key.rotated,api_key.expiring,api_key.suspicious_activityandwebhook.test. See Webhooks. - New operations:
/v1/webhook_endpointswith test and secret rotation, and/v1/eventswith redelivery. They need thewebhooks:managescope, which every key made in the dashboard now carries, existing ones included. - New sandbox entries:
sandbox:asyncandsandbox:failed. - New error codes:
webhook_url_rejected,webhook_endpoint_limitandevent_not_redeliverable. - Error codes and estimate statuses can grow. Handle an unknown error code by its HTTP status, and treat an unknown status as not finished.