{"info":{"version":"1","description":"Watch the pages that matter: Netscrape re-reads them politely on a schedule you set, confirms real changes and tells you by signed webhook or an event feed. One-off reads run as durable jobs.\n\nEvery request needs an API key from a paid Netscrape account; there is no free tier, trial or anonymous access. Create a key on the API keys page (/account/keys) once your account is on a plan, and send it as `Authorization: Bearer <key>`.\n\nErrors share one shape, `{\"error\": {\"code\": \"...\"}}`; each operation lists the codes it can answer. A `429` carries `Retry-After` in seconds: wait that long and retry. Authenticated responses carry `x-netscrape-credits-remaining`. Guides: /docs; agent index: /llms.txt.\n","title":"Netscrape API","summary":"Netscrape keeps your website data fresh.","contact":{"email":"hello@netscrapehq.com"}},"components":{"schemas":{"ChangeList":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Event"}},"next_cursor":{"type":["integer","null"]}}},"Check":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"number":{"type":"integer"},"delivered":{"type":"boolean"},"confirmation":{"type":"boolean"},"inserted_at":{"type":"string","format":"date-time"},"job_id":{"type":"string","format":"uuid"},"outcome":{"type":"string"},"finished_at":{"type":["string","null"],"format":"date-time"},"evidence":{"type":"object"}}},"CheckList":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Check"}},"next_cursor":{"type":["integer","null"]},"daily_unchanged":{"type":"array","items":{"type":"object","properties":{"count":{"type":"integer"},"day":{"type":"string","format":"date"}}}}}},"Count":{"type":"object","required":["count"],"properties":{"count":{"type":"integer"}}},"Error":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/ErrorDetail"}}},"ErrorDetail":{"type":"object","required":["code"],"properties":{"code":{"type":"string","description":"A stable, machine-readable code."}}},"Event":{"type":"object","description":"One event; each type adds its own fields (see /docs/events#event-types). Webhooks deliver the same objects.","required":["id","sequence","type","at"],"properties":{"id":{"type":"string","format":"uuid"},"type":{"type":"string","enum":["watch.changed","watch.health_changed","watch.moved","watch.noisy","watch.checked"]},"at":{"type":"string","format":"date-time"},"check":{"type":"object"},"after":{"$ref":"#/components/schemas/Version"},"before":{"$ref":"#/components/schemas/Version"},"diff":{"type":"object"},"watch":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"labels":{"type":"array","items":{"type":"string"}},"external_id":{"type":["string","null"]}}},"sequence":{"type":"integer"}}},"EventFeed":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Event"}},"next_cursor":{"type":"integer"},"has_more":{"type":"boolean"},"webhook_status":{"type":"string"}}},"Job":{"type":"object","required":["id","type","status","status_url"],"properties":{"error":{"type":["string","null"]},"id":{"type":"string","format":"uuid"},"status":{"type":"string","enum":["queued","running","succeeded","failed","cancelled"]},"type":{"type":"string","enum":["scrape","discover"]},"progress":{"type":"object"},"started_at":{"type":["string","null"],"format":"date-time"},"url":{"type":"string"},"scheduled_at":{"type":["string","null"],"format":"date-time"},"expires_at":{"type":["string","null"],"format":"date-time"},"attempts":{"type":"integer"},"parent_id":{"type":["string","null"],"format":"uuid"},"watch_id":{"type":["string","null"],"format":"uuid"},"finished_at":{"type":["string","null"],"format":"date-time"},"result_expires_at":{"type":["string","null"],"format":"date-time"},"response_status":{"type":["integer","null"]},"retries":{"type":"integer"},"response_bytes":{"type":["integer","null"]},"execution_ms":{"type":["integer","null"]},"browser_ms":{"type":["integer","null"]},"network_requests":{"type":["integer","null"]},"result_available":{"type":"boolean"},"result_expired":{"type":"boolean"},"result_url":{"type":["string","null"]},"status_url":{"type":"string"}}},"JobList":{"type":"object","required":["data","next_cursor"],"properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Job"},"maxItems":100},"next_cursor":{"type":["string","null"],"description":"Opaque cursor over (inserted_at, id); pass as after. Null at the end.","maxLength":200,"minLength":1}}},"JobRequest":{"type":"object","description":"See /docs/jobs#parameters.","required":["url"],"properties":{"capture":{"type":"string"},"output":{"default":"body","type":"string","enum":["body","document","screenshot","responses"],"description":"`document` adds a prepared document: title, readable `text`, `body_text` with headings, tables and lists, JSON-LD, links and `extracted` values."},"profile":{"type":"string"},"scope":{"type":"object"},"type":{"default":"scrape","type":"string","enum":["scrape","discover"]},"policy":{"type":"object","description":"robots.txt, pacing, scope and request limits; see /docs/politeness.","properties":{"max_requests":{"type":"integer"},"robots":{"type":"boolean"}}},"deadline":{"type":"string","format":"date-time"},"width":{"maximum":1920,"type":"integer","minimum":320},"fetch":{"type":"object"},"render":{"default":"auto","type":"string","enum":["auto","http","browser"]},"extract":{"type":"object","description":"With `output: \"document\"`: named values to read by CSS selector, text pattern, keyword or JSON-LD type.","additionalProperties":{"type":"object"}},"budget":{"type":"object"},"url":{"type":"string","format":"uri","description":"An absolute public HTTP(S) URL, without credentials."},"max_retries":{"maximum":2,"type":"integer","minimum":0},"watch_id":{"type":"string","format":"uuid","description":"Attach the job to a manual watch."},"signals":{"type":"object"},"link_rules":{"type":"array","items":{"type":"object"}},"content_match":{"type":"object"},"render_options":{"type":"object"},"block_resources":{"type":"boolean"},"locale":{"type":"string","enum":["en-GB","en-US"]},"settle_ms":{"maximum":5000,"type":"integer","minimum":0}}},"JobResult":{"type":"object","description":"The saved result; see /docs/jobs#results. Discovery results list `pages` with `complete` and `completion_reason`.","properties":{"status":{"type":"integer","description":"The site's HTTP status."},"body":{"type":"string"},"content_type":{"type":"string"},"url":{"type":"string"},"body_encoding":{"type":"string","enum":["utf8","base64"]},"rendered":{"type":"boolean"},"document":{"type":"object"},"final_url":{"type":"string"},"challenge":{"type":["string","null"]},"duration_ms":{"type":"integer"}}},"Usage":{"type":"object","properties":{"period":{"type":"object","properties":{"label":{"type":"string"},"start":{"type":"string","format":"date-time"},"end":{"type":"string","format":"date-time"},"since":{"type":["string","null"],"format":"date-time"}}},"by_kind":{"type":"object","additionalProperties":{"type":"object","properties":{"count":{"type":"integer"},"credits":{"type":"integer"},"rate":{"type":"integer"}}}},"credits":{"type":"object","properties":{"used":{"type":"integer"},"limit":{"type":["integer","null"]},"remaining":{"type":["integer","null"]}}}}},"Version":{"type":"object","description":"A page version, or `{}` before the first successful read.","properties":{"version":{"type":"integer"},"values":{"type":"object"},"job_id":{"type":"string","format":"uuid"},"fingerprint":{"type":"string"},"result_expires_at":{"type":["string","null"],"format":"date-time"},"result_url":{"type":["string","null"]},"compare_hash":{"type":"string"},"content_hash":{"type":"string"},"extract_empty":{"type":"boolean"},"payload_expired":{"type":"boolean"},"read_at":{"type":"string","format":"date-time"},"text_hash":{"type":"string"}}},"Watch":{"type":"object","required":["id","status","health"],"properties":{"id":{"type":"string","format":"uuid"},"status":{"type":"string","enum":["active","paused","retired"]},"request":{"type":"object"},"interval":{"type":"integer","description":"Seconds."},"labels":{"type":"array","items":{"type":"string"}},"kind":{"type":"string"},"compare":{"type":"object"},"current":{"$ref":"#/components/schemas/Version"},"schedule":{"type":"string","enum":["auto","manual"]},"lifecycle":{"type":"object"},"external_id":{"type":["string","null"]},"capabilities":{"type":"array","items":{"type":"string"}},"freshness":{"type":"object"},"last_change_at":{"type":["string","null"],"format":"date-time"},"health":{"type":"string","enum":["pending","healthy","failing","gone","blocked","robots_disallowed"]},"last_check_at":{"type":["string","null"],"format":"date-time"},"next_check_at":{"type":["string","null"],"format":"date-time"},"noisy":{"type":"boolean"},"pending_job_id":{"type":["string","null"],"format":"uuid"},"deliver_next":{"type":"boolean"},"emit_checks":{"type":"boolean"}}},"WatchInput":{"type":"object","description":"See /docs/watches. `request` and `freshness.max_age` are required to create.","properties":{"status":{"type":"string","enum":["active","paused"]},"request":{"description":"A job request to repeat; GET only, no `deadline`.","$ref":"#/components/schemas/JobRequest"},"labels":{"type":"array","items":{"type":"string"},"maxItems":50},"kind":{"type":"string","enum":["page"]},"compare":{"type":"object","properties":{"ignore":{"type":"array","items":{"type":"object"}},"on":{"type":"string","enum":["text","bytes","extract"]},"ignore_selectors":{"type":"array","items":{"type":"string"}},"confirm_changes":{"type":"boolean"}}},"schedule":{"type":"string","enum":["auto","manual"]},"lifecycle":{"type":"object"},"external_id":{"type":"string","maxLength":256,"minLength":1},"freshness":{"type":"object","required":["max_age"],"properties":{"max_age":{"type":["integer","string"],"description":"Seconds, or `\"Nh\"` / `\"Nd\"`; 1 hour to 90 days."},"min_interval":{"type":["integer","string"]}}},"emit_checks":{"type":"boolean"}}},"WatchList":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Watch"}},"next_cursor":{"type":["string","null"]},"capabilities":{"type":"array","items":{"type":"string"}}}}},"securitySchemes":{"bearer":{"scheme":"bearer","type":"http","description":"An API key from a paid Netscrape account, created on the API keys page (/account/keys)."}}},"paths":{"/v1/events":{"get":{"description":"Events numbered per account. Store `next_cursor` after processing each page, even an empty one, and pass it as `after` next time. Webhooks deliver the same events.","parameters":[{"in":"query","name":"after","description":"Events with a higher sequence; omit to start at the 30-day retention floor.","required":false,"schema":{"type":"integer","minimum":0}},{"in":"query","name":"limit","description":"Page size, 1-500.","required":false,"schema":{"default":100,"maximum":500,"type":"integer","minimum":1}},{"in":"query","name":"types","description":"Comma-separated event types.","required":false,"schema":{"type":"string"}},{"in":"query","name":"label","description":"Events for watches with this label.","required":false,"schema":{"type":"string"}}],"summary":"Read the event feed","tags":["Events"],"operationId":"listEvents","responses":{"200":{"description":"A page of events.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EventFeed"}}}},"400":{"description":"The request is invalid.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Error"},{"properties":{"error":{"properties":{"code":{"type":"string","description":"These and other request validation codes.","examples":["invalid_cursor","invalid_filter"]}}}}}]}}}},"401":{"description":"No API key, or an unknown or revoked one. Sends `WWW-Authenticate: Bearer`.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Error"},{"properties":{"error":{"properties":{"code":{"type":"string","enum":["unauthorised"]}}}}}]}}}},"403":{"description":"The account is suspended or still under review, or the request is refused: `robots_required` (your account requires robots.txt checks and the request said `\"robots\": false`), `host_blocked` (the host asked not to be read, or Netscrape refuses it), `route_not_allowed`.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Error"},{"properties":{"error":{"properties":{"code":{"type":"string","enum":["tenant_suspended","account_pending_approval"]}}}}}]}}}},"410":{"description":"The explicit cursor precedes the retention floor. The body carries `next_cursor`; pass it as `after` to read retained events and resync watches for missed history.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Error"},{"properties":{"error":{"properties":{"code":{"type":"string","enum":["cursor_expired"]}}}}}]}}}},"429":{"description":"Too many requests, or too much work pending. Wait `Retry-After` seconds when it is sent, then retry; a refused request has no effect.","headers":{"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Error"},{"properties":{"error":{"properties":{"code":{"type":"string","enum":["rate_limited"]}}}}}]}}}},"503":{"description":"Briefly unavailable; retry shortly.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Error"},{"properties":{"error":{"properties":{"code":{"type":"string","enum":["database_unavailable"]}}}}}]}}}}}}},"/v1/jobs":{"get":{"description":"Lists this account's job metadata in submission order, newest first: `(inserted_at DESC, id DESC)`. The ID breaks timestamp ties. Pass the opaque `next_cursor` as `after` to continue; a null cursor ends the list. The cursor remains usable if its boundary job is deleted. New submissions appear before that boundary, not on subsequent pages.","parameters":[{"in":"query","name":"limit","description":"Maximum jobs per page.","required":false,"schema":{"default":25,"maximum":100,"type":"integer","minimum":1}},{"in":"query","name":"after","description":"Opaque keyset cursor returned as next_cursor; not a job UUID. Omit for the newest page.","required":false,"schema":{"type":"string","maxLength":200,"minLength":1}}],"summary":"List jobs newest first","tags":["Jobs"],"operationId":"listJobs","responses":{"200":{"description":"A page of jobs, newest first.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobList"}}}},"400":{"description":"Invalid limit or malformed cursor.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Error"},{"properties":{"error":{"properties":{"code":{"type":"string","description":"These and other request validation codes.","examples":["invalid_pagination"]}}}}}]}}}},"401":{"description":"No API key, or an unknown or revoked one. Sends `WWW-Authenticate: Bearer`.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Error"},{"properties":{"error":{"properties":{"code":{"type":"string","enum":["unauthorised"]}}}}}]}}}},"403":{"description":"The account is suspended or still under review, or the request is refused: `robots_required` (your account requires robots.txt checks and the request said `\"robots\": false`), `host_blocked` (the host asked not to be read, or Netscrape refuses it), `route_not_allowed`.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Error"},{"properties":{"error":{"properties":{"code":{"type":"string","enum":["tenant_suspended","account_pending_approval"]}}}}}]}}}},"429":{"description":"Too many requests, or too much work pending. Wait `Retry-After` seconds when it is sent, then retry; a refused request has no effect.","headers":{"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Error"},{"properties":{"error":{"properties":{"code":{"type":"string","enum":["rate_limited"]}}}}}]}}}},"503":{"description":"Briefly unavailable; retry shortly.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Error"},{"properties":{"error":{"properties":{"code":{"type":"string","enum":["database_unavailable"]}}}}}]}}}}}},"post":{"description":"Stores a read (or a `discover` run) and answers at once; nothing touches the site yet. A matching job that is still queued or running is returned instead of a new one. Poll the job, or take a job webhook, then download `result_url`. Charged in credits when a page is delivered.","parameters":[{"in":"header","name":"Idempotency-Key","description":"1-128 letters, digits, `.`, `_`, `:` or `-`. The same key with the same request returns the existing job.","required":false,"schema":{"type":"string","pattern":"^[A-Za-z0-9._:-]{1,128}$"}}],"summary":"Submit a job","tags":["Jobs"],"operationId":"createJob","responses":{"202":{"description":"The job, queued.","headers":{"Location":{"description":"`/v1/jobs/{id}`","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Job"}}}},"400":{"description":"The request is invalid. Other request validation codes are possible.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Error"},{"properties":{"error":{"properties":{"code":{"type":"string","description":"These and other request validation codes.","examples":["invalid_request","unsupported_option","invalid_idempotency_key","invalid_host","watch_not_manual","watch_request_mismatch"]}}}}}]}}}},"401":{"description":"No API key, or an unknown or revoked one. Sends `WWW-Authenticate: Bearer`.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Error"},{"properties":{"error":{"properties":{"code":{"type":"string","enum":["unauthorised"]}}}}}]}}}},"402":{"description":"Billing refuses new work: no active subscription (`subscription_required`), 110% of the plan's credits used (`plan_limit_reached`), or the plan's active-watch cap (`watch_limit_reached`). Choose or change a plan in account Billing.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Error"},{"properties":{"error":{"properties":{"code":{"type":"string","enum":["subscription_required","plan_limit_reached"]}}}}}]}}}},"403":{"description":"The account is suspended or still under review, or the request is refused: `robots_required` (your account requires robots.txt checks and the request said `\"robots\": false`), `host_blocked` (the host asked not to be read, or Netscrape refuses it), `route_not_allowed`.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Error"},{"properties":{"error":{"properties":{"code":{"type":"string","enum":["tenant_suspended","account_pending_approval","route_not_allowed","robots_required","host_blocked"]}}}}}]}}}},"404":{"description":"`watch_id` names no watch of yours.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Error"},{"properties":{"error":{"properties":{"code":{"type":"string","enum":["not_found"]}}}}}]}}}},"409":{"description":"Conflicts with the current state.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Error"},{"properties":{"error":{"properties":{"code":{"type":"string","enum":["idempotency_conflict","check_pending","watch_inactive","watch_retired","robots_disallowed"]}}}}}]}}}},"429":{"description":"Too many requests, or too much work pending. Wait `Retry-After` seconds when it is sent, then retry; a refused request has no effect.","headers":{"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Error"},{"properties":{"error":{"properties":{"code":{"type":"string","enum":["rate_limited","queue_full","check_rate_limited"]}}}}}]}}}},"503":{"description":"Briefly unavailable; retry shortly.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Error"},{"properties":{"error":{"properties":{"code":{"type":"string","enum":["database_unavailable"]}}}}}]}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobRequest"}}}}}},"/v1/jobs/{id}":{"get":{"description":"`status` is the job's state, not the site's answer: that is `response_status`.","summary":"Get a job","tags":["Jobs"],"operationId":"getJob","responses":{"200":{"description":"The job.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Job"}}}},"401":{"description":"No API key, or an unknown or revoked one. Sends `WWW-Authenticate: Bearer`.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Error"},{"properties":{"error":{"properties":{"code":{"type":"string","enum":["unauthorised"]}}}}}]}}}},"403":{"description":"The account is suspended or still under review, or the request is refused: `robots_required` (your account requires robots.txt checks and the request said `\"robots\": false`), `host_blocked` (the host asked not to be read, or Netscrape refuses it), `route_not_allowed`.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Error"},{"properties":{"error":{"properties":{"code":{"type":"string","enum":["tenant_suspended","account_pending_approval"]}}}}}]}}}},"404":{"description":"Not found, or another account's.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Error"},{"properties":{"error":{"properties":{"code":{"type":"string","enum":["not_found"]}}}}}]}}}},"429":{"description":"Too many requests, or too much work pending. Wait `Retry-After` seconds when it is sent, then retry; a refused request has no effect.","headers":{"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Error"},{"properties":{"error":{"properties":{"code":{"type":"string","enum":["rate_limited"]}}}}}]}}}},"503":{"description":"Briefly unavailable; retry shortly.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Error"},{"properties":{"error":{"properties":{"code":{"type":"string","enum":["database_unavailable"]}}}}}]}}}}}},"delete":{"description":"Cancels queued or running work. Cancelling a running read is best effort.","summary":"Cancel a job","tags":["Jobs"],"operationId":"cancelJob","responses":{"200":{"description":"The job, cancelled.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Job"}}}},"401":{"description":"No API key, or an unknown or revoked one. Sends `WWW-Authenticate: Bearer`.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Error"},{"properties":{"error":{"properties":{"code":{"type":"string","enum":["unauthorised"]}}}}}]}}}},"403":{"description":"The account is suspended or still under review, or the request is refused: `robots_required` (your account requires robots.txt checks and the request said `\"robots\": false`), `host_blocked` (the host asked not to be read, or Netscrape refuses it), `route_not_allowed`.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Error"},{"properties":{"error":{"properties":{"code":{"type":"string","enum":["tenant_suspended","account_pending_approval"]}}}}}]}}}},"404":{"description":"Not found, or another account's.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Error"},{"properties":{"error":{"properties":{"code":{"type":"string","enum":["not_found"]}}}}}]}}}},"409":{"description":"Conflicts with the current state.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Error"},{"properties":{"error":{"properties":{"code":{"type":"string","enum":["job_finished"]}}}}}]}}}},"429":{"description":"Too many requests, or too much work pending. Wait `Retry-After` seconds when it is sent, then retry; a refused request has no effect.","headers":{"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Error"},{"properties":{"error":{"properties":{"code":{"type":"string","enum":["rate_limited"]}}}}}]}}}},"503":{"description":"Briefly unavailable; retry shortly.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Error"},{"properties":{"error":{"properties":{"code":{"type":"string","enum":["database_unavailable"]}}}}}]}}}}}},"parameters":[{"in":"path","name":"id","description":"The job's id.","required":true,"schema":{"type":"string","format":"uuid"}}]},"/v1/jobs/{id}/result":{"get":{"description":"The saved result, kept for seven days, as the exact bytes stored with their stored `Content-Type`. A worker's result is JSON (`JobResult`); a body saved as it came may be any type, such as `application/octet-stream`, and is served inert (`nosniff`, a sandboxing CSP). A failed job with a saved result still answers 200; `X-Netscrape-Result-Status` carries the execution status.","summary":"Get a job's result","tags":["Jobs"],"operationId":"getJobResult","responses":{"200":{"description":"The saved result.","headers":{"X-Netscrape-Result-Status":{"description":"The site's HTTP status for this read.","schema":{"type":"string"}}},"content":{"*/*":{"schema":{"type":"string","format":"binary","description":"Any other stored type, byte for byte."}},"application/json":{"schema":{"$ref":"#/components/schemas/JobResult"}},"application/octet-stream":{"schema":{"type":"string","format":"binary"}}}},"401":{"description":"No API key, or an unknown or revoked one. Sends `WWW-Authenticate: Bearer`.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Error"},{"properties":{"error":{"properties":{"code":{"type":"string","enum":["unauthorised"]}}}}}]}}}},"403":{"description":"The account is suspended or still under review, or the request is refused: `robots_required` (your account requires robots.txt checks and the request said `\"robots\": false`), `host_blocked` (the host asked not to be read, or Netscrape refuses it), `route_not_allowed`.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Error"},{"properties":{"error":{"properties":{"code":{"type":"string","enum":["tenant_suspended","account_pending_approval"]}}}}}]}}}},"404":{"description":"Not found, or another account's.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Error"},{"properties":{"error":{"properties":{"code":{"type":"string","enum":["not_found"]}}}}}]}}}},"409":{"description":"The job hasn't saved a result.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Error"},{"properties":{"error":{"properties":{"code":{"type":"string","enum":["result_not_available"]}}}}}]}}}},"410":{"description":"The result is more than seven days old.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Error"},{"properties":{"error":{"properties":{"code":{"type":"string","enum":["result_expired"]}}}}}]}}}},"429":{"description":"Too many requests, or too much work pending. Wait `Retry-After` seconds when it is sent, then retry; a refused request has no effect.","headers":{"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Error"},{"properties":{"error":{"properties":{"code":{"type":"string","enum":["rate_limited"]}}}}}]}}}},"503":{"description":"Briefly unavailable; retry shortly.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Error"},{"properties":{"error":{"properties":{"code":{"type":"string","enum":["database_unavailable","result_storage_unavailable"]}}}}}]}}}}}},"parameters":[{"in":"path","name":"id","description":"The job's id.","required":true,"schema":{"type":"string","format":"uuid"}}]},"/v1/usage":{"get":{"description":"Credits for the current billing window, by kind, with your allowance. Never cached.","parameters":[{"in":"query","name":"period","description":"A calendar month, `YYYY-MM`, to read history.","required":false,"schema":{"type":"string","pattern":"^[0-9]{4}-[0-9]{2}$"}}],"summary":"Get your usage","tags":["Usage"],"operationId":"getUsage","responses":{"200":{"description":"Your usage.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Usage"}}}},"400":{"description":"The request is invalid.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Error"},{"properties":{"error":{"properties":{"code":{"type":"string","description":"These and other request validation codes.","examples":["invalid_period"]}}}}}]}}}},"401":{"description":"No API key, or an unknown or revoked one. Sends `WWW-Authenticate: Bearer`.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Error"},{"properties":{"error":{"properties":{"code":{"type":"string","enum":["unauthorised"]}}}}}]}}}},"403":{"description":"The account is suspended or still under review, or the request is refused: `robots_required` (your account requires robots.txt checks and the request said `\"robots\": false`), `host_blocked` (the host asked not to be read, or Netscrape refuses it), `route_not_allowed`.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Error"},{"properties":{"error":{"properties":{"code":{"type":"string","enum":["tenant_suspended","account_pending_approval"]}}}}}]}}}},"429":{"description":"Too many requests, or too much work pending. Wait `Retry-After` seconds when it is sent, then retry; a refused request has no effect.","headers":{"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Error"},{"properties":{"error":{"properties":{"code":{"type":"string","enum":["rate_limited"]}}}}}]}}}},"503":{"description":"Briefly unavailable; retry shortly.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Error"},{"properties":{"error":{"properties":{"code":{"type":"string","enum":["database_unavailable"]}}}}}]}}}}}}},"/v1/watches":{"get":{"parameters":[{"in":"query","name":"status","description":"Exact match: `active`, `paused` or `retired`.","required":false,"schema":{"type":"string"}},{"in":"query","name":"health","description":"Exact match: `pending`, `healthy`, `failing`, `gone`, `blocked` or `robots_disallowed`.","required":false,"schema":{"type":"string"}},{"in":"query","name":"schedule","description":"Exact match: `auto` or `manual`.","required":false,"schema":{"type":"string"}},{"in":"query","name":"kind","description":"Exact match: `page`.","required":false,"schema":{"type":"string"}},{"in":"query","name":"label","description":"Watches that have this label.","required":false,"schema":{"type":"string"}},{"in":"query","name":"url_prefix","description":"Watches whose URL starts with this.","required":false,"schema":{"type":"string"}},{"in":"query","name":"changed_since","description":"Watches whose last change is at or after this time.","required":false,"schema":{"type":"string","format":"date-time"}},{"in":"query","name":"after","description":"The `next_cursor` from the previous page.","required":false,"schema":{"type":"string"}},{"in":"query","name":"limit","description":"Page size, 1-500.","required":false,"schema":{"default":100,"maximum":500,"type":"integer","minimum":1}}],"summary":"List watches","tags":["Watches"],"operationId":"listWatches","responses":{"200":{"description":"A page of watches.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WatchList"}}}},"400":{"description":"The request is invalid.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Error"},{"properties":{"error":{"properties":{"code":{"type":"string","description":"These and other request validation codes.","examples":["invalid_filter","invalid_cursor"]}}}}}]}}}},"401":{"description":"No API key, or an unknown or revoked one. Sends `WWW-Authenticate: Bearer`.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Error"},{"properties":{"error":{"properties":{"code":{"type":"string","enum":["unauthorised"]}}}}}]}}}},"403":{"description":"The account is suspended or still under review, or the request is refused: `robots_required` (your account requires robots.txt checks and the request said `\"robots\": false`), `host_blocked` (the host asked not to be read, or Netscrape refuses it), `route_not_allowed`.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Error"},{"properties":{"error":{"properties":{"code":{"type":"string","enum":["tenant_suspended","account_pending_approval"]}}}}}]}}}},"429":{"description":"Too many requests, or too much work pending. Wait `Retry-After` seconds when it is sent, then retry; a refused request has no effect.","headers":{"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Error"},{"properties":{"error":{"properties":{"code":{"type":"string","enum":["rate_limited"]}}}}}]}}}},"503":{"description":"Briefly unavailable; retry shortly.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Error"},{"properties":{"error":{"properties":{"code":{"type":"string","enum":["database_unavailable"]}}}}}]}}}}}},"post":{"description":"Repeating an `external_id` updates that watch, so enrolment is safe to repeat. Watches check robots.txt before every read.","summary":"Create or update a watch","tags":["Watches"],"operationId":"upsertWatch","responses":{"201":{"description":"The watch.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Watch"}}}},"400":{"description":"The watch is invalid. Other request validation codes are possible.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Error"},{"properties":{"error":{"properties":{"code":{"type":"string","description":"These and other request validation codes.","examples":["invalid_watch","invalid_watch_request","unsupported_option","invalid_host","external_id_conflict"]}}}}}]}}}},"401":{"description":"No API key, or an unknown or revoked one. Sends `WWW-Authenticate: Bearer`.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Error"},{"properties":{"error":{"properties":{"code":{"type":"string","enum":["unauthorised"]}}}}}]}}}},"402":{"description":"Billing refuses new work: no active subscription (`subscription_required`), 110% of the plan's credits used (`plan_limit_reached`), or the plan's active-watch cap (`watch_limit_reached`). Choose or change a plan in account Billing.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Error"},{"properties":{"error":{"properties":{"code":{"type":"string","enum":["subscription_required","plan_limit_reached","watch_limit_reached"]}}}}}]}}}},"403":{"description":"The account is suspended or still under review, or the request is refused: `robots_required` (your account requires robots.txt checks and the request said `\"robots\": false`), `host_blocked` (the host asked not to be read, or Netscrape refuses it), `route_not_allowed`.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Error"},{"properties":{"error":{"properties":{"code":{"type":"string","enum":["tenant_suspended","account_pending_approval","route_not_allowed","robots_required","host_blocked"]}}}}}]}}}},"422":{"description":"An account billed by agreement is at its watch cap.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Error"},{"properties":{"error":{"properties":{"code":{"type":"string","enum":["tenant_watch_limit_reached"]}}}}}]}}}},"429":{"description":"Too many requests, or too much work pending. Wait `Retry-After` seconds when it is sent, then retry; a refused request has no effect.","headers":{"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Error"},{"properties":{"error":{"properties":{"code":{"type":"string","enum":["rate_limited"]}}}}}]}}}},"503":{"description":"Briefly unavailable; retry shortly.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Error"},{"properties":{"error":{"properties":{"code":{"type":"string","enum":["database_unavailable"]}}}}}]}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WatchInput"}}}}}},"/v1/watches/batch":{"post":{"description":"1-500 entries, each with an `external_id`, in a body of up to 2 MiB. Each entry succeeds or fails on its own; `\"retire\": true` retires that entry's watch.","summary":"Create, update or retire watches in a batch","tags":["Watches"],"operationId":"batchWatches","responses":{"200":{"description":"One result per entry, in order: the watch, or an error.","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"oneOf":[{"$ref":"#/components/schemas/Watch"},{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/ErrorDetail"},"external_id":{"type":["string","null"]}}}]}}}}}}},"400":{"description":"The envelope is malformed. An entry's own refusal, such as a `402`, is its result's `error` instead.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Error"},{"properties":{"error":{"properties":{"code":{"type":"string","description":"These and other request validation codes.","examples":["invalid_batch"]}}}}}]}}}},"401":{"description":"No API key, or an unknown or revoked one. Sends `WWW-Authenticate: Bearer`.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Error"},{"properties":{"error":{"properties":{"code":{"type":"string","enum":["unauthorised"]}}}}}]}}}},"403":{"description":"The account is suspended or still under review, or the request is refused: `robots_required` (your account requires robots.txt checks and the request said `\"robots\": false`), `host_blocked` (the host asked not to be read, or Netscrape refuses it), `route_not_allowed`.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Error"},{"properties":{"error":{"properties":{"code":{"type":"string","enum":["tenant_suspended","account_pending_approval"]}}}}}]}}}},"429":{"description":"Too many requests, or too much work pending. Wait `Retry-After` seconds when it is sent, then retry; a refused request has no effect.","headers":{"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Error"},{"properties":{"error":{"properties":{"code":{"type":"string","enum":["rate_limited"]}}}}}]}}}},"503":{"description":"Briefly unavailable; retry shortly.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Error"},{"properties":{"error":{"properties":{"code":{"type":"string","enum":["database_unavailable"]}}}}}]}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["watches"],"properties":{"watches":{"type":"array","items":{"allOf":[{"$ref":"#/components/schemas/WatchInput"},{"properties":{"retire":{"type":"boolean"}}}]},"maxItems":500,"minItems":1}}}}}}}},"/v1/watches/deliver_next":{"post":{"description":"Acts on every watch with `label`, narrowed by the other list filters. Answers the number of watches that changed state.","summary":"Deliver the next read of watches by label","tags":["Watches"],"operationId":"deliverNextWatches","responses":{"200":{"description":"How many watches it applied to.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Count"}}}},"400":{"description":"The request is invalid.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Error"},{"properties":{"error":{"properties":{"code":{"type":"string","description":"These and other request validation codes.","examples":["label_required","invalid_filter","invalid_cursor"]}}}}}]}}}},"401":{"description":"No API key, or an unknown or revoked one. Sends `WWW-Authenticate: Bearer`.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Error"},{"properties":{"error":{"properties":{"code":{"type":"string","enum":["unauthorised"]}}}}}]}}}},"403":{"description":"The account is suspended or still under review, or the request is refused: `robots_required` (your account requires robots.txt checks and the request said `\"robots\": false`), `host_blocked` (the host asked not to be read, or Netscrape refuses it), `route_not_allowed`.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Error"},{"properties":{"error":{"properties":{"code":{"type":"string","enum":["tenant_suspended","account_pending_approval"]}}}}}]}}}},"429":{"description":"Too many requests, or too much work pending. Wait `Retry-After` seconds when it is sent, then retry; a refused request has no effect.","headers":{"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Error"},{"properties":{"error":{"properties":{"code":{"type":"string","enum":["rate_limited"]}}}}}]}}}},"503":{"description":"Briefly unavailable; retry shortly.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Error"},{"properties":{"error":{"properties":{"code":{"type":"string","enum":["database_unavailable"]}}}}}]}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["label"],"properties":{"label":{"type":"string"},"status":{"type":"string"},"kind":{"type":"string"},"schedule":{"type":"string"},"health":{"type":"string"},"changed_since":{"type":"string","format":"date-time"},"url_prefix":{"type":"string"}}}}}}}},"/v1/watches/pause":{"post":{"description":"Acts on every watch with `label`, narrowed by the other list filters. Answers the number of watches that changed state.","summary":"Pause watches by label","tags":["Watches"],"operationId":"pauseWatches","responses":{"200":{"description":"How many watches it applied to.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Count"}}}},"400":{"description":"The request is invalid.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Error"},{"properties":{"error":{"properties":{"code":{"type":"string","description":"These and other request validation codes.","examples":["label_required","invalid_filter","invalid_cursor"]}}}}}]}}}},"401":{"description":"No API key, or an unknown or revoked one. Sends `WWW-Authenticate: Bearer`.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Error"},{"properties":{"error":{"properties":{"code":{"type":"string","enum":["unauthorised"]}}}}}]}}}},"403":{"description":"The account is suspended or still under review, or the request is refused: `robots_required` (your account requires robots.txt checks and the request said `\"robots\": false`), `host_blocked` (the host asked not to be read, or Netscrape refuses it), `route_not_allowed`.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Error"},{"properties":{"error":{"properties":{"code":{"type":"string","enum":["tenant_suspended","account_pending_approval"]}}}}}]}}}},"429":{"description":"Too many requests, or too much work pending. Wait `Retry-After` seconds when it is sent, then retry; a refused request has no effect.","headers":{"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Error"},{"properties":{"error":{"properties":{"code":{"type":"string","enum":["rate_limited"]}}}}}]}}}},"503":{"description":"Briefly unavailable; retry shortly.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Error"},{"properties":{"error":{"properties":{"code":{"type":"string","enum":["database_unavailable"]}}}}}]}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["label"],"properties":{"label":{"type":"string"},"status":{"type":"string"},"kind":{"type":"string"},"schedule":{"type":"string"},"health":{"type":"string"},"changed_since":{"type":"string","format":"date-time"},"url_prefix":{"type":"string"}}}}}}}},"/v1/watches/resume":{"post":{"description":"Acts on every watch with `label`, narrowed by the other list filters. Answers the number of watches that changed state.","summary":"Resume watches by label","tags":["Watches"],"operationId":"resumeWatches","responses":{"200":{"description":"How many watches it applied to.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Count"}}}},"400":{"description":"The request is invalid.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Error"},{"properties":{"error":{"properties":{"code":{"type":"string","description":"These and other request validation codes.","examples":["label_required","invalid_filter","invalid_cursor"]}}}}}]}}}},"401":{"description":"No API key, or an unknown or revoked one. Sends `WWW-Authenticate: Bearer`.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Error"},{"properties":{"error":{"properties":{"code":{"type":"string","enum":["unauthorised"]}}}}}]}}}},"402":{"description":"Billing refuses new work: no active subscription (`subscription_required`), 110% of the plan's credits used (`plan_limit_reached`), or the plan's active-watch cap (`watch_limit_reached`). Choose or change a plan in account Billing.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Error"},{"properties":{"error":{"properties":{"code":{"type":"string","enum":["subscription_required","plan_limit_reached","watch_limit_reached"]}}}}}]}}}},"403":{"description":"The account is suspended or still under review, or the request is refused: `robots_required` (your account requires robots.txt checks and the request said `\"robots\": false`), `host_blocked` (the host asked not to be read, or Netscrape refuses it), `route_not_allowed`.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Error"},{"properties":{"error":{"properties":{"code":{"type":"string","enum":["tenant_suspended","account_pending_approval"]}}}}}]}}}},"422":{"description":"The request can't be processed as asked.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Error"},{"properties":{"error":{"properties":{"code":{"type":"string","enum":["tenant_watch_limit_reached"]}}}}}]}}}},"429":{"description":"Too many requests, or too much work pending. Wait `Retry-After` seconds when it is sent, then retry; a refused request has no effect.","headers":{"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Error"},{"properties":{"error":{"properties":{"code":{"type":"string","enum":["rate_limited"]}}}}}]}}}},"503":{"description":"Briefly unavailable; retry shortly.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Error"},{"properties":{"error":{"properties":{"code":{"type":"string","enum":["database_unavailable"]}}}}}]}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["label"],"properties":{"label":{"type":"string"},"status":{"type":"string"},"kind":{"type":"string"},"schedule":{"type":"string"},"health":{"type":"string"},"changed_since":{"type":"string","format":"date-time"},"url_prefix":{"type":"string"}}}}}}}},"/v1/watches/resync":{"post":{"description":"Asks for a delivered read of every matching watch as soon as each one's `min_interval` and site budget allow. With no filter, every watch that isn't retired is resynced.","summary":"Resync watches","tags":["Watches"],"operationId":"resyncWatches","responses":{"202":{"description":"How many watches it applied to.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Count"}}}},"400":{"description":"The request is invalid.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Error"},{"properties":{"error":{"properties":{"code":{"type":"string","description":"These and other request validation codes.","examples":["label_required","invalid_filter","invalid_cursor"]}}}}}]}}}},"401":{"description":"No API key, or an unknown or revoked one. Sends `WWW-Authenticate: Bearer`.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Error"},{"properties":{"error":{"properties":{"code":{"type":"string","enum":["unauthorised"]}}}}}]}}}},"403":{"description":"The account is suspended or still under review, or the request is refused: `robots_required` (your account requires robots.txt checks and the request said `\"robots\": false`), `host_blocked` (the host asked not to be read, or Netscrape refuses it), `route_not_allowed`.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Error"},{"properties":{"error":{"properties":{"code":{"type":"string","enum":["tenant_suspended","account_pending_approval"]}}}}}]}}}},"429":{"description":"Too many requests, or too much work pending. Wait `Retry-After` seconds when it is sent, then retry; a refused request has no effect.","headers":{"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Error"},{"properties":{"error":{"properties":{"code":{"type":"string","enum":["rate_limited"]}}}}}]}}}},"503":{"description":"Briefly unavailable; retry shortly.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Error"},{"properties":{"error":{"properties":{"code":{"type":"string","enum":["database_unavailable"]}}}}}]}}}}},"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","required":[],"properties":{"label":{"type":"string"},"status":{"type":"string"},"kind":{"type":"string"},"schedule":{"type":"string"},"health":{"type":"string"},"changed_since":{"type":"string","format":"date-time"},"url_prefix":{"type":"string"}}}}}}}},"/v1/watches/{id}":{"get":{"summary":"Get a watch","tags":["Watches"],"operationId":"getWatch","responses":{"200":{"description":"The watch, including a retired one.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Watch"}}}},"401":{"description":"No API key, or an unknown or revoked one. Sends `WWW-Authenticate: Bearer`.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Error"},{"properties":{"error":{"properties":{"code":{"type":"string","enum":["unauthorised"]}}}}}]}}}},"403":{"description":"The account is suspended or still under review, or the request is refused: `robots_required` (your account requires robots.txt checks and the request said `\"robots\": false`), `host_blocked` (the host asked not to be read, or Netscrape refuses it), `route_not_allowed`.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Error"},{"properties":{"error":{"properties":{"code":{"type":"string","enum":["tenant_suspended","account_pending_approval"]}}}}}]}}}},"404":{"description":"Not found, or another account's.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Error"},{"properties":{"error":{"properties":{"code":{"type":"string","enum":["not_found"]}}}}}]}}}},"429":{"description":"Too many requests, or too much work pending. Wait `Retry-After` seconds when it is sent, then retry; a refused request has no effect.","headers":{"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Error"},{"properties":{"error":{"properties":{"code":{"type":"string","enum":["rate_limited"]}}}}}]}}}},"503":{"description":"Briefly unavailable; retry shortly.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Error"},{"properties":{"error":{"properties":{"code":{"type":"string","enum":["database_unavailable"]}}}}}]}}}}}},"delete":{"description":"The watch stays readable for 90 days. Creating it again by `external_id` brings it back.","summary":"Retire a watch","tags":["Watches"],"operationId":"retireWatch","responses":{"200":{"description":"The watch, now `retired`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Watch"}}}},"400":{"description":"The request is invalid.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Error"},{"properties":{"error":{"properties":{"code":{"type":"string","description":"These and other request validation codes.","examples":["invalid_watch","invalid_watch_request","unsupported_option","invalid_host"]}}}}}]}}}},"401":{"description":"No API key, or an unknown or revoked one. Sends `WWW-Authenticate: Bearer`.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Error"},{"properties":{"error":{"properties":{"code":{"type":"string","enum":["unauthorised"]}}}}}]}}}},"403":{"description":"The account is suspended or still under review, or the request is refused: `robots_required` (your account requires robots.txt checks and the request said `\"robots\": false`), `host_blocked` (the host asked not to be read, or Netscrape refuses it), `route_not_allowed`.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Error"},{"properties":{"error":{"properties":{"code":{"type":"string","enum":["tenant_suspended","account_pending_approval","route_not_allowed"]}}}}}]}}}},"404":{"description":"Not found, or another account's.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Error"},{"properties":{"error":{"properties":{"code":{"type":"string","enum":["not_found"]}}}}}]}}}},"409":{"description":"The watch is already retired.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Error"},{"properties":{"error":{"properties":{"code":{"type":"string","enum":["watch_retired"]}}}}}]}}}},"429":{"description":"Too many requests, or too much work pending. Wait `Retry-After` seconds when it is sent, then retry; a refused request has no effect.","headers":{"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Error"},{"properties":{"error":{"properties":{"code":{"type":"string","enum":["rate_limited"]}}}}}]}}}},"503":{"description":"Briefly unavailable; retry shortly.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Error"},{"properties":{"error":{"properties":{"code":{"type":"string","enum":["database_unavailable"]}}}}}]}}}}}},"parameters":[{"in":"path","name":"id","description":"The watch's id.","required":true,"schema":{"type":"string","format":"uuid"}}],"patch":{"description":"Takes the same fields as create. Fields left out keep their values; `request` replaces, `compare` and `lifecycle` merge. Changing the request or comparison starts a new baseline.","summary":"Update a watch","tags":["Watches"],"operationId":"updateWatch","responses":{"200":{"description":"The watch.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Watch"}}}},"400":{"description":"The request is invalid.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Error"},{"properties":{"error":{"properties":{"code":{"type":"string","description":"These and other request validation codes.","examples":["invalid_watch","invalid_watch_request","unsupported_option","invalid_host","external_id_conflict"]}}}}}]}}}},"401":{"description":"No API key, or an unknown or revoked one. Sends `WWW-Authenticate: Bearer`.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Error"},{"properties":{"error":{"properties":{"code":{"type":"string","enum":["unauthorised"]}}}}}]}}}},"402":{"description":"Billing refuses new work: no active subscription (`subscription_required`), 110% of the plan's credits used (`plan_limit_reached`), or the plan's active-watch cap (`watch_limit_reached`). Choose or change a plan in account Billing.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Error"},{"properties":{"error":{"properties":{"code":{"type":"string","enum":["subscription_required","plan_limit_reached","watch_limit_reached"]}}}}}]}}}},"403":{"description":"The account is suspended or still under review, or the request is refused: `robots_required` (your account requires robots.txt checks and the request said `\"robots\": false`), `host_blocked` (the host asked not to be read, or Netscrape refuses it), `route_not_allowed`.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Error"},{"properties":{"error":{"properties":{"code":{"type":"string","enum":["tenant_suspended","account_pending_approval","route_not_allowed","robots_required","host_blocked"]}}}}}]}}}},"404":{"description":"Not found, or another account's.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Error"},{"properties":{"error":{"properties":{"code":{"type":"string","enum":["not_found"]}}}}}]}}}},"409":{"description":"Conflicts with the current state.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Error"},{"properties":{"error":{"properties":{"code":{"type":"string","enum":["watch_retired"]}}}}}]}}}},"422":{"description":"The request can't be processed as asked.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Error"},{"properties":{"error":{"properties":{"code":{"type":"string","enum":["tenant_watch_limit_reached"]}}}}}]}}}},"429":{"description":"Too many requests, or too much work pending. Wait `Retry-After` seconds when it is sent, then retry; a refused request has no effect.","headers":{"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Error"},{"properties":{"error":{"properties":{"code":{"type":"string","enum":["rate_limited"]}}}}}]}}}},"503":{"description":"Briefly unavailable; retry shortly.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Error"},{"properties":{"error":{"properties":{"code":{"type":"string","enum":["database_unavailable"]}}}}}]}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WatchInput"}}}}}},"/v1/watches/{id}/changes":{"get":{"description":"The watch's `watch.changed` events, newest first, kept for the life of the watch plus 90 days.","parameters":[{"in":"query","name":"before","description":"The `next_cursor` from the previous page.","required":false,"schema":{"type":"integer","minimum":0}},{"in":"query","name":"limit","description":"Page size, 1-500.","required":false,"schema":{"default":100,"maximum":500,"type":"integer","minimum":1}}],"summary":"List changes","tags":["Watches"],"operationId":"listWatchChanges","responses":{"200":{"description":"A page of changes.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChangeList"}}}},"400":{"description":"The request is invalid.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Error"},{"properties":{"error":{"properties":{"code":{"type":"string","description":"These and other request validation codes.","examples":["invalid_cursor","invalid_filter"]}}}}}]}}}},"401":{"description":"No API key, or an unknown or revoked one. Sends `WWW-Authenticate: Bearer`.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Error"},{"properties":{"error":{"properties":{"code":{"type":"string","enum":["unauthorised"]}}}}}]}}}},"403":{"description":"The account is suspended or still under review, or the request is refused: `robots_required` (your account requires robots.txt checks and the request said `\"robots\": false`), `host_blocked` (the host asked not to be read, or Netscrape refuses it), `route_not_allowed`.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Error"},{"properties":{"error":{"properties":{"code":{"type":"string","enum":["tenant_suspended","account_pending_approval"]}}}}}]}}}},"404":{"description":"Not found, or another account's.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Error"},{"properties":{"error":{"properties":{"code":{"type":"string","enum":["not_found"]}}}}}]}}}},"429":{"description":"Too many requests, or too much work pending. Wait `Retry-After` seconds when it is sent, then retry; a refused request has no effect.","headers":{"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Error"},{"properties":{"error":{"properties":{"code":{"type":"string","enum":["rate_limited"]}}}}}]}}}},"503":{"description":"Briefly unavailable; retry shortly.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Error"},{"properties":{"error":{"properties":{"code":{"type":"string","enum":["database_unavailable"]}}}}}]}}}}}},"parameters":[{"in":"path","name":"id","description":"The watch's id.","required":true,"schema":{"type":"string","format":"uuid"}}]},"/v1/watches/{id}/check":{"parameters":[{"in":"path","name":"id","description":"The watch's id.","required":true,"schema":{"type":"string","format":"uuid"}}],"post":{"description":"Starts a read now. `deliver: true` makes it a delivered check, which always ends in `watch.checked`.","summary":"Check a watch now","tags":["Watches"],"operationId":"checkWatch","responses":{"202":{"description":"The job doing the read.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Job"}}}},"400":{"description":"The request is invalid.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Error"},{"properties":{"error":{"properties":{"code":{"type":"string","description":"These and other request validation codes.","examples":["invalid_deliver","invalid_host"]}}}}}]}}}},"401":{"description":"No API key, or an unknown or revoked one. Sends `WWW-Authenticate: Bearer`.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Error"},{"properties":{"error":{"properties":{"code":{"type":"string","enum":["unauthorised"]}}}}}]}}}},"402":{"description":"Billing refuses new work: no active subscription (`subscription_required`), 110% of the plan's credits used (`plan_limit_reached`), or the plan's active-watch cap (`watch_limit_reached`). Choose or change a plan in account Billing.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Error"},{"properties":{"error":{"properties":{"code":{"type":"string","enum":["subscription_required","plan_limit_reached"]}}}}}]}}}},"403":{"description":"The account is suspended or still under review, or the request is refused: `robots_required` (your account requires robots.txt checks and the request said `\"robots\": false`), `host_blocked` (the host asked not to be read, or Netscrape refuses it), `route_not_allowed`.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Error"},{"properties":{"error":{"properties":{"code":{"type":"string","enum":["tenant_suspended","account_pending_approval","route_not_allowed","robots_required","host_blocked"]}}}}}]}}}},"404":{"description":"Not found, or another account's.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Error"},{"properties":{"error":{"properties":{"code":{"type":"string","enum":["not_found"]}}}}}]}}}},"409":{"description":"`watch_inactive`: the watch is paused or retired.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Error"},{"properties":{"error":{"properties":{"code":{"type":"string","enum":["check_pending","watch_inactive","robots_disallowed","idempotency_conflict"]}}}}}]}}}},"429":{"description":"Too many requests, or too much work pending. Wait `Retry-After` seconds when it is sent, then retry; a refused request has no effect.","headers":{"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Error"},{"properties":{"error":{"properties":{"code":{"type":"string","enum":["rate_limited","check_rate_limited","queue_full"]}}}}}]}}}},"503":{"description":"Briefly unavailable; retry shortly.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Error"},{"properties":{"error":{"properties":{"code":{"type":"string","enum":["database_unavailable"]}}}}}]}}}}},"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"deliver":{"default":false,"type":"boolean"}}}}}}}},"/v1/watches/{id}/checks":{"get":{"description":"The watch's reads, oldest first. After 30 days, unchanged and undelivered checks are folded into `daily_unchanged`.","parameters":[{"in":"query","name":"after","description":"A check `number`; start at 0.","required":false,"schema":{"type":"integer","minimum":0}},{"in":"query","name":"limit","description":"Page size, 1-500.","required":false,"schema":{"default":100,"maximum":500,"type":"integer","minimum":1}}],"summary":"List checks","tags":["Watches"],"operationId":"listWatchChecks","responses":{"200":{"description":"A page of checks.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CheckList"}}}},"400":{"description":"The request is invalid.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Error"},{"properties":{"error":{"properties":{"code":{"type":"string","description":"These and other request validation codes.","examples":["invalid_cursor","invalid_filter"]}}}}}]}}}},"401":{"description":"No API key, or an unknown or revoked one. Sends `WWW-Authenticate: Bearer`.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Error"},{"properties":{"error":{"properties":{"code":{"type":"string","enum":["unauthorised"]}}}}}]}}}},"403":{"description":"The account is suspended or still under review, or the request is refused: `robots_required` (your account requires robots.txt checks and the request said `\"robots\": false`), `host_blocked` (the host asked not to be read, or Netscrape refuses it), `route_not_allowed`.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Error"},{"properties":{"error":{"properties":{"code":{"type":"string","enum":["tenant_suspended","account_pending_approval"]}}}}}]}}}},"404":{"description":"Not found, or another account's.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Error"},{"properties":{"error":{"properties":{"code":{"type":"string","enum":["not_found"]}}}}}]}}}},"429":{"description":"Too many requests, or too much work pending. Wait `Retry-After` seconds when it is sent, then retry; a refused request has no effect.","headers":{"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Error"},{"properties":{"error":{"properties":{"code":{"type":"string","enum":["rate_limited"]}}}}}]}}}},"503":{"description":"Briefly unavailable; retry shortly.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Error"},{"properties":{"error":{"properties":{"code":{"type":"string","enum":["database_unavailable"]}}}}}]}}}}}},"parameters":[{"in":"path","name":"id","description":"The watch's id.","required":true,"schema":{"type":"string","format":"uuid"}}]},"/v1/watches/{id}/current":{"get":{"description":"The latest version, or `{}` before the first successful read. `result_url` is `null` once the page body has expired.","summary":"Get the current version","tags":["Watches"],"operationId":"getWatchCurrent","responses":{"200":{"description":"The current version.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Version"}}}},"401":{"description":"No API key, or an unknown or revoked one. Sends `WWW-Authenticate: Bearer`.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Error"},{"properties":{"error":{"properties":{"code":{"type":"string","enum":["unauthorised"]}}}}}]}}}},"403":{"description":"The account is suspended or still under review, or the request is refused: `robots_required` (your account requires robots.txt checks and the request said `\"robots\": false`), `host_blocked` (the host asked not to be read, or Netscrape refuses it), `route_not_allowed`.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Error"},{"properties":{"error":{"properties":{"code":{"type":"string","enum":["tenant_suspended","account_pending_approval"]}}}}}]}}}},"404":{"description":"Not found, or another account's.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Error"},{"properties":{"error":{"properties":{"code":{"type":"string","enum":["not_found"]}}}}}]}}}},"429":{"description":"Too many requests, or too much work pending. Wait `Retry-After` seconds when it is sent, then retry; a refused request has no effect.","headers":{"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Error"},{"properties":{"error":{"properties":{"code":{"type":"string","enum":["rate_limited"]}}}}}]}}}},"503":{"description":"Briefly unavailable; retry shortly.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Error"},{"properties":{"error":{"properties":{"code":{"type":"string","enum":["database_unavailable"]}}}}}]}}}}}},"parameters":[{"in":"path","name":"id","description":"The watch's id.","required":true,"schema":{"type":"string","format":"uuid"}}]},"/v1/watches/{id}/deliver_next":{"parameters":[{"in":"path","name":"id","description":"The watch's id.","required":true,"schema":{"type":"string","format":"uuid"}}],"post":{"description":"Marks the next scheduled read as delivered, at no extra cost: it will end in `watch.checked`.","summary":"Deliver the next read","tags":["Watches"],"operationId":"deliverNextWatch","responses":{"200":{"description":"The watch.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Watch"}}}},"401":{"description":"No API key, or an unknown or revoked one. Sends `WWW-Authenticate: Bearer`.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Error"},{"properties":{"error":{"properties":{"code":{"type":"string","enum":["unauthorised"]}}}}}]}}}},"403":{"description":"The account is suspended or still under review, or the request is refused: `robots_required` (your account requires robots.txt checks and the request said `\"robots\": false`), `host_blocked` (the host asked not to be read, or Netscrape refuses it), `route_not_allowed`.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Error"},{"properties":{"error":{"properties":{"code":{"type":"string","enum":["tenant_suspended","account_pending_approval"]}}}}}]}}}},"404":{"description":"Not found, or another account's.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Error"},{"properties":{"error":{"properties":{"code":{"type":"string","enum":["not_found"]}}}}}]}}}},"409":{"description":"Conflicts with the current state.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Error"},{"properties":{"error":{"properties":{"code":{"type":"string","enum":["watch_retired"]}}}}}]}}}},"429":{"description":"Too many requests, or too much work pending. Wait `Retry-After` seconds when it is sent, then retry; a refused request has no effect.","headers":{"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Error"},{"properties":{"error":{"properties":{"code":{"type":"string","enum":["rate_limited"]}}}}}]}}}},"503":{"description":"Briefly unavailable; retry shortly.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Error"},{"properties":{"error":{"properties":{"code":{"type":"string","enum":["database_unavailable"]}}}}}]}}}}}}},"/v1/watches/{id}/pause":{"parameters":[{"in":"path","name":"id","description":"The watch's id.","required":true,"schema":{"type":"string","format":"uuid"}}],"post":{"summary":"Pause a watch","tags":["Watches"],"operationId":"pauseWatch","responses":{"200":{"description":"The watch.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Watch"}}}},"400":{"description":"The request is invalid.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Error"},{"properties":{"error":{"properties":{"code":{"type":"string","description":"These and other request validation codes.","examples":["invalid_watch","invalid_watch_request","unsupported_option","invalid_host"]}}}}}]}}}},"401":{"description":"No API key, or an unknown or revoked one. Sends `WWW-Authenticate: Bearer`.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Error"},{"properties":{"error":{"properties":{"code":{"type":"string","enum":["unauthorised"]}}}}}]}}}},"403":{"description":"The account is suspended or still under review, or the request is refused: `robots_required` (your account requires robots.txt checks and the request said `\"robots\": false`), `host_blocked` (the host asked not to be read, or Netscrape refuses it), `route_not_allowed`.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Error"},{"properties":{"error":{"properties":{"code":{"type":"string","enum":["tenant_suspended","account_pending_approval","route_not_allowed"]}}}}}]}}}},"404":{"description":"Not found, or another account's.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Error"},{"properties":{"error":{"properties":{"code":{"type":"string","enum":["not_found"]}}}}}]}}}},"409":{"description":"Conflicts with the current state.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Error"},{"properties":{"error":{"properties":{"code":{"type":"string","enum":["watch_retired"]}}}}}]}}}},"429":{"description":"Too many requests, or too much work pending. Wait `Retry-After` seconds when it is sent, then retry; a refused request has no effect.","headers":{"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Error"},{"properties":{"error":{"properties":{"code":{"type":"string","enum":["rate_limited"]}}}}}]}}}},"503":{"description":"Briefly unavailable; retry shortly.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Error"},{"properties":{"error":{"properties":{"code":{"type":"string","enum":["database_unavailable"]}}}}}]}}}}}}},"/v1/watches/{id}/resume":{"parameters":[{"in":"path","name":"id","description":"The watch's id.","required":true,"schema":{"type":"string","format":"uuid"}}],"post":{"description":"A resumed watch is checked again before it reads: billing, the plan's watch cap, blocked hosts and the account's robots.txt mode.","summary":"Resume a watch","tags":["Watches"],"operationId":"resumeWatch","responses":{"200":{"description":"The watch.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Watch"}}}},"400":{"description":"The request is invalid.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Error"},{"properties":{"error":{"properties":{"code":{"type":"string","description":"These and other request validation codes.","examples":["invalid_watch","invalid_watch_request","unsupported_option","invalid_host"]}}}}}]}}}},"401":{"description":"No API key, or an unknown or revoked one. Sends `WWW-Authenticate: Bearer`.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Error"},{"properties":{"error":{"properties":{"code":{"type":"string","enum":["unauthorised"]}}}}}]}}}},"402":{"description":"Billing refuses new work: no active subscription (`subscription_required`), 110% of the plan's credits used (`plan_limit_reached`), or the plan's active-watch cap (`watch_limit_reached`). Choose or change a plan in account Billing.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Error"},{"properties":{"error":{"properties":{"code":{"type":"string","enum":["subscription_required","plan_limit_reached","watch_limit_reached"]}}}}}]}}}},"403":{"description":"The account is suspended or under review, or the watch may no longer read its page: its host is blocked (`host_blocked`), the account now requires robots.txt checks (`robots_required`), or its route isn't allowed.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Error"},{"properties":{"error":{"properties":{"code":{"type":"string","enum":["tenant_suspended","account_pending_approval","route_not_allowed","robots_required","host_blocked"]}}}}}]}}}},"404":{"description":"Not found, or another account's.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Error"},{"properties":{"error":{"properties":{"code":{"type":"string","enum":["not_found"]}}}}}]}}}},"409":{"description":"Conflicts with the current state.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Error"},{"properties":{"error":{"properties":{"code":{"type":"string","enum":["watch_retired"]}}}}}]}}}},"422":{"description":"The request can't be processed as asked.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Error"},{"properties":{"error":{"properties":{"code":{"type":"string","enum":["tenant_watch_limit_reached"]}}}}}]}}}},"429":{"description":"Too many requests, or too much work pending. Wait `Retry-After` seconds when it is sent, then retry; a refused request has no effect.","headers":{"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Error"},{"properties":{"error":{"properties":{"code":{"type":"string","enum":["rate_limited"]}}}}}]}}}},"503":{"description":"Briefly unavailable; retry shortly.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Error"},{"properties":{"error":{"properties":{"code":{"type":"string","enum":["database_unavailable"]}}}}}]}}}}}}}},"servers":[{"description":"Netscrape","url":"https://netscrapehq.com"}],"tags":[{"name":"Jobs","description":"One-off reads and discovery runs, and their results."},{"name":"Watches","description":"Standing orders to keep a page fresh."},{"name":"Events","description":"The numbered feed of what happened to your watches."},{"name":"Usage","description":"Credits used in a billing window."}],"security":[{"bearer":[]}],"openapi":"3.1.0"}