{"openapi":"3.0.0","info":{"title":"TinyFish Browser API","version":"1.0.0","description":"Create remote browser sessions for direct Playwright/CDP control.","contact":{"name":"TinyFish Support","email":"support@tinyfish.ai"}},"servers":[{"url":"https://api.browser.tinyfish.ai"}],"components":{"securitySchemes":{"ApiKeyAuth":{"type":"apiKey","in":"header","name":"X-API-Key","description":"API key for authentication. Get your key from the API Keys page."}},"schemas":{"Monitor":{"oneOf":[{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string","nullable":true},"schedule_cron":{"type":"string","example":"0 9 * * *"},"status":{"type":"string","enum":["creating","active","paused","failed","cancelled"]},"last_error":{"type":"string","nullable":true},"webhook_url":{"type":"string","nullable":true},"created_at":{"type":"string","format":"date-time"},"updated_at":{"type":"string","format":"date-time"},"type":{"type":"string","enum":["fetch"]},"config":{"type":"object","properties":{"url":{"type":"string"},"format":{"type":"string","enum":["markdown","html","json"]},"links":{"type":"boolean"},"image_links":{"type":"boolean"},"ttl":{"type":"integer"},"include_selectors":{"type":"array","items":{"type":"string"}},"exclude_selectors":{"type":"array","items":{"type":"string"}}},"required":["url","format","links","image_links","ttl"]}},"required":["id","name","schedule_cron","status","last_error","webhook_url","created_at","updated_at","type","config"]},{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string","nullable":true},"schedule_cron":{"type":"string","example":"0 9 * * *"},"status":{"type":"string","enum":["creating","active","paused","failed","cancelled"]},"last_error":{"type":"string","nullable":true},"webhook_url":{"type":"string","nullable":true},"created_at":{"type":"string","format":"date-time"},"updated_at":{"type":"string","format":"date-time"},"type":{"type":"string","enum":["search"]},"config":{"type":"object","properties":{"query":{"type":"string"},"recency_minutes":{"type":"integer","nullable":true},"result_limit":{"type":"integer"}},"required":["query","recency_minutes","result_limit"]}},"required":["id","name","schedule_cron","status","last_error","webhook_url","created_at","updated_at","type","config"]}],"description":"A Page (fetch) or Topic (search) Monitor"},"MonitorRun":{"anyOf":[{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"url":{"type":"string","description":"Original requested URL","example":"https://example.com"},"final_url":{"type":"string","nullable":true,"description":"Final URL after redirects","example":"https://www.example.com"},"title":{"type":"string","nullable":true,"description":"Page title","example":"Example Domain"},"description":{"type":"string","nullable":true,"description":"Page meta description","example":"This domain is for use in illustrative examples."},"language":{"type":"string","nullable":true,"description":"Detected language code","example":"en"},"format":{"type":"string","enum":["markdown","html","json"],"description":"Format of the extracted text","example":"markdown"},"text":{"anyOf":[{"type":"string"},{},{"nullable":true}],"description":"Extracted content (string for markdown/html, object for json). Null if extraction failed."},"author":{"type":"string","nullable":true,"description":"Page author if available","example":"John Doe"},"published_date":{"type":"string","nullable":true,"description":"Published date if available","example":"2024-01-15"},"links":{"type":"array","items":{"type":"string"},"description":"Extracted links (only if links=true in request)"},"image_links":{"type":"array","items":{"type":"string"},"description":"Extracted image links (only if image_links=true in request)"},"iframe_links":{"type":"array","items":{"type":"string"},"description":"Extracted <iframe src> URLs, absolute and deduplicated (only if iframe_links=true in request)"},"page_metadata":{"type":"object","additionalProperties":{"nullable":true},"description":"Page-head metadata (only if page_metadata=true in request): canonical, favicon, robots, generator, viewport, keywords, plus nested og/twitter/article objects keyed by tag suffix and remaining named meta tags under `other`. Tags that legitimately repeat (og:image, og:locale:alternate, article:tag, article:author) collect into arrays. Keys are omitted when the page does not declare them; the whole field is omitted when the page exposes none.","example":{"canonical":"https://example.com","robots":"max-image-preview:large","og":{"title":"Example Domain","image":["https://example.com/og.png"]},"twitter":{"card":"summary_large_image"}}},"latency_ms":{"type":"number","nullable":true,"description":"Fetch latency for this URL in milliseconds if available from tf-fetch","example":1183.4},"not_modified":{"type":"boolean","description":"Present and `true` only when the origin returned 304 Not Modified for your `if_none_match`/`if_modified_since`; omitted otherwise.","example":true},"etag":{"type":"string","description":"The origin's current ETag validator, present only when the origin sent one and you set `include_etag_and_last_modified: true`; omitted otherwise. Store it and replay it as `if_none_match`.","example":"W/\"abc123\""},"last_modified":{"type":"string","description":"The origin's current Last-Modified validator, present only when the origin sent one and you set `include_etag_and_last_modified: true`; omitted otherwise. Store it and replay it as `if_modified_since`.","example":"Wed, 21 Oct 2015 07:28:00 GMT"},"unmatched_selectors":{"type":"array","items":{"type":"string"},"description":"Partial-miss report for `include_selectors`: the entries that matched no elements on this page, present only when some (but not all) entries matched — the result still carries the matched content. Omitted when every entry matched. A total miss is not a result at all: it is reported as a `selector_not_matched` entry in `errors[]`.","example":["aside.related"]}},"required":["url","final_url","title","description","language","format","text","author","published_date"]},"description":"Successfully fetched URLs"},"errors":{"type":"array","items":{"type":"object","properties":{"url":{"type":"string","description":"URL that failed to fetch","example":"https://invalid.example.com"},"error":{"type":"string","description":"Error code describing the failure. Possible values: `target_http_error` (target server returned a non-2xx HTTP status other than 404/410 — see `status` field), `page_not_found` (target returned HTTP 404 or 410), `target_unreachable` (connection refused, TLS failure, or network error), `timeout` (request timed out), `proxy_error` (proxy tunnel failure), `bot_blocked` (bot-challenge page detected), `empty_content` (page loaded but no extractable text), `login_required` (target redirected to a login or account wall; the page is not served to anonymous sessions, so retrying without credentials will not help), `content_too_large` (document exceeds the 20MB size limit for generic documents — not retried in the browser; PDF and CSV have their own 50MB budgets), `invalid_url` (malformed URL or SSRF-blocked address), `invalid_redirect_url` (redirect target rejected before fetch), `conditional_unsupported` (conditional requests are supported on the fast path only; this URL requires browser rendering), `selector_not_matched` (no elements matching any `include_selectors` entry remained after `exclude_selectors` was applied — a total miss; carries `unmatched_selectors` and `candidate_selectors` retry hints. A partial miss is NOT an error: it is reported via the result's `unmatched_selectors`), `selector_unsupported` (`include_selectors`/`exclude_selectors` sent for a URL that resolves to a direct PDF/CSV download — no HTML to scope).","example":"target_http_error"},"status":{"type":"integer","description":"Upstream HTTP status code. Only present when `error` is `target_http_error` or `page_not_found`.","example":404},"unmatched_selectors":{"type":"array","items":{"type":"string"},"description":"The `include_selectors` entries that matched no elements on the fetched page. Only present when `error` is `selector_not_matched`.","example":["article","#content"]},"candidate_selectors":{"type":"array","items":{"type":"string"},"description":"Cheap retry hints (max 10), only present when `error` is `selector_not_matched`: landmark tags present on the page (e.g. `main`, `article`, `nav`) plus `#id` selectors of content-heavy elements. Retry the fetch with `include_selectors` drawn from this list.","example":["main","nav","#content"]}},"required":["url","error"],"description":"A URL that failed to fetch"},"description":"URLs that failed to fetch"},"request_id":{"type":"string","description":"Request correlation ID, also returned as the X-Request-ID response header. Present only when errors is non-empty; include it when reporting failed URLs.","example":"8f9dba20-e37b-4749-a919-2269e28b4a2c"},"id":{"type":"string"},"is_baseline":{"type":"boolean","description":"True for the first run; nothing to compare."}},"required":["results","errors","id","is_baseline"]},{"type":"object","properties":{"id":{"type":"string"},"request_id":{"type":"string"},"query":{"type":"string"},"status_code":{"type":"integer"},"result_count":{"type":"integer"},"results":{"type":"array","items":{"type":"object","properties":{"position":{"type":"integer","description":"Position in search results","example":1},"site_name":{"type":"string","description":"Site name","example":"example.com"},"snippet":{"type":"string","description":"Text snippet from the result","example":"This is an example snippet..."},"title":{"type":"string","description":"Page title","example":"Example Page"},"url":{"type":"string","format":"uri","description":"Result URL","example":"https://example.com/page"},"thumbnail_url":{"type":"string","format":"uri","description":"Thumbnail image URL, present only when include_thumbnail=true and a thumbnail is available","example":"https://example.com/thumb.jpg"},"fetch":{"nullable":true,"description":"Fetched page content, present only when fetch param is supplied"},"fetch_error":{"nullable":true,"description":"Fetch error details when fetch was requested. Contains details on failure; may be null when fetching succeeds."},"date":{"type":"string","description":"Publication date, present for news and some web results"},"publisher":{"type":"string","description":"Publisher name, present for news results when domain_type=news"},"authors":{"type":"array","items":{"type":"string"},"description":"Author list, present for academic results when domain_type=research_paper"},"venue":{"type":"string","description":"Journal or conference name, present when domain_type=research_paper"},"year":{"type":"integer","description":"Publication year, present when domain_type=research_paper"},"cited_by_count":{"type":"integer","description":"Citation count, present when domain_type=research_paper"},"pdf_url":{"type":"string","description":"PDF URL, present when domain_type=research_paper and a PDF is available"}},"required":["position","site_name","snippet","title","url"],"description":"A single search result"}},"new_result_positions":{"type":"array","items":{"type":"integer"},"description":"Positions of results not seen in earlier runs"},"created_at":{"type":"string","format":"date-time"}},"required":["id","request_id","query","status_code","result_count","results","new_result_positions","created_at"]}],"description":"Fetch result for Page Monitors, Search for Topic"},"Dataset":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"spec":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":200},"description":{"type":"string","minLength":1},"columns":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","minLength":1},"label":{"type":"string","minLength":1,"maxLength":200},"type":{"type":"string","enum":["string","number","boolean","url","date"]},"is_primary_key":{"type":"boolean","description":"Exactly one column: the one that names the entity. Never a boolean."},"retrieval_hint":{"type":"string","maxLength":2000},"format":{"type":"string","maxLength":2000},"examples":{"type":"array","items":{"type":"string","minLength":1,"maxLength":200},"maxItems":3},"is_unique":{"type":"boolean","description":"A url or string column besides the key; at most three per spec."}},"required":["name","type","is_primary_key"]},"minItems":1,"description":"At most 10 columns for a new dataset, the key included."},"keep_when":{"type":"object","properties":{"column":{"type":"string","minLength":1}},"required":["column"],"description":"Keeps rows where this boolean column is true; must name a boolean column."}},"required":["name","description","columns"]},"status":{"type":"string","enum":["empty","populating","ready","failed","cancelled"],"description":"empty: no rows yet; populating: a run is adding rows; ready: rows stand; failed or cancelled: how the latest run ended"},"target_rows":{"type":"integer","description":"Rows a populate fills to"},"row_count":{"type":"integer"},"run":{"type":"object","nullable":true,"properties":{"id":{"type":"string","format":"uuid"},"status":{"type":"string","enum":["queued","running","done","cancelled","failed"]},"started_at":{"type":"string","format":"date-time"},"finished_at":{"type":"string","format":"date-time"},"error":{"type":"string","description":"Why the run failed"}},"required":["id","status","started_at"],"description":"The latest run, however it ended; null when the dataset never ran"},"created_at":{"type":"string","format":"date-time"}},"required":["id","name","spec","status","target_rows","row_count","run","created_at"],"description":"A dataset and the state of its rows"}},"parameters":{}},"paths":{"/":{"post":{"operationId":"createBrowserSession","summary":"Create a remote browser session","description":"Creates a remote tf-browser session and returns CDP connection details. Connect to the browser via CDP WebSocket at `cdp_url`.\n\nBy default the session egresses through the TinyFish residential proxy in the US, pinned to one exit IP for the life of the session. Use `proxy_config` to pick another country (`country_code`, any ISO 3166-1 alpha-2), bring your own proxy (`type: \"custom\"`), or disable the proxy (`enabled: false`).\n\nUse `timeout_seconds` to set a custom inactivity timeout (5–86400 seconds). If omitted, null, or greater than your plan maximum, the plan maximum is used (15 min on free tier, 60 min on paid).","security":[{"ApiKeyAuth":[]}],"requestBody":{"description":"Browser session parameters","required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":"string","description":"Target URL the browser session will navigate to on startup. Bare domains (e.g. tinyfish.ai) are automatically prefixed with https://. If omitted, the browser starts at about:blank.","example":"https://www.tinyfish.ai"},"timeout_seconds":{"type":"integer","nullable":true,"minimum":5,"maximum":86400,"description":"Inactivity timeout in seconds (5–86400). If omitted, null, or greater than your plan maximum, the plan maximum is used.","example":300},"proxy_config":{"type":"object","properties":{"enabled":{"type":"boolean","default":true,"description":"Route the session through a proxy. false means direct egress.","example":true},"type":{"type":"string","enum":["tinyfish","custom"],"default":"tinyfish","description":"\"tinyfish\" uses the TinyFish residential proxy, pinned to one exit IP per session. \"custom\" routes through your own proxy — requires url.","example":"tinyfish"},"country_code":{"type":"string","description":"Exit country for the TinyFish proxy (ISO 3166-1 alpha-2). Defaults to US.","example":"US"},"url":{"type":"string","format":"uri","description":"Your HTTP or HTTPS proxy server URL. Required when type is \"custom\".","example":"http://proxy.example.com:8080"},"username":{"type":"string","description":"Username for the custom proxy."},"password":{"type":"string","description":"Password for the custom proxy."}},"additionalProperties":false,"description":"Proxy for the session. Omit to use the TinyFish proxy in the US."}},"description":"Browser session creation parameters"}}}},"responses":{"201":{"description":"Browser session created successfully.","content":{"application/json":{"schema":{"type":"object","properties":{"session_id":{"type":"string","minLength":1,"description":"Unique identifier for this browser session.","example":"br-a1b2c3d4-e5f6-7890-abcd-ef1234567890"},"cdp_url":{"type":"string","format":"uri","description":"WebSocket URL for browser connection. Pass this to Playwright's connect_over_cdp or any WebSocket-based CDP client.","example":"wss://browser.example.tinyfish.io/session/cdp"},"base_url":{"type":"string","format":"uri","description":"HTTPS base URL for the session. Use to access session endpoints such as /pages.","example":"https://browser.example.tinyfish.io/session"}},"required":["session_id","cdp_url","base_url"],"description":"Browser session created successfully. Connect to the browser via cdp_url."},"example":{"session_id":"tf-a1b2c3d4-e5f6-7890-abcd-ef1234567890","cdp_url":"wss://tetra-abc123.cluster.unikraft.cloud/cdp","base_url":"https://tetra-abc123.cluster.unikraft.cloud"}}}},"401":{"description":"Unauthorized - Invalid or missing API key","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["MISSING_API_KEY","INVALID_API_KEY","INVALID_INPUT","RATE_LIMIT_EXCEEDED","DAILY_LIMIT_EXCEEDED","INTERNAL_ERROR","RETRY_REQUIRED","UNAUTHORIZED","VAULT_RECONNECT_REQUIRED","FORBIDDEN","NOT_FOUND","FEATURE_NOT_AVAILABLE","SERVICE_BUSY","TIMEOUT","INSUFFICIENT_CREDITS","FREE_ALLOWANCE_EXHAUSTED","CONTENT_POLICY_VIOLATION","MAX_STEPS_EXCEEDED","SITE_BLOCKED","TASK_FAILED","CANCELLED"],"description":"Machine-readable error code","example":"INVALID_INPUT"},"message":{"type":"string","description":"Human-readable error message","example":"Field \"url\" is required and must be a string"},"details":{"nullable":true,"description":"Additional error details (validation errors, etc.)"}},"required":["code","message"]},"request_id":{"type":"string","description":"Request correlation ID, also returned as the X-Request-ID response header. Include it when reporting issues.","example":"8f9dba20-e37b-4749-a919-2269e28b4a2c"}},"required":["error"],"description":"Standard error response format"}}}},"402":{"description":"Forbidden - Insufficient credits or no active subscription","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["MISSING_API_KEY","INVALID_API_KEY","INVALID_INPUT","RATE_LIMIT_EXCEEDED","DAILY_LIMIT_EXCEEDED","INTERNAL_ERROR","RETRY_REQUIRED","UNAUTHORIZED","VAULT_RECONNECT_REQUIRED","FORBIDDEN","NOT_FOUND","FEATURE_NOT_AVAILABLE","SERVICE_BUSY","TIMEOUT","INSUFFICIENT_CREDITS","FREE_ALLOWANCE_EXHAUSTED","CONTENT_POLICY_VIOLATION","MAX_STEPS_EXCEEDED","SITE_BLOCKED","TASK_FAILED","CANCELLED"],"description":"Machine-readable error code","example":"INVALID_INPUT"},"message":{"type":"string","description":"Human-readable error message","example":"Field \"url\" is required and must be a string"},"details":{"nullable":true,"description":"Additional error details (validation errors, etc.)"}},"required":["code","message"]},"request_id":{"type":"string","description":"Request correlation ID, also returned as the X-Request-ID response header. Include it when reporting issues.","example":"8f9dba20-e37b-4749-a919-2269e28b4a2c"}},"required":["error"],"description":"Standard error response format"}}}},"404":{"description":"Browser API is not available","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["MISSING_API_KEY","INVALID_API_KEY","INVALID_INPUT","RATE_LIMIT_EXCEEDED","DAILY_LIMIT_EXCEEDED","INTERNAL_ERROR","RETRY_REQUIRED","UNAUTHORIZED","VAULT_RECONNECT_REQUIRED","FORBIDDEN","NOT_FOUND","FEATURE_NOT_AVAILABLE","SERVICE_BUSY","TIMEOUT","INSUFFICIENT_CREDITS","FREE_ALLOWANCE_EXHAUSTED","CONTENT_POLICY_VIOLATION","MAX_STEPS_EXCEEDED","SITE_BLOCKED","TASK_FAILED","CANCELLED"],"description":"Machine-readable error code","example":"INVALID_INPUT"},"message":{"type":"string","description":"Human-readable error message","example":"Field \"url\" is required and must be a string"},"details":{"nullable":true,"description":"Additional error details (validation errors, etc.)"}},"required":["code","message"]},"request_id":{"type":"string","description":"Request correlation ID, also returned as the X-Request-ID response header. Include it when reporting issues.","example":"8f9dba20-e37b-4749-a919-2269e28b4a2c"}},"required":["error"],"description":"Standard error response format"}}}},"409":{"description":"Upstream conflict creating the session — retry shortly (RETRY_REQUIRED)","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["MISSING_API_KEY","INVALID_API_KEY","INVALID_INPUT","RATE_LIMIT_EXCEEDED","DAILY_LIMIT_EXCEEDED","INTERNAL_ERROR","RETRY_REQUIRED","UNAUTHORIZED","VAULT_RECONNECT_REQUIRED","FORBIDDEN","NOT_FOUND","FEATURE_NOT_AVAILABLE","SERVICE_BUSY","TIMEOUT","INSUFFICIENT_CREDITS","FREE_ALLOWANCE_EXHAUSTED","CONTENT_POLICY_VIOLATION","MAX_STEPS_EXCEEDED","SITE_BLOCKED","TASK_FAILED","CANCELLED"],"description":"Machine-readable error code","example":"INVALID_INPUT"},"message":{"type":"string","description":"Human-readable error message","example":"Field \"url\" is required and must be a string"},"details":{"nullable":true,"description":"Additional error details (validation errors, etc.)"}},"required":["code","message"]},"request_id":{"type":"string","description":"Request correlation ID, also returned as the X-Request-ID response header. Include it when reporting issues.","example":"8f9dba20-e37b-4749-a919-2269e28b4a2c"}},"required":["error"],"description":"Standard error response format"}}}},"429":{"description":"Rate limited by browser infrastructure (RATE_LIMIT_EXCEEDED) — honor Retry-After","headers":{"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["MISSING_API_KEY","INVALID_API_KEY","INVALID_INPUT","RATE_LIMIT_EXCEEDED","DAILY_LIMIT_EXCEEDED","INTERNAL_ERROR","RETRY_REQUIRED","UNAUTHORIZED","VAULT_RECONNECT_REQUIRED","FORBIDDEN","NOT_FOUND","FEATURE_NOT_AVAILABLE","SERVICE_BUSY","TIMEOUT","INSUFFICIENT_CREDITS","FREE_ALLOWANCE_EXHAUSTED","CONTENT_POLICY_VIOLATION","MAX_STEPS_EXCEEDED","SITE_BLOCKED","TASK_FAILED","CANCELLED"],"description":"Machine-readable error code","example":"INVALID_INPUT"},"message":{"type":"string","description":"Human-readable error message","example":"Field \"url\" is required and must be a string"},"details":{"nullable":true,"description":"Additional error details (validation errors, etc.)"}},"required":["code","message"]},"request_id":{"type":"string","description":"Request correlation ID, also returned as the X-Request-ID response header. Include it when reporting issues.","example":"8f9dba20-e37b-4749-a919-2269e28b4a2c"}},"required":["error"],"description":"Standard error response format"}}}},"500":{"description":"Internal server error, including non-retryable upstream failures","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["MISSING_API_KEY","INVALID_API_KEY","INVALID_INPUT","RATE_LIMIT_EXCEEDED","DAILY_LIMIT_EXCEEDED","INTERNAL_ERROR","RETRY_REQUIRED","UNAUTHORIZED","VAULT_RECONNECT_REQUIRED","FORBIDDEN","NOT_FOUND","FEATURE_NOT_AVAILABLE","SERVICE_BUSY","TIMEOUT","INSUFFICIENT_CREDITS","FREE_ALLOWANCE_EXHAUSTED","CONTENT_POLICY_VIOLATION","MAX_STEPS_EXCEEDED","SITE_BLOCKED","TASK_FAILED","CANCELLED"],"description":"Machine-readable error code","example":"INVALID_INPUT"},"message":{"type":"string","description":"Human-readable error message","example":"Field \"url\" is required and must be a string"},"details":{"nullable":true,"description":"Additional error details (validation errors, etc.)"}},"required":["code","message"]},"request_id":{"type":"string","description":"Request correlation ID, also returned as the X-Request-ID response header. Include it when reporting issues.","example":"8f9dba20-e37b-4749-a919-2269e28b4a2c"}},"required":["error"],"description":"Standard error response format"}}}},"503":{"description":"Browser infrastructure temporarily unavailable (SERVICE_BUSY) — retryable, honor Retry-After; error.details.upstream_status carries the observed upstream status","headers":{"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["MISSING_API_KEY","INVALID_API_KEY","INVALID_INPUT","RATE_LIMIT_EXCEEDED","DAILY_LIMIT_EXCEEDED","INTERNAL_ERROR","RETRY_REQUIRED","UNAUTHORIZED","VAULT_RECONNECT_REQUIRED","FORBIDDEN","NOT_FOUND","FEATURE_NOT_AVAILABLE","SERVICE_BUSY","TIMEOUT","INSUFFICIENT_CREDITS","FREE_ALLOWANCE_EXHAUSTED","CONTENT_POLICY_VIOLATION","MAX_STEPS_EXCEEDED","SITE_BLOCKED","TASK_FAILED","CANCELLED"],"description":"Machine-readable error code","example":"INVALID_INPUT"},"message":{"type":"string","description":"Human-readable error message","example":"Field \"url\" is required and must be a string"},"details":{"nullable":true,"description":"Additional error details (validation errors, etc.)"}},"required":["code","message"]},"request_id":{"type":"string","description":"Request correlation ID, also returned as the X-Request-ID response header. Include it when reporting issues.","example":"8f9dba20-e37b-4749-a919-2269e28b4a2c"}},"required":["error"],"description":"Standard error response format"}}}},"504":{"description":"Browser infrastructure timed out creating the session (TIMEOUT)","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["MISSING_API_KEY","INVALID_API_KEY","INVALID_INPUT","RATE_LIMIT_EXCEEDED","DAILY_LIMIT_EXCEEDED","INTERNAL_ERROR","RETRY_REQUIRED","UNAUTHORIZED","VAULT_RECONNECT_REQUIRED","FORBIDDEN","NOT_FOUND","FEATURE_NOT_AVAILABLE","SERVICE_BUSY","TIMEOUT","INSUFFICIENT_CREDITS","FREE_ALLOWANCE_EXHAUSTED","CONTENT_POLICY_VIOLATION","MAX_STEPS_EXCEEDED","SITE_BLOCKED","TASK_FAILED","CANCELLED"],"description":"Machine-readable error code","example":"INVALID_INPUT"},"message":{"type":"string","description":"Human-readable error message","example":"Field \"url\" is required and must be a string"},"details":{"nullable":true,"description":"Additional error details (validation errors, etc.)"}},"required":["code","message"]},"request_id":{"type":"string","description":"Request correlation ID, also returned as the X-Request-ID response header. Include it when reporting issues.","example":"8f9dba20-e37b-4749-a919-2269e28b4a2c"}},"required":["error"],"description":"Standard error response format"}}}}}}},"/usage":{"get":{"operationId":"listBrowserUsage","summary":"List browser session usage","description":"List Tetra browser session usage for the authenticated user. Returns session telemetry including duration, data transfer, mode, and status. A workflow key reads only records its team's workflow keys made, never its creator's own.","security":[{"ApiKeyAuth":[]}],"parameters":[{"schema":{"type":"string"},"required":false,"name":"session_id","in":"query"},{"schema":{"type":"string","format":"date-time"},"required":false,"name":"start_after","in":"query"},{"schema":{"type":"string","format":"date-time"},"required":false,"name":"end_before","in":"query"},{"schema":{"type":"string","enum":["running","ended"]},"required":false,"name":"status","in":"query"},{"schema":{"type":"integer","minimum":1,"maximum":1000,"default":100},"required":false,"name":"limit","in":"query"},{"schema":{"type":"integer","minimum":1,"default":1},"required":false,"name":"page","in":"query"}],"responses":{"200":{"description":"Browser usage retrieved successfully.","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"session_id":{"type":"string"},"user_id":{"type":"string"},"sub_user_id":{"type":"string","nullable":true},"mode":{"type":"string","enum":["light","stealth","tf-browser"]},"start_time":{"type":"string","format":"date-time"},"end_time":{"type":"string","nullable":true,"format":"date-time"},"duration_ms":{"type":"integer","nullable":true},"proxy_trg_rx_bytes":{"type":"integer","nullable":true},"proxy_trg_tx_bytes":{"type":"integer","nullable":true},"status":{"type":"string","enum":["running","ended","created"]},"created_at":{"type":"string","format":"date-time"},"updated_at":{"type":"string","format":"date-time"}},"required":["session_id","user_id","sub_user_id","mode","start_time","end_time","duration_ms","proxy_trg_rx_bytes","proxy_trg_tx_bytes","status","created_at","updated_at"],"description":"A single browser usage record"}},"total":{"type":"integer"},"limit":{"type":"integer"},"page":{"type":"integer"},"total_pages":{"type":"integer"},"has_more":{"type":"boolean"}},"required":["items","total","limit","page","total_pages","has_more"],"description":"Paginated browser usage response"},"example":{"items":[{"session_id":"tf-a1b2c3d4-e5f6-7890-abcd-ef1234567890","user_id":"cus_abc123","sub_user_id":"user_abc123","mode":"tf-browser","start_time":"2026-03-18T16:18:35Z","end_time":"2026-03-18T16:28:36Z","duration_ms":600543,"proxy_trg_rx_bytes":38006,"proxy_trg_tx_bytes":952337,"status":"ended","created_at":"2026-03-18T16:18:12Z","updated_at":"2026-03-18T16:28:36Z"}],"total":1,"limit":100,"page":1,"total_pages":1,"has_more":false}}}},"400":{"description":"Invalid query parameters","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["MISSING_API_KEY","INVALID_API_KEY","INVALID_INPUT","RATE_LIMIT_EXCEEDED","DAILY_LIMIT_EXCEEDED","INTERNAL_ERROR","RETRY_REQUIRED","UNAUTHORIZED","VAULT_RECONNECT_REQUIRED","FORBIDDEN","NOT_FOUND","FEATURE_NOT_AVAILABLE","SERVICE_BUSY","TIMEOUT","INSUFFICIENT_CREDITS","FREE_ALLOWANCE_EXHAUSTED","CONTENT_POLICY_VIOLATION","MAX_STEPS_EXCEEDED","SITE_BLOCKED","TASK_FAILED","CANCELLED"],"description":"Machine-readable error code","example":"INVALID_INPUT"},"message":{"type":"string","description":"Human-readable error message","example":"Field \"url\" is required and must be a string"},"details":{"nullable":true,"description":"Additional error details (validation errors, etc.)"}},"required":["code","message"]},"request_id":{"type":"string","description":"Request correlation ID, also returned as the X-Request-ID response header. Include it when reporting issues.","example":"8f9dba20-e37b-4749-a919-2269e28b4a2c"}},"required":["error"],"description":"Standard error response format"}}}},"401":{"description":"Unauthorized - Invalid or missing API key","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["MISSING_API_KEY","INVALID_API_KEY","INVALID_INPUT","RATE_LIMIT_EXCEEDED","DAILY_LIMIT_EXCEEDED","INTERNAL_ERROR","RETRY_REQUIRED","UNAUTHORIZED","VAULT_RECONNECT_REQUIRED","FORBIDDEN","NOT_FOUND","FEATURE_NOT_AVAILABLE","SERVICE_BUSY","TIMEOUT","INSUFFICIENT_CREDITS","FREE_ALLOWANCE_EXHAUSTED","CONTENT_POLICY_VIOLATION","MAX_STEPS_EXCEEDED","SITE_BLOCKED","TASK_FAILED","CANCELLED"],"description":"Machine-readable error code","example":"INVALID_INPUT"},"message":{"type":"string","description":"Human-readable error message","example":"Field \"url\" is required and must be a string"},"details":{"nullable":true,"description":"Additional error details (validation errors, etc.)"}},"required":["code","message"]},"request_id":{"type":"string","description":"Request correlation ID, also returned as the X-Request-ID response header. Include it when reporting issues.","example":"8f9dba20-e37b-4749-a919-2269e28b4a2c"}},"required":["error"],"description":"Standard error response format"}}}},"404":{"description":"Browser API is not available","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["MISSING_API_KEY","INVALID_API_KEY","INVALID_INPUT","RATE_LIMIT_EXCEEDED","DAILY_LIMIT_EXCEEDED","INTERNAL_ERROR","RETRY_REQUIRED","UNAUTHORIZED","VAULT_RECONNECT_REQUIRED","FORBIDDEN","NOT_FOUND","FEATURE_NOT_AVAILABLE","SERVICE_BUSY","TIMEOUT","INSUFFICIENT_CREDITS","FREE_ALLOWANCE_EXHAUSTED","CONTENT_POLICY_VIOLATION","MAX_STEPS_EXCEEDED","SITE_BLOCKED","TASK_FAILED","CANCELLED"],"description":"Machine-readable error code","example":"INVALID_INPUT"},"message":{"type":"string","description":"Human-readable error message","example":"Field \"url\" is required and must be a string"},"details":{"nullable":true,"description":"Additional error details (validation errors, etc.)"}},"required":["code","message"]},"request_id":{"type":"string","description":"Request correlation ID, also returned as the X-Request-ID response header. Include it when reporting issues.","example":"8f9dba20-e37b-4749-a919-2269e28b4a2c"}},"required":["error"],"description":"Standard error response format"}}}},"409":{"description":"Upstream conflict fetching usage (RETRY_REQUIRED) — retry shortly","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["MISSING_API_KEY","INVALID_API_KEY","INVALID_INPUT","RATE_LIMIT_EXCEEDED","DAILY_LIMIT_EXCEEDED","INTERNAL_ERROR","RETRY_REQUIRED","UNAUTHORIZED","VAULT_RECONNECT_REQUIRED","FORBIDDEN","NOT_FOUND","FEATURE_NOT_AVAILABLE","SERVICE_BUSY","TIMEOUT","INSUFFICIENT_CREDITS","FREE_ALLOWANCE_EXHAUSTED","CONTENT_POLICY_VIOLATION","MAX_STEPS_EXCEEDED","SITE_BLOCKED","TASK_FAILED","CANCELLED"],"description":"Machine-readable error code","example":"INVALID_INPUT"},"message":{"type":"string","description":"Human-readable error message","example":"Field \"url\" is required and must be a string"},"details":{"nullable":true,"description":"Additional error details (validation errors, etc.)"}},"required":["code","message"]},"request_id":{"type":"string","description":"Request correlation ID, also returned as the X-Request-ID response header. Include it when reporting issues.","example":"8f9dba20-e37b-4749-a919-2269e28b4a2c"}},"required":["error"],"description":"Standard error response format"}}}},"429":{"description":"Rate limited by browser infrastructure (RATE_LIMIT_EXCEEDED) — honor Retry-After","headers":{"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["MISSING_API_KEY","INVALID_API_KEY","INVALID_INPUT","RATE_LIMIT_EXCEEDED","DAILY_LIMIT_EXCEEDED","INTERNAL_ERROR","RETRY_REQUIRED","UNAUTHORIZED","VAULT_RECONNECT_REQUIRED","FORBIDDEN","NOT_FOUND","FEATURE_NOT_AVAILABLE","SERVICE_BUSY","TIMEOUT","INSUFFICIENT_CREDITS","FREE_ALLOWANCE_EXHAUSTED","CONTENT_POLICY_VIOLATION","MAX_STEPS_EXCEEDED","SITE_BLOCKED","TASK_FAILED","CANCELLED"],"description":"Machine-readable error code","example":"INVALID_INPUT"},"message":{"type":"string","description":"Human-readable error message","example":"Field \"url\" is required and must be a string"},"details":{"nullable":true,"description":"Additional error details (validation errors, etc.)"}},"required":["code","message"]},"request_id":{"type":"string","description":"Request correlation ID, also returned as the X-Request-ID response header. Include it when reporting issues.","example":"8f9dba20-e37b-4749-a919-2269e28b4a2c"}},"required":["error"],"description":"Standard error response format"}}}},"500":{"description":"Internal server error, including non-retryable upstream failures","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["MISSING_API_KEY","INVALID_API_KEY","INVALID_INPUT","RATE_LIMIT_EXCEEDED","DAILY_LIMIT_EXCEEDED","INTERNAL_ERROR","RETRY_REQUIRED","UNAUTHORIZED","VAULT_RECONNECT_REQUIRED","FORBIDDEN","NOT_FOUND","FEATURE_NOT_AVAILABLE","SERVICE_BUSY","TIMEOUT","INSUFFICIENT_CREDITS","FREE_ALLOWANCE_EXHAUSTED","CONTENT_POLICY_VIOLATION","MAX_STEPS_EXCEEDED","SITE_BLOCKED","TASK_FAILED","CANCELLED"],"description":"Machine-readable error code","example":"INVALID_INPUT"},"message":{"type":"string","description":"Human-readable error message","example":"Field \"url\" is required and must be a string"},"details":{"nullable":true,"description":"Additional error details (validation errors, etc.)"}},"required":["code","message"]},"request_id":{"type":"string","description":"Request correlation ID, also returned as the X-Request-ID response header. Include it when reporting issues.","example":"8f9dba20-e37b-4749-a919-2269e28b4a2c"}},"required":["error"],"description":"Standard error response format"}}}},"503":{"description":"Browser infrastructure temporarily unavailable (SERVICE_BUSY) — retryable, honor Retry-After","headers":{"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["MISSING_API_KEY","INVALID_API_KEY","INVALID_INPUT","RATE_LIMIT_EXCEEDED","DAILY_LIMIT_EXCEEDED","INTERNAL_ERROR","RETRY_REQUIRED","UNAUTHORIZED","VAULT_RECONNECT_REQUIRED","FORBIDDEN","NOT_FOUND","FEATURE_NOT_AVAILABLE","SERVICE_BUSY","TIMEOUT","INSUFFICIENT_CREDITS","FREE_ALLOWANCE_EXHAUSTED","CONTENT_POLICY_VIOLATION","MAX_STEPS_EXCEEDED","SITE_BLOCKED","TASK_FAILED","CANCELLED"],"description":"Machine-readable error code","example":"INVALID_INPUT"},"message":{"type":"string","description":"Human-readable error message","example":"Field \"url\" is required and must be a string"},"details":{"nullable":true,"description":"Additional error details (validation errors, etc.)"}},"required":["code","message"]},"request_id":{"type":"string","description":"Request correlation ID, also returned as the X-Request-ID response header. Include it when reporting issues.","example":"8f9dba20-e37b-4749-a919-2269e28b4a2c"}},"required":["error"],"description":"Standard error response format"}}}},"504":{"description":"Browser infrastructure timed out fetching usage (TIMEOUT) — retry","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["MISSING_API_KEY","INVALID_API_KEY","INVALID_INPUT","RATE_LIMIT_EXCEEDED","DAILY_LIMIT_EXCEEDED","INTERNAL_ERROR","RETRY_REQUIRED","UNAUTHORIZED","VAULT_RECONNECT_REQUIRED","FORBIDDEN","NOT_FOUND","FEATURE_NOT_AVAILABLE","SERVICE_BUSY","TIMEOUT","INSUFFICIENT_CREDITS","FREE_ALLOWANCE_EXHAUSTED","CONTENT_POLICY_VIOLATION","MAX_STEPS_EXCEEDED","SITE_BLOCKED","TASK_FAILED","CANCELLED"],"description":"Machine-readable error code","example":"INVALID_INPUT"},"message":{"type":"string","description":"Human-readable error message","example":"Field \"url\" is required and must be a string"},"details":{"nullable":true,"description":"Additional error details (validation errors, etc.)"}},"required":["code","message"]},"request_id":{"type":"string","description":"Request correlation ID, also returned as the X-Request-ID response header. Include it when reporting issues.","example":"8f9dba20-e37b-4749-a919-2269e28b4a2c"}},"required":["error"],"description":"Standard error response format"}}}}}}},"/{sessionId}":{"delete":{"operationId":"deleteBrowserSession","summary":"Terminate a browser session","description":"Terminates a remote browser session immediately. If the session is already ended this call is idempotent and still returns 204. A workflow key reads only records its team's workflow keys made, never its creator's own.","security":[{"ApiKeyAuth":[]}],"parameters":[{"schema":{"type":"string","minLength":1,"description":"Session ID to terminate."},"required":true,"description":"Session ID to terminate.","name":"sessionId","in":"path"}],"responses":{"204":{"description":"Session terminated (or already ended)."},"400":{"description":"Invalid session ID","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["MISSING_API_KEY","INVALID_API_KEY","INVALID_INPUT","RATE_LIMIT_EXCEEDED","DAILY_LIMIT_EXCEEDED","INTERNAL_ERROR","RETRY_REQUIRED","UNAUTHORIZED","VAULT_RECONNECT_REQUIRED","FORBIDDEN","NOT_FOUND","FEATURE_NOT_AVAILABLE","SERVICE_BUSY","TIMEOUT","INSUFFICIENT_CREDITS","FREE_ALLOWANCE_EXHAUSTED","CONTENT_POLICY_VIOLATION","MAX_STEPS_EXCEEDED","SITE_BLOCKED","TASK_FAILED","CANCELLED"],"description":"Machine-readable error code","example":"INVALID_INPUT"},"message":{"type":"string","description":"Human-readable error message","example":"Field \"url\" is required and must be a string"},"details":{"nullable":true,"description":"Additional error details (validation errors, etc.)"}},"required":["code","message"]},"request_id":{"type":"string","description":"Request correlation ID, also returned as the X-Request-ID response header. Include it when reporting issues.","example":"8f9dba20-e37b-4749-a919-2269e28b4a2c"}},"required":["error"],"description":"Standard error response format"}}}},"401":{"description":"Unauthorized - Invalid or missing API key","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["MISSING_API_KEY","INVALID_API_KEY","INVALID_INPUT","RATE_LIMIT_EXCEEDED","DAILY_LIMIT_EXCEEDED","INTERNAL_ERROR","RETRY_REQUIRED","UNAUTHORIZED","VAULT_RECONNECT_REQUIRED","FORBIDDEN","NOT_FOUND","FEATURE_NOT_AVAILABLE","SERVICE_BUSY","TIMEOUT","INSUFFICIENT_CREDITS","FREE_ALLOWANCE_EXHAUSTED","CONTENT_POLICY_VIOLATION","MAX_STEPS_EXCEEDED","SITE_BLOCKED","TASK_FAILED","CANCELLED"],"description":"Machine-readable error code","example":"INVALID_INPUT"},"message":{"type":"string","description":"Human-readable error message","example":"Field \"url\" is required and must be a string"},"details":{"nullable":true,"description":"Additional error details (validation errors, etc.)"}},"required":["code","message"]},"request_id":{"type":"string","description":"Request correlation ID, also returned as the X-Request-ID response header. Include it when reporting issues.","example":"8f9dba20-e37b-4749-a919-2269e28b4a2c"}},"required":["error"],"description":"Standard error response format"}}}},"404":{"description":"Session not found or does not belong to the authenticated user","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["MISSING_API_KEY","INVALID_API_KEY","INVALID_INPUT","RATE_LIMIT_EXCEEDED","DAILY_LIMIT_EXCEEDED","INTERNAL_ERROR","RETRY_REQUIRED","UNAUTHORIZED","VAULT_RECONNECT_REQUIRED","FORBIDDEN","NOT_FOUND","FEATURE_NOT_AVAILABLE","SERVICE_BUSY","TIMEOUT","INSUFFICIENT_CREDITS","FREE_ALLOWANCE_EXHAUSTED","CONTENT_POLICY_VIOLATION","MAX_STEPS_EXCEEDED","SITE_BLOCKED","TASK_FAILED","CANCELLED"],"description":"Machine-readable error code","example":"INVALID_INPUT"},"message":{"type":"string","description":"Human-readable error message","example":"Field \"url\" is required and must be a string"},"details":{"nullable":true,"description":"Additional error details (validation errors, etc.)"}},"required":["code","message"]},"request_id":{"type":"string","description":"Request correlation ID, also returned as the X-Request-ID response header. Include it when reporting issues.","example":"8f9dba20-e37b-4749-a919-2269e28b4a2c"}},"required":["error"],"description":"Standard error response format"}}}},"409":{"description":"Conflicting operation on the session (RETRY_REQUIRED) — termination not confirmed, retry the delete shortly","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["MISSING_API_KEY","INVALID_API_KEY","INVALID_INPUT","RATE_LIMIT_EXCEEDED","DAILY_LIMIT_EXCEEDED","INTERNAL_ERROR","RETRY_REQUIRED","UNAUTHORIZED","VAULT_RECONNECT_REQUIRED","FORBIDDEN","NOT_FOUND","FEATURE_NOT_AVAILABLE","SERVICE_BUSY","TIMEOUT","INSUFFICIENT_CREDITS","FREE_ALLOWANCE_EXHAUSTED","CONTENT_POLICY_VIOLATION","MAX_STEPS_EXCEEDED","SITE_BLOCKED","TASK_FAILED","CANCELLED"],"description":"Machine-readable error code","example":"INVALID_INPUT"},"message":{"type":"string","description":"Human-readable error message","example":"Field \"url\" is required and must be a string"},"details":{"nullable":true,"description":"Additional error details (validation errors, etc.)"}},"required":["code","message"]},"request_id":{"type":"string","description":"Request correlation ID, also returned as the X-Request-ID response header. Include it when reporting issues.","example":"8f9dba20-e37b-4749-a919-2269e28b4a2c"}},"required":["error"],"description":"Standard error response format"}}}},"429":{"description":"Rate limited by browser infrastructure (RATE_LIMIT_EXCEEDED) — honor Retry-After","headers":{"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["MISSING_API_KEY","INVALID_API_KEY","INVALID_INPUT","RATE_LIMIT_EXCEEDED","DAILY_LIMIT_EXCEEDED","INTERNAL_ERROR","RETRY_REQUIRED","UNAUTHORIZED","VAULT_RECONNECT_REQUIRED","FORBIDDEN","NOT_FOUND","FEATURE_NOT_AVAILABLE","SERVICE_BUSY","TIMEOUT","INSUFFICIENT_CREDITS","FREE_ALLOWANCE_EXHAUSTED","CONTENT_POLICY_VIOLATION","MAX_STEPS_EXCEEDED","SITE_BLOCKED","TASK_FAILED","CANCELLED"],"description":"Machine-readable error code","example":"INVALID_INPUT"},"message":{"type":"string","description":"Human-readable error message","example":"Field \"url\" is required and must be a string"},"details":{"nullable":true,"description":"Additional error details (validation errors, etc.)"}},"required":["code","message"]},"request_id":{"type":"string","description":"Request correlation ID, also returned as the X-Request-ID response header. Include it when reporting issues.","example":"8f9dba20-e37b-4749-a919-2269e28b4a2c"}},"required":["error"],"description":"Standard error response format"}}}},"500":{"description":"Internal server error, including non-retryable upstream failures; the session may still be running — retry the delete","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["MISSING_API_KEY","INVALID_API_KEY","INVALID_INPUT","RATE_LIMIT_EXCEEDED","DAILY_LIMIT_EXCEEDED","INTERNAL_ERROR","RETRY_REQUIRED","UNAUTHORIZED","VAULT_RECONNECT_REQUIRED","FORBIDDEN","NOT_FOUND","FEATURE_NOT_AVAILABLE","SERVICE_BUSY","TIMEOUT","INSUFFICIENT_CREDITS","FREE_ALLOWANCE_EXHAUSTED","CONTENT_POLICY_VIOLATION","MAX_STEPS_EXCEEDED","SITE_BLOCKED","TASK_FAILED","CANCELLED"],"description":"Machine-readable error code","example":"INVALID_INPUT"},"message":{"type":"string","description":"Human-readable error message","example":"Field \"url\" is required and must be a string"},"details":{"nullable":true,"description":"Additional error details (validation errors, etc.)"}},"required":["code","message"]},"request_id":{"type":"string","description":"Request correlation ID, also returned as the X-Request-ID response header. Include it when reporting issues.","example":"8f9dba20-e37b-4749-a919-2269e28b4a2c"}},"required":["error"],"description":"Standard error response format"}}}},"503":{"description":"Browser infrastructure temporarily unavailable (SERVICE_BUSY) — termination not confirmed, retry; honor Retry-After","headers":{"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["MISSING_API_KEY","INVALID_API_KEY","INVALID_INPUT","RATE_LIMIT_EXCEEDED","DAILY_LIMIT_EXCEEDED","INTERNAL_ERROR","RETRY_REQUIRED","UNAUTHORIZED","VAULT_RECONNECT_REQUIRED","FORBIDDEN","NOT_FOUND","FEATURE_NOT_AVAILABLE","SERVICE_BUSY","TIMEOUT","INSUFFICIENT_CREDITS","FREE_ALLOWANCE_EXHAUSTED","CONTENT_POLICY_VIOLATION","MAX_STEPS_EXCEEDED","SITE_BLOCKED","TASK_FAILED","CANCELLED"],"description":"Machine-readable error code","example":"INVALID_INPUT"},"message":{"type":"string","description":"Human-readable error message","example":"Field \"url\" is required and must be a string"},"details":{"nullable":true,"description":"Additional error details (validation errors, etc.)"}},"required":["code","message"]},"request_id":{"type":"string","description":"Request correlation ID, also returned as the X-Request-ID response header. Include it when reporting issues.","example":"8f9dba20-e37b-4749-a919-2269e28b4a2c"}},"required":["error"],"description":"Standard error response format"}}}},"504":{"description":"Browser infrastructure timed out terminating the session (TIMEOUT) — retry","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["MISSING_API_KEY","INVALID_API_KEY","INVALID_INPUT","RATE_LIMIT_EXCEEDED","DAILY_LIMIT_EXCEEDED","INTERNAL_ERROR","RETRY_REQUIRED","UNAUTHORIZED","VAULT_RECONNECT_REQUIRED","FORBIDDEN","NOT_FOUND","FEATURE_NOT_AVAILABLE","SERVICE_BUSY","TIMEOUT","INSUFFICIENT_CREDITS","FREE_ALLOWANCE_EXHAUSTED","CONTENT_POLICY_VIOLATION","MAX_STEPS_EXCEEDED","SITE_BLOCKED","TASK_FAILED","CANCELLED"],"description":"Machine-readable error code","example":"INVALID_INPUT"},"message":{"type":"string","description":"Human-readable error message","example":"Field \"url\" is required and must be a string"},"details":{"nullable":true,"description":"Additional error details (validation errors, etc.)"}},"required":["code","message"]},"request_id":{"type":"string","description":"Request correlation ID, also returned as the X-Request-ID response header. Include it when reporting issues.","example":"8f9dba20-e37b-4749-a919-2269e28b4a2c"}},"required":["error"],"description":"Standard error response format"}}}}}}}}}