Skip to content

Restart a Run

POST/v1/runs/{id}/restart

Restart a stopped or failed Run before its restartable_until. A Run without one can't be restarted.

Request

application/json
Authorization
header · required
Bearer <Extralt API key>
Idempotency-Key
header · string · required

Unique key for safely retrying this request

id
path · string · required

Run ID

budget
body · integer · nullable

Most PDPs the Run saves, across its executions. Omitted, the Run keeps its budget.

int32 · ≥ 0

Response

202 Accepted · application/json

Run restart accepted

budget
integer · nullable
int32 · ≥ 0
created_at
string
date-time
finished
boolean

Whether the Run has reached a final status. A restarted Run is unfinished again.

finished_at
string · nullable

When the Run reached its final status; null while it is unfinished.

date-time
id
string
in_queue
integer
int64 · ≥ 0
name
string
new_pdps
integer

Of those, the organization's first PDP of a product, charged as new.

int64 · ≥ 0
pdps
integer

PDPs published and billed.

int64 · ≥ 0
restartable_until
string · nullable

Until when the Run can be restarted, 30 days after its creation; null when it can't be: it is unfinished or completed, or it is a stopped or failed Run whose crawl captured no product.

date-time
scope
Scope

Which of a Store's products a Run reads. Each field narrows the store and one left out narrows nothing, so {} reads the whole store. products: known takes no pages, filters need products: known, and products: new takes no not_read_within_hours.

filters
ScopeFilters

Only known products in, or not in, these categories and brands.

not_read_within_hours
integer

Only products the organization's Runs haven't read in this many hours before the Run starts; Imports don't count. Left out, the Run skips nothing.

int32 · ≥ 1 · ≤ 8784
pages
string[]

Only these pages: 1 to 100 product or category page URLs on the Store's host. The crawl reads each page's product, or the products a category page lists.

items 1–100
products
ScopeProducts

known: only the products already in the organization's data for this Store, revisited without crawling the store, even after they leave its category pages. new: only the products not in it, found anywhere in the store or on the pages given; a product the store removed and brought back is in it, and so is one only an Import brought, when the Import gave its page URL.

one of known · new
started_at
string · nullable
date-time
status
RunStatus
one of pending · starting · restarting · running · materializing · completed · stopped · failed
status_reason
string · nullable
store_id
string
triggered_by
string

Requests from the SDKs and MCP count as api.

Known values: agent, api, dashboard, schedule. Others may be added.

updated_at
string · nullable
date-time

Errors

ErrorResponse

Errors that read the same on every endpoint are in Error codes.

400

Invalid input

402

Active subscription and available credits required

404

Run not found

409

Run restart conflicts with an unfinished Run or Import of its Store, the Run state, its Store's crawler or tracking, or prior use of the idempotency key

413

The request body exceeds the API limit

415

The request body must use application/json

422

The JSON body does not match the expected schema

Request · cURL
curl -X POST 'https://api.extralt.com/v1/runs/kh72p9xq4c8v1m6z3t5r0n8wbd2f4hje/restart' \
  -H "Authorization: Bearer $EXTRALT_API_KEY" \
  -H 'Idempotency-Key: 0f8c6b2e-3d4a-4f9b-8c1e-5a7d9e2b4c61' \
  -H 'Content-Type: application/json' \
  -d '{
  "budget": 200
}'
Response · 202
{
  "budget": 100,
  "created_at": "2026-09-28T08:14:03Z",
  "finished": true,
  "finished_at": "2026-09-28T08:14:03Z",
  "id": "kh72p9xq4c8v1m6z3t5r0n8wbd2f4hje",
  "in_queue": 0,
  "name": "example-store.com-US_4",
  "new_pdps": 40,
  "pdps": 100,
  "restartable_until": "2026-09-28T08:14:03Z",
  "scope": {
    "filters": {
      "brands": {
        "in": [
          "Nike",
          "Jordan"
        ],
        "not_in": [
          "Converse"
        ]
      },
      "categories": {
        "in": [
          "Apparel & Accessories"
        ],
        "not_in": [
          "Shoes"
        ]
      }
    },
    "not_read_within_hours": 1,
    "pages": [
      "https://www.example-store.com/collections/running"
    ],
    "products": "known"
  },
  "started_at": "2026-09-28T08:14:03Z",
  "status": "completed",
  "status_reason": "Budget reached",
  "store_id": "example-store.com-US",
  "triggered_by": "api",
  "updated_at": "2026-09-28T08:14:03Z"
}