Cancel an owned active request or active structured-extraction run
Cancels a pending, running, or CAPTCHA-solving page request. If the page is already completed, the endpoint can still cancel active dependent AI extraction runs without deleting the retained page result. Pending page cancellations attempt an immediate base-debit refund; running page cancellations are left for the existing refund-recovery flow.
Cancels a pending, running, or CAPTCHA-solving page request. If the page is already completed, the endpoint can still cancel active dependent AI extraction runs without deleting the retained page result. Pending page cancellations attempt an immediate base-debit refund; running page cancellations are left for the existing refund-recovery flow.
X-API-Key<token>id*stringUUID of the target request or batch, as returned in the id field when it was created or listed.
uuidIdempotency-Key?stringOptional. Generate a unique value before a write and retain it for an exact-body retry; replay is free and a different body returns 409 IDEMPOTENCY_CONFLICT.
8 <= length <= 200Cancellation accepted and persisted Error body uses the documented PublicError DTO.
application/json- response
id*stringuuidstatus*stringLogical request/extraction cancellation status.
page_status*stringPersisted underlying page-request status after cancellation. It remains completed when cancellation only stopped extraction work.
page_cancelled*booleanTrue when an active page request was changed to cancelled.
page_was_active*booleanTrue when the page was pending, running, or solving a CAPTCHA before this cancellation.
recipe_runs*refund_status*stringPending page cancellations attempt an immediate refund; running page cancellations remain recoverable work; extraction-only cancellation does not refund the already-completed page request.
"completed""pending_recovery""not_applicable"refund_tokens*integerBase tokens included in the page cancellation refund path; zero for extraction-only cancellation.
0 <= valuebatch_refresh_status*string"completed""pending_recovery"curl -X POST 'https://api.runharvester.com/api/v1/data/requests/497f6eca-6276-4993-bfeb-53cbbbba6f08/cancel' \ --header "X-API-Key: ${RUNHARVESTER_API_KEY:?Set your Data API key}" \ --header "Idempotency-Key: ${RUNHARVESTER_IDEMPOTENCY_KEY:?Set a unique key for this submission; reuse it for retries}"{ "id": "9a20bd58-ed33-4a5b-b63f-b52bb1a62248", "status": "pending"}Stream provider-neutral request events GET
Opens a bounded Server-Sent Events stream for a pending or protected request. Reconnect with Last-Event-ID after a disconnect. Each event uses the same provider-neutral payload as the request event history; the stream closes after completed, failed, or cancelled.
Retry an owned failed request as a new task POST
Retries the failed request identified by the path id. Creates a new request ID and preserves the failed source request for audit. Structured extraction requests also create a new recipe run. Website task/tool requests return WEBSITE_TOOL_RETRY_REQUIRES_NEW_REQUEST; submit a new task/tool request with a new idempotency key instead.