Durable jobs
Queue long-running API work through POST /api/v1/jobs. Every operation supports durable execution, idempotent creation, cursor pagination, cancellation, polling, stored SSE replay, sandbox mode, and signed webhook delivery. Jobs and recoverable results are retained for 30 days. Durable workers require their migrations and runtime configuration before activation.
Events are a finite replay by default. Use follow=1 to follow progress and after or Last-Event-IDto resume. Follow connections end after four minutes; reconnect explicitly using the last event ID. Cancellation stops remaining work at a checkpoint; work already delivered can remain charged.
POST /api/v1/jobsCreate a queued background job.
GET /api/v1/jobsList the caller's recent jobs.
GET /api/v1/jobs/{id}Fetch status, errors, and final result.
GET /api/v1/jobs/{id}/eventsReplay or follow stored Server-Sent Events, resuming after an event ID.
POST /api/v1/jobs/{id}/cancelCancel an account-owned queued or running job.