{
"error": {
"code": "INVALID_INPUT",
"message": "Field \"url\" is required and must be a string",
"details": "<unknown>"
},
"request_id": "8f9dba20-e37b-4749-a919-2269e28b4a2c"
}
{
"error": {
"code": "INVALID_INPUT",
"message": "Field \"url\" is required and must be a string",
"details": "<unknown>"
},
"request_id": "8f9dba20-e37b-4749-a919-2269e28b4a2c"
}
{
"error": {
"code": "INVALID_INPUT",
"message": "Field \"url\" is required and must be a string",
"details": "<unknown>"
},
"request_id": "8f9dba20-e37b-4749-a919-2269e28b4a2c"
}
{
"error": {
"code": "INVALID_INPUT",
"message": "Field \"url\" is required and must be a string",
"details": "<unknown>"
},
"request_id": "8f9dba20-e37b-4749-a919-2269e28b4a2c"
}
{
"error": {
"code": "INVALID_INPUT",
"message": "Field \"url\" is required and must be a string",
"details": "<unknown>"
},
"request_id": "8f9dba20-e37b-4749-a919-2269e28b4a2c"
}
Automation
Run browser automation with SSE streaming
Execute a browser automation task with Server-Sent Events (SSE) streaming. Returns a real-time event stream with automation progress, browser streaming URL, and final results.
{
"error": {
"code": "INVALID_INPUT",
"message": "Field \"url\" is required and must be a string",
"details": "<unknown>"
},
"request_id": "8f9dba20-e37b-4749-a919-2269e28b4a2c"
}
{
"error": {
"code": "INVALID_INPUT",
"message": "Field \"url\" is required and must be a string",
"details": "<unknown>"
},
"request_id": "8f9dba20-e37b-4749-a919-2269e28b4a2c"
}
{
"error": {
"code": "INVALID_INPUT",
"message": "Field \"url\" is required and must be a string",
"details": "<unknown>"
},
"request_id": "8f9dba20-e37b-4749-a919-2269e28b4a2c"
}
{
"error": {
"code": "INVALID_INPUT",
"message": "Field \"url\" is required and must be a string",
"details": "<unknown>"
},
"request_id": "8f9dba20-e37b-4749-a919-2269e28b4a2c"
}
{
"error": {
"code": "INVALID_INPUT",
"message": "Field \"url\" is required and must be a string",
"details": "<unknown>"
},
"request_id": "8f9dba20-e37b-4749-a919-2269e28b4a2c"
}
Opt-in to the default Browser Context Profile if Browser Context Profiles are enabled; legacy callers are silently ignored when the profiles feature is disabled. Returns 400 when enabled but no default profile is set.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"TinyFish","colors":{"primary":"#D74B28","light":"#D74B28","dark":"#D74B28"},"logo":{"light":"https://mintcdn.com/tinyfish/SAWuKzAHuR-ZMRAB/logo/TF_Horizontal.svg?fit=max\u0026auto=format\u0026n=SAWuKzAHuR-ZMRAB\u0026q=85\u0026s=3ff7a57ebbe744005f4f984e986f16b9","dark":"https://mintcdn.com/tinyfish/VrMSbq950IKhOmzd/logo/dark.svg?fit=max\u0026auto=format\u0026n=VrMSbq950IKhOmzd\u0026q=85\u0026s=78303ae67f6f601a47cdfd79f978f941","href":"https://agent.tinyfish.ai"},"favicon":"https://mintcdn.com/tinyfish/SAWuKzAHuR-ZMRAB/logo/TF_ICON.svg?fit=max\u0026auto=format\u0026n=SAWuKzAHuR-ZMRAB\u0026q=85\u0026s=9151d20cf17b84686c03e299a8997a32","navbar":{"primary":{"type":"button","label":"Get API Key","href":"https://agent.tinyfish.ai/api-keys"}},"footer":{"socials":{"linkedin":"https://www.linkedin.com/company/tinyfish-ai","x":"https://x.com/Tiny_Fish","discord":"https://discord.gg/tinyfish","youtube":"https://www.youtube.com/@TinyFish-AI"}},"integrations":{"ga4":{"measurementId":"G-P52K96QP6R"},"posthog":{"apiKey":"phc_NJaHVgJntoRghYPq3Q92cniMBBbLRh4cE2S5xX1XVyL"}},"styling":{"latex":true},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"tinyfish","hasAudioNarration":false,"actualSubdomain":"tinyfish","customDomains":["docs.tinyfish.ai"],"gitSource":{"type":"github","owner":"tinyfish-io","repo":"ux-labs","deployBranch":"main","contentDirectory":"docs","isPrivate":true,"mountPath":"","label":""},"chroma":{"liveDeploymentHistoryId":"6ae564f117d5a8dc0716df10","collectionId":"43dcf051-c3cb-4172-8423-b92056d812fe","schemaVersion":"v3","latestBuiltDeploymentHistoryId":"6ae564f117d5a8dc0716df10"},"feedback":{"thumbs":true},"entitlements":{},"buildId":"6ae564f117d5a8dc0716df10","clientVersion":"0.0.4044","searchFilterCounts":[{"language":"default","tag":"API Reference","count":84},{"language":"default","tag":"Documentation","count":54},{"language":"default","tag":"Agent \u0026 Runs","count":28},{"language":"default","tag":"Browser Context Profiles","count":10},{"language":"default","tag":"Datasets","count":9},{"language":"default","tag":"Agent API","count":8},{"language":"default","tag":"Tools \u0026 Integrations","count":8},{"language":"default","tag":"Monitor","count":8},{"language":"default","tag":"Capabilities","count":7},{"language":"default","tag":"Runs","count":7}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"byok-sep-25","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"vite-origin","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-updated-9-15","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[],"page":{"pagePath":"api-reference/automation/run-browser-automation-with-sse-streaming","slug":"/api-reference/automation/run-browser-automation-with-sse-streaming","pageMetadata":{"title":"Run browser automation with SSE streaming","description":"Execute a browser automation task with Server-Sent Events (SSE) streaming. Returns a real-time event stream with automation progress, browser streaming URL, and final results.","deprecated":null,"version":null,"openapi":"https://agent.tinyfish.ai/v1/openapi/main post /v1/automation/run-sse","href":"/api-reference/automation/run-browser-automation-with-sse-streaming","autogeneratedByOpenApi":true},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Execute a browser automation task with Server-Sent Events (SSE) streaming. Returns a real-time event stream with automation progress, browser streaming URL, and final results.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){return _jsx(_Fragment,{})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Run browser automation with SSE streaming","description":"Execute a browser automation task with Server-Sent Events (SSE) streaming. Returns a real-time event stream with automation progress, browser streaming URL, and final results.","deprecated":null,"version":null,"openapi":"https://agent.tinyfish.ai/v1/openapi/main post /v1/automation/run-sse","href":"/api-reference/automation/run-browser-automation-with-sse-streaming","autogeneratedByOpenApi":true}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":[],"openApiReferenceData":{"operation":{"operationId":"runSse","description":"Execute a browser automation task with Server-Sent Events (SSE) streaming. Returns a real-time event stream with automation progress, browser streaming URL, and final results.","summary":"Run browser automation with SSE streaming","tags":["Automation"],"security":["729cdd51-173d-40be-8120-900d132807f7"],"requestBody":"9ea3bc58-e613-42af-bbe2-77b28c80d59c","responses":{"200":"c8776d6d-d4fa-4e8d-a3a6-2ffe169824dd","400":"02bba600-df6c-4c2a-b394-47d10968dbca","401":"5c83b237-142e-4d8f-b51e-faab0160985a","402":"645931b3-d303-45b9-9b01-96e8ed87e996","403":"465ea04e-8cba-469a-9f0e-bcdd63771815","500":"edd8d1b8-a63b-43d5-adbd-67fd5157e36a"},"method":"post","type":"path","servers":["8594f0b6-7e50-4af1-af6c-fda4e727932b"],"path":"/v1/automation/run-sse","baseUrlOptions":["https://agent.tinyfish.ai"],"title":"Run browser automation with SSE streaming","codeSamples":[],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{},"requestBody":{"description":"Automation task parameters","content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":"string","format":"uri","description":"Target website URL to automate","example":"https://example.com","isRequired":true,"uniqueKey":"url","typeLabel":"string\u003curi>"},"goal":{"type":"string","minLength":1,"description":"Natural language description of what to accomplish on the website","example":"Find the pricing page and extract all plan details","isRequired":true,"uniqueKey":"goal","typeLabel":"string"},"browser_profile":{"type":"string","enum":["lite","stealth"],"description":"Browser profile for execution. LITE uses standard browser, STEALTH uses anti-detection browser.","example":"lite","uniqueKey":"browser_profile","typeLabel":"enum\u003cstring>"},"api_integration":{"type":"string","description":"Name of the integration making this API call (e.g., \"dify\", \"zapier\", \"n8n\"). Used for analytics.","example":"dify","uniqueKey":"api_integration","typeLabel":"string"},"agent_config":{"type":"object","properties":{"mode":{"type":"string","enum":["default","strict"],"description":"Agent behavior mode. \"strict\" enables fail-fast for test automation.","example":"strict","uniqueKey":"agent_config.mode","typeLabel":"enum\u003cstring>"},"cursor_style":{"type":"string","enum":["fish","standard","green-pointer"],"description":"Cursor style for the browser agent.","example":"standard","uniqueKey":"agent_config.cursor_style","typeLabel":"enum\u003cstring>"},"max_steps":{"type":"integer","minimum":1,"maximum":500,"description":"Maximum tool-call steps before the agent stops. Defaults to 150.","example":50,"uniqueKey":"agent_config.max_steps","typeLabel":"integer"},"max_duration_seconds":{"type":"integer","minimum":1,"description":"Maximum wall-clock seconds before the agent stops. Defaults to no limit.","example":300,"uniqueKey":"agent_config.max_duration_seconds","typeLabel":"integer"}},"description":"Agent behavior configuration","additionalProperties":false,"uniqueKey":"agent_config","typeLabel":"object"},"capture_config":{"type":"object","properties":{"elements":{"type":"boolean","uniqueKey":"capture_config.elements","typeLabel":"boolean"},"snapshots":{"type":"boolean","uniqueKey":"capture_config.snapshots","typeLabel":"boolean"},"screenshots":{"type":"boolean","uniqueKey":"capture_config.screenshots","typeLabel":"boolean"},"recording":{"type":"boolean","uniqueKey":"capture_config.recording","typeLabel":"boolean"},"html":{"type":"boolean","uniqueKey":"capture_config.html","typeLabel":"boolean"}},"description":"Configure which data to capture during the run.","additionalProperties":false,"uniqueKey":"capture_config","typeLabel":"object"},"webhook_url":{"type":"string","format":"uri","description":"HTTPS URL to receive webhook notifications for run lifecycle events. Must use HTTPS.","uniqueKey":"webhook_url","typeLabel":"string\u003curi>"},"use_vault":{"type":"boolean","description":"Opt-in to vault credentials for this run. When true, enabled vault items are included. Defaults to false.","example":true,"uniqueKey":"use_vault","typeLabel":"boolean"},"use_profile":{"type":"boolean","description":"Opt-in to the default Browser Context Profile if Browser Context Profiles are enabled; legacy callers are silently ignored when the profiles feature is disabled. Returns 400 when enabled but no default profile is set.","example":true,"uniqueKey":"use_profile","typeLabel":"boolean"},"profile_id":{"type":"string","minLength":1,"description":"Browser Context Profile ID to use when use_profile is true.","example":"prof_abc123def4567890","uniqueKey":"profile_id","typeLabel":"string"},"credential_item_ids":{"type":"array","items":{"type":"string","minLength":1,"uniqueKey":"credential_item_ids.items.[INDEX]","typeLabel":"string"},"minItems":1,"description":"Scope vault credentials to specific credential URIs. Requires use_vault to be true. If omitted with use_vault: true, all enabled items are used.","example":["cred:conn-abc:Work:item-123","cred:conn-def:Personal:item-456"],"uniqueKey":"credential_item_ids","typeLabel":"string[]"},"proxy_config":{"type":"object","properties":{"enabled":{"type":"boolean","description":"Enable proxy for this automation run","example":true,"isRequired":true,"uniqueKey":"proxy_config.enabled","typeLabel":"boolean"},"country_code":{"type":"string","description":"Proxy exit country (ISO 3166-1 alpha-2). Defaults to US.","example":"US","uniqueKey":"proxy_config.country_code","typeLabel":"string"}},"required":["enabled"],"description":"Proxy configuration","additionalProperties":false,"uniqueKey":"proxy_config","typeLabel":"object"},"output_schema":{"type":"object","properties":{},"additionalProperties":{"oneOf":[{},{"type":"null","uniqueKey":"output_schema.additionalProperties.oneOf.1","typeLabel":"null"}],"uniqueKey":"output_schema.additionalProperties","typeLabel":"null"},"description":"Optional provider-supported structured-output schema subset for the run result. Unsupported fields are rejected before the request is accepted.","example":{"type":"object","properties":{"title":{"type":"string"},"price":{"type":"number"}},"required":["title","price"]},"uniqueKey":"output_schema","typeLabel":"object"}},"required":["url","goal"],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"url":"https://example.com","goal":"Find the pricing page and extract all plan details","browser_profile":"lite","api_integration":"dify","agent_config":{"mode":"strict","cursor_style":"standard","max_steps":50,"max_duration_seconds":300},"capture_config":{"elements":true,"snapshots":true,"screenshots":true,"recording":true,"html":true},"webhook_url":"\u003cstring>","use_vault":true,"use_profile":true,"profile_id":"prof_abc123def4567890","credential_item_ids":["cred:conn-abc:Work:item-123","cred:conn-def:Personal:item-456"],"output_schema":{"type":"object","properties":{"title":{"type":"string"},"price":{"type":"number"}},"required":["title","price"]}}}},"exampleType":"generated"}},"exampleType":"generated"},"responses":{"c8776d6d-d4fa-4e8d-a3a6-2ffe169824dd":{"description":"Server-Sent Events stream. Stream sends STARTED, STREAMING_URL (optional), PROGRESS (intermediate events with purpose), COMPLETE events, plus periodic HEARTBEAT messages.","content":{"text/event-stream":{"schema":{"oneOf":[{"type":"object","required":["type","run_id","timestamp"],"properties":{"type":{"type":"string","enum":["STARTED"],"isRequired":true,"uniqueKey":"oneOf.0.type","typeLabel":"enum\u003cstring>"},"run_id":{"type":"string","isRequired":true,"uniqueKey":"oneOf.0.run_id","typeLabel":"string"},"timestamp":{"type":"string","isRequired":true,"uniqueKey":"oneOf.0.timestamp","typeLabel":"string"}},"uniqueKey":"oneOf.0","typeLabel":"object"},{"type":"object","required":["type","run_id","streaming_url","timestamp"],"properties":{"type":{"type":"string","enum":["STREAMING_URL"],"isRequired":true,"uniqueKey":"oneOf.1.type","typeLabel":"enum\u003cstring>"},"run_id":{"type":"string","isRequired":true,"uniqueKey":"oneOf.1.run_id","typeLabel":"string"},"streaming_url":{"type":"string","isRequired":true,"uniqueKey":"oneOf.1.streaming_url","typeLabel":"string"},"timestamp":{"type":"string","isRequired":true,"uniqueKey":"oneOf.1.timestamp","typeLabel":"string"}},"uniqueKey":"oneOf.1","typeLabel":"object"},{"type":"object","required":["type","run_id","status","timestamp"],"properties":{"type":{"type":"string","enum":["COMPLETE"],"isRequired":true,"uniqueKey":"oneOf.2.type","typeLabel":"enum\u003cstring>"},"run_id":{"type":"string","isRequired":true,"uniqueKey":"oneOf.2.run_id","typeLabel":"string"},"status":{"type":"string","enum":["COMPLETED","FAILED","CANCELLED"],"isRequired":true,"uniqueKey":"oneOf.2.status","typeLabel":"enum\u003cstring>"},"timestamp":{"type":"string","isRequired":true,"uniqueKey":"oneOf.2.timestamp","typeLabel":"string"},"error":{"type":"string","uniqueKey":"oneOf.2.error","typeLabel":"string"},"help_url":{"type":"string","uniqueKey":"oneOf.2.help_url","typeLabel":"string"},"help_message":{"type":"string","uniqueKey":"oneOf.2.help_message","typeLabel":"string"},"profile_hint":{"type":"object","properties":{"message":{"type":"string","isRequired":true,"uniqueKey":"oneOf.2.profile_hint.message","typeLabel":"string"},"setup_url":{"type":"string","isRequired":true,"uniqueKey":"oneOf.2.profile_hint.setup_url","typeLabel":"string"},"reason":{"type":"string","enum":["auth_wall","bot_challenge"],"isRequired":true,"uniqueKey":"oneOf.2.profile_hint.reason","typeLabel":"enum\u003cstring>"}},"required":["message","setup_url","reason"],"uniqueKey":"oneOf.2.profile_hint","typeLabel":"object"},"result":{"oneOf":[{"type":"object","additionalProperties":{"oneOf":[{},{"type":"null","uniqueKey":"oneOf.2.result.oneOf.0.additionalProperties.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.2.result.oneOf.0.additionalProperties","typeLabel":"null"},"uniqueKey":"oneOf.2.result.oneOf.0","typeLabel":"object"},{"type":"null","additionalProperties":{"oneOf":[{},{"type":"null","uniqueKey":"oneOf.2.result.oneOf.1.additionalProperties.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.2.result.oneOf.1.additionalProperties","typeLabel":"null"},"uniqueKey":"oneOf.2.result.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.2.result","typeLabel":"object | null"}},"uniqueKey":"oneOf.2","typeLabel":"object"},{"type":"object","required":["type","timestamp"],"properties":{"type":{"type":"string","enum":["HEARTBEAT"],"isRequired":true,"uniqueKey":"oneOf.3.type","typeLabel":"enum\u003cstring>"},"timestamp":{"type":"string","isRequired":true,"uniqueKey":"oneOf.3.timestamp","typeLabel":"string"}},"uniqueKey":"oneOf.3","typeLabel":"object"},{"type":"object","required":["type","run_id","purpose","timestamp"],"properties":{"type":{"type":"string","enum":["PROGRESS"],"isRequired":true,"uniqueKey":"oneOf.4.type","typeLabel":"enum\u003cstring>"},"run_id":{"type":"string","isRequired":true,"uniqueKey":"oneOf.4.run_id","typeLabel":"string"},"purpose":{"type":"string","isRequired":true,"uniqueKey":"oneOf.4.purpose","typeLabel":"string"},"timestamp":{"type":"string","isRequired":true,"uniqueKey":"oneOf.4.timestamp","typeLabel":"string"},"tinyfish_api":{"type":"string","enum":["search","fetch"],"uniqueKey":"oneOf.4.tinyfish_api","typeLabel":"enum\u003cstring>"}},"uniqueKey":"oneOf.4","typeLabel":"object"},{"type":"object","required":["type","run_id","tinyfish_api","result","timestamp"],"properties":{"type":{"type":"string","enum":["TF_API_RESULT"],"isRequired":true,"uniqueKey":"oneOf.5.type","typeLabel":"enum\u003cstring>"},"run_id":{"type":"string","isRequired":true,"uniqueKey":"oneOf.5.run_id","typeLabel":"string"},"tinyfish_api":{"type":"string","enum":["search","fetch"],"isRequired":true,"uniqueKey":"oneOf.5.tinyfish_api","typeLabel":"enum\u003cstring>"},"result":{"type":"array","items":{"oneOf":[{},{"type":"null","uniqueKey":"oneOf.5.result.items.[INDEX].oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.5.result.items.[INDEX]","typeLabel":"null"},"isRequired":true,"uniqueKey":"oneOf.5.result","typeLabel":"null[]"},"timestamp":{"type":"string","isRequired":true,"uniqueKey":"oneOf.5.timestamp","typeLabel":"string"}},"uniqueKey":"oneOf.5","typeLabel":"object"}],"uniqueKey":"","typeLabel":"object"},"example":"data: {\"type\":\"STARTED\",\"run_id\":\"run_123\",\"timestamp\":\"2025-01-01T00:00:00Z\"}\n\ndata: {\"type\":\"STREAMING_URL\",\"run_id\":\"run_123\",\"streaming_url\":\"https://...\",\"timestamp\":\"...\"}\n\ndata: {\"type\":\"PROGRESS\",\"run_id\":\"run_123\",\"purpose\":\"Clicking submit button\",\"timestamp\":\"...\"}\n\ndata: {\"type\":\"COMPLETE\",\"run_id\":\"run_123\",\"status\":\"COMPLETED\",\"result\":{...},\"timestamp\":\"...\"}","examples":{"Example":{"title":"Example","value":"data: {\"type\":\"STARTED\",\"run_id\":\"run_123\",\"timestamp\":\"2025-01-01T00:00:00Z\"}\n\ndata: {\"type\":\"STREAMING_URL\",\"run_id\":\"run_123\",\"streaming_url\":\"https://...\",\"timestamp\":\"...\"}\n\ndata: {\"type\":\"PROGRESS\",\"run_id\":\"run_123\",\"purpose\":\"Clicking submit button\",\"timestamp\":\"...\"}\n\ndata: {\"type\":\"COMPLETE\",\"run_id\":\"run_123\",\"status\":\"COMPLETED\",\"result\":{...},\"timestamp\":\"...\"}"}},"exampleType":"examples"}},"exampleType":"examples"},"02bba600-df6c-4c2a-b394-47d10968dbca":{"description":"Invalid request - missing required fields or invalid format","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","isRequired":true,"uniqueKey":"error.code","typeLabel":"enum\u003cstring>"},"message":{"type":"string","description":"Human-readable error message","example":"Field \"url\" is required and must be a string","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"details":{"oneOf":[{"description":"Additional error details (validation errors, etc.)","uniqueKey":"error.details.oneOf.0","typeLabel":"any"},{"description":"Additional error details (validation errors, etc.)","type":"null","uniqueKey":"error.details.oneOf.1","typeLabel":"null"}],"uniqueKey":"error.details","typeLabel":"any | null"}},"required":["code","message"],"isRequired":true,"uniqueKey":"error","typeLabel":"object"},"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","uniqueKey":"request_id","typeLabel":"string"}},"required":["error"],"description":"Standard error response format","uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":{"code":"INVALID_INPUT","message":"Field \"url\" is required and must be a string","details":"\u003cunknown>"},"request_id":"8f9dba20-e37b-4749-a919-2269e28b4a2c"}}},"exampleType":"generated"}},"exampleType":"generated"},"5c83b237-142e-4d8f-b51e-faab0160985a":{"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","isRequired":true,"uniqueKey":"error.code","typeLabel":"enum\u003cstring>"},"message":{"type":"string","description":"Human-readable error message","example":"Field \"url\" is required and must be a string","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"details":{"oneOf":[{"description":"Additional error details (validation errors, etc.)","uniqueKey":"error.details.oneOf.0","typeLabel":"any"},{"description":"Additional error details (validation errors, etc.)","type":"null","uniqueKey":"error.details.oneOf.1","typeLabel":"null"}],"uniqueKey":"error.details","typeLabel":"any | null"}},"required":["code","message"],"isRequired":true,"uniqueKey":"error","typeLabel":"object"},"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","uniqueKey":"request_id","typeLabel":"string"}},"required":["error"],"description":"Standard error response format","uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":{"code":"INVALID_INPUT","message":"Field \"url\" is required and must be a string","details":"\u003cunknown>"},"request_id":"8f9dba20-e37b-4749-a919-2269e28b4a2c"}}},"exampleType":"generated"}},"exampleType":"generated"},"645931b3-d303-45b9-9b01-96e8ed87e996":{"description":"Payment required - wallet balance too low to start this run","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","isRequired":true,"uniqueKey":"error.code","typeLabel":"enum\u003cstring>"},"message":{"type":"string","description":"Human-readable error message","example":"Field \"url\" is required and must be a string","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"details":{"oneOf":[{"description":"Additional error details (validation errors, etc.)","uniqueKey":"error.details.oneOf.0","typeLabel":"any"},{"description":"Additional error details (validation errors, etc.)","type":"null","uniqueKey":"error.details.oneOf.1","typeLabel":"null"}],"uniqueKey":"error.details","typeLabel":"any | null"}},"required":["code","message"],"isRequired":true,"uniqueKey":"error","typeLabel":"object"},"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","uniqueKey":"request_id","typeLabel":"string"}},"required":["error"],"description":"Standard error response format","uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":{"code":"INVALID_INPUT","message":"Field \"url\" is required and must be a string","details":"\u003cunknown>"},"request_id":"8f9dba20-e37b-4749-a919-2269e28b4a2c"}}},"exampleType":"generated"}},"exampleType":"generated"},"465ea04e-8cba-469a-9f0e-bcdd63771815":{"description":"Forbidden - Insufficient credits or no active subscription, or a workflow key cannot use personal vault items or Browser Context Profiles (FORBIDDEN, details.reason workflow_key_personal_credentials); use a personal 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","isRequired":true,"uniqueKey":"error.code","typeLabel":"enum\u003cstring>"},"message":{"type":"string","description":"Human-readable error message","example":"Field \"url\" is required and must be a string","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"details":{"oneOf":[{"description":"Additional error details (validation errors, etc.)","uniqueKey":"error.details.oneOf.0","typeLabel":"any"},{"description":"Additional error details (validation errors, etc.)","type":"null","uniqueKey":"error.details.oneOf.1","typeLabel":"null"}],"uniqueKey":"error.details","typeLabel":"any | null"}},"required":["code","message"],"isRequired":true,"uniqueKey":"error","typeLabel":"object"},"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","uniqueKey":"request_id","typeLabel":"string"}},"required":["error"],"description":"Standard error response format","uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":{"code":"INVALID_INPUT","message":"Field \"url\" is required and must be a string","details":"\u003cunknown>"},"request_id":"8f9dba20-e37b-4749-a919-2269e28b4a2c"}}},"exampleType":"generated"}},"exampleType":"generated"},"edd8d1b8-a63b-43d5-adbd-67fd5157e36a":{"description":"Internal server error","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","isRequired":true,"uniqueKey":"error.code","typeLabel":"enum\u003cstring>"},"message":{"type":"string","description":"Human-readable error message","example":"Field \"url\" is required and must be a string","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"details":{"oneOf":[{"description":"Additional error details (validation errors, etc.)","uniqueKey":"error.details.oneOf.0","typeLabel":"any"},{"description":"Additional error details (validation errors, etc.)","type":"null","uniqueKey":"error.details.oneOf.1","typeLabel":"null"}],"uniqueKey":"error.details","typeLabel":"any | null"}},"required":["code","message"],"isRequired":true,"uniqueKey":"error","typeLabel":"object"},"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","uniqueKey":"request_id","typeLabel":"string"}},"required":["error"],"description":"Standard error response format","uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":{"code":"INVALID_INPUT","message":"Field \"url\" is required and must be a string","details":"\u003cunknown>"},"request_id":"8f9dba20-e37b-4749-a919-2269e28b4a2c"}}},"exampleType":"generated"}},"exampleType":"generated"}},"security":{"729cdd51-173d-40be-8120-900d132807f7":{"ApiKeyAuth":{"type":"apiKey","in":"header","name":"X-API-Key","description":"API key for authentication. Get your key from the API Keys page.","scopes":[],"schemeName":"ApiKeyAuth"}}},"servers":{"8594f0b6-7e50-4af1-af6c-fda4e727932b":{"url":"https://agent.tinyfish.ai","description":"Production"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"apiKey","in":"header","name":"X-API-Key","description":"API key for authentication. Get your key from the API Keys page.","scopes":[],"schemeName":"ApiKeyAuth"},"schema":{"title":"X-API-Key","type":"string","description":"API key for authentication. Get your key from the API Keys page.","isRequired":true,"typeLabel":"string","deprecated":false},"schemeName":"ApiKeyAuth","name":"X-API-Key"}],"title":"ApiKeyAuth"}]},"originalFileLocation":"https://agent.tinyfish.ai/v1/openapi/main"},"subdomain":"tinyfish","siteName":"TinyFish","title":"Run browser automation with SSE streaming - TinyFish","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-10-30T20:22:32.899Z","originalFileLocation":"api-reference/automation/run-browser-automation-with-sse-streaming.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Execute a browser automation task with Server-Sent Events (SSE) streaming. Returns a real-time event stream with automation progress, browser streaming URL, and final results.\">\u003cmeta data-mint-head name=\"application-name\" content=\"TinyFish\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/tinyfish/05k5zsm6ySkMI6wO/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/tinyfish/05k5zsm6ySkMI6wO/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/tinyfish/05k5zsm6ySkMI6wO/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/tinyfish/05k5zsm6ySkMI6wO/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/tinyfish/05k5zsm6ySkMI6wO/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/tinyfish/05k5zsm6ySkMI6wO/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/tinyfish/05k5zsm6ySkMI6wO/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/tinyfish/05k5zsm6ySkMI6wO/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/tinyfish/05k5zsm6ySkMI6wO/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Run browser automation with SSE streaming - TinyFish\">\u003cmeta data-mint-head property=\"og:description\" content=\"Execute a browser automation task with Server-Sent Events (SSE) streaming. Returns a real-time event stream with automation progress, browser streaming URL, and final results.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"TinyFish\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.tinyfish.ai/api-reference/automation/run-browser-automation-with-sse-streaming\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://tinyfish.mintlify.app/_mintlify/api/og/v2?division=Automation\u0026amp;title=Run+browser+automation+with+SSE+streaming\u0026amp;description=Execute+a+browser+automation+task+with+Server-Sent+Events+%28SSE%29+streaming.+Returns+a+real-time+event+stream+with+automation+progress%2C+browser+streaming+URL%2C+and\u0026amp;theme=619f6727a66ef17f9efad127\u0026amp;signature=6d173797613ff7c9de0d1b3bb2946c979bc804d6f22d97e8676d182a4e383e18\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Run browser automation with SSE streaming - TinyFish\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Execute a browser automation task with Server-Sent Events (SSE) streaming. Returns a real-time event stream with automation progress, browser streaming URL, and final results.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://tinyfish.mintlify.app/_mintlify/api/og/v2?division=Automation\u0026amp;title=Run+browser+automation+with+SSE+streaming\u0026amp;description=Execute+a+browser+automation+task+with+Server-Sent+Events+%28SSE%29+streaming.+Returns+a+real-time+event+stream+with+automation+progress%2C+browser+streaming+URL%2C+and\u0026amp;theme=619f6727a66ef17f9efad127\u0026amp;signature=6d173797613ff7c9de0d1b3bb2946c979bc804d6f22d97e8676d182a4e383e18\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/tinyfish/05k5zsm6ySkMI6wO/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"TinyFish\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#D74B28\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.tinyfish.ai/api-reference/automation/run-browser-automation-with-sse-streaming\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/automation/run-browser-automation-with-sse-streaming.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.tinyfish.ai/#organization\",\"name\":\"TinyFish\",\"url\":\"https://docs.tinyfish.ai\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/tinyfish/SAWuKzAHuR-ZMRAB/logo/TF_Horizontal.svg?fit=max\u0026auto=format\u0026n=SAWuKzAHuR-ZMRAB\u0026q=85\u0026s=3ff7a57ebbe744005f4f984e986f16b9\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.tinyfish.ai#website\",\"name\":\"TinyFish\",\"url\":\"https://docs.tinyfish.ai\",\"publisher\":{\"@id\":\"https://docs.tinyfish.ai/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.tinyfish.ai/api-reference/automation/run-browser-automation-with-sse-streaming#webpage\",\"url\":\"https://docs.tinyfish.ai/api-reference/automation/run-browser-automation-with-sse-streaming\",\"name\":\"Run browser automation with SSE streaming\",\"description\":\"Execute a browser automation task with Server-Sent Events (SSE) streaming. Returns a real-time event stream with automation progress, browser streaming URL, and final results.\",\"dateModified\":\"2026-10-30T20:22:32.899Z\",\"isPartOf\":{\"@id\":\"https://docs.tinyfish.ai#website\"},\"breadcrumb\":{\"@id\":\"https://docs.tinyfish.ai/api-reference/automation/run-browser-automation-with-sse-streaming#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.tinyfish.ai/api-reference/automation/run-browser-automation-with-sse-streaming#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"TinyFish\",\"item\":\"https://docs.tinyfish.ai\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Run browser automation with SSE streaming\",\"item\":\"https://docs.tinyfish.ai/api-reference/automation/run-browser-automation-with-sse-streaming\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.tinyfish.ai/api-reference/automation/run-browser-automation-with-sse-streaming#apireference\",\"headline\":\"Run browser automation with SSE streaming\",\"name\":\"Run browser automation with SSE streaming\",\"description\":\"Execute a browser automation task with Server-Sent Events (SSE) streaming. Returns a real-time event stream with automation progress, browser streaming URL, and final results.\",\"url\":\"https://docs.tinyfish.ai/api-reference/automation/run-browser-automation-with-sse-streaming\",\"mainEntityOfPage\":{\"@id\":\"https://docs.tinyfish.ai/api-reference/automation/run-browser-automation-with-sse-streaming#webpage\"},\"dateModified\":\"2026-10-30T20:22:32.899Z\",\"publisher\":{\"@id\":\"https://docs.tinyfish.ai/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.tinyfish.ai#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"TinyFish\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"TinyFish","nav":{"global":null,"tabs":[{"tab":"Documentation","icon":"book-open","pages":[{"title":"Documentation","href":""}]},{"tab":"API Reference","icon":"code","groups":[{"group":"Agent \u0026 Runs","icon":"sparkles","pages":[{"group":"Automation","pages":[{"title":"Run browser automation with SSE streaming","deprecated":null,"version":null,"openapi":"https://agent.tinyfish.ai/v1/openapi/main post /v1/automation/run-sse","href":"/api-reference/automation/run-browser-automation-with-sse-streaming"},{"title":"Run browser automation synchronously","description":"Execute a browser automation task synchronously and wait for completion. Returns the final result once the automation finishes (success or failure). Use this endpoint when you need the complete result in a single response. Note: Runs created via this endpoint cannot be cancelled. If you need cancellation support, use `/v1/automation/run-async` or `/v1/automation/run-sse` instead.","deprecated":null,"version":null,"openapi":"https://agent.tinyfish.ai/v1/openapi/main post /v1/automation/run","href":"/api-reference/automation/run-browser-automation-synchronously"},{"title":"Start automation asynchronously","deprecated":null,"version":null,"openapi":"https://agent.tinyfish.ai/v1/openapi/main post /v1/automation/run-async","href":"/api-reference/automation/start-automation-asynchronously"},{"title":"Start multiple automations asynchronously","deprecated":null,"version":null,"openapi":"https://agent.tinyfish.ai/v1/openapi/main post /v1/automation/run-batch","href":"/api-reference/automation/start-multiple-automations-asynchronously"}]},{"group":"Runs","pages":[{"title":"List and search runs","deprecated":null,"version":null,"openapi":"https://agent.tinyfish.ai/v1/openapi/main get /v1/runs","href":"/api-reference/runs/list-and-search-runs"},{"title":"Get multiple runs by IDs","deprecated":null,"version":null,"openapi":"https://agent.tinyfish.ai/v1/openapi/main post /v1/runs/batch","href":"/api-reference/runs/get-multiple-runs-by-ids"},{"title":"Cancel multiple runs by IDs","deprecated":null,"version":null,"openapi":"https://agent.tinyfish.ai/v1/openapi/main post /v1/runs/batch/cancel","href":"/api-reference/runs/cancel-multiple-runs-by-ids"},{"title":"Get run by ID","deprecated":null,"version":null,"openapi":"https://agent.tinyfish.ai/v1/openapi/main get /v1/runs/{id}","href":"/api-reference/runs/get-run-by-id"},{"title":"Cancel run by ID","deprecated":null,"version":null,"openapi":"https://agent.tinyfish.ai/v1/openapi/main post /v1/runs/{id}/cancel","href":"/api-reference/runs/cancel-run-by-id"},{"title":"Get step screenshot","deprecated":null,"version":null,"openapi":"https://agent.tinyfish.ai/v1/openapi/main get /v1/runs/{id}/steps/{stepId}/screenshot","href":"/api-reference/runs/get-step-screenshot"},{"title":"Get step HTML snapshot","deprecated":null,"version":null,"openapi":"https://agent.tinyfish.ai/v1/openapi/main get /v1/runs/{id}/steps/{stepId}/html","href":"/api-reference/runs/get-step-html-snapshot"}]},{"group":"Browser Context Profiles","pages":[{"title":"List Browser Context Profiles","deprecated":null,"version":null,"openapi":"https://agent.tinyfish.ai/v1/openapi/main get /v1/profiles","href":"/api-reference/browser-context-profiles/list-browser-context-profiles"},{"title":"Create a Browser Context Profile","deprecated":null,"version":null,"openapi":"https://agent.tinyfish.ai/v1/openapi/main post /v1/profiles","href":"/api-reference/browser-context-profiles/create-a-browser-context-profile"},{"title":"Get a Browser Context Profile","deprecated":null,"version":null,"openapi":"https://agent.tinyfish.ai/v1/openapi/main get /v1/profiles/{profileId}","href":"/api-reference/browser-context-profiles/get-a-browser-context-profile"},{"title":"Delete a Browser Context Profile","deprecated":null,"version":null,"openapi":"https://agent.tinyfish.ai/v1/openapi/main delete /v1/profiles/{profileId}","href":"/api-reference/browser-context-profiles/delete-a-browser-context-profile"},{"title":"Update a Browser Context Profile","deprecated":null,"version":null,"openapi":"https://agent.tinyfish.ai/v1/openapi/main patch /v1/profiles/{profileId}","href":"/api-reference/browser-context-profiles/update-a-browser-context-profile"},{"title":"Create a profile setup session","deprecated":null,"version":null,"openapi":"https://agent.tinyfish.ai/v1/openapi/main post /v1/profiles/{profileId}/setup-session","href":"/api-reference/browser-context-profiles/create-a-profile-setup-session"},{"title":"Cancel a profile setup session","deprecated":null,"version":null,"openapi":"https://agent.tinyfish.ai/v1/openapi/main post /v1/profiles/{profileId}/setup-session/cancel","href":"/api-reference/browser-context-profiles/cancel-a-profile-setup-session"},{"title":"Save a profile setup session","deprecated":null,"version":null,"openapi":"https://agent.tinyfish.ai/v1/openapi/main post /v1/profiles/{profileId}/save","href":"/api-reference/browser-context-profiles/save-a-profile-setup-session"},{"title":"Upload Browser Context Profile state","deprecated":null,"version":null,"openapi":"https://agent.tinyfish.ai/v1/openapi/main post /v1/profiles/{profileId}/upload","href":"/api-reference/browser-context-profiles/upload-browser-context-profile-state"},{"title":"Delete a saved profile domain","deprecated":null,"version":null,"openapi":"https://agent.tinyfish.ai/v1/openapi/main delete /v1/profiles/{profileId}/domains/{domain}","href":"/api-reference/browser-context-profiles/delete-a-saved-profile-domain"}]},{"group":"Vault","pages":[{"title":"List vault connections","deprecated":null,"version":null,"openapi":"https://agent.tinyfish.ai/v1/openapi/main get /v1/vault/connections","href":"/api-reference/vault/list-vault-connections"},{"title":"Connect a vault provider","deprecated":null,"version":null,"openapi":"https://agent.tinyfish.ai/v1/openapi/main post /v1/vault/connections","href":"/api-reference/vault/connect-a-vault-provider"},{"title":"Disconnect a vault provider","deprecated":null,"version":null,"openapi":"https://agent.tinyfish.ai/v1/openapi/main delete /v1/vault/connections/{connectionId}","href":"/api-reference/vault/disconnect-a-vault-provider"},{"title":"List vault items","deprecated":null,"version":null,"openapi":"https://agent.tinyfish.ai/v1/openapi/main get /v1/vault/items","href":"/api-reference/vault/list-vault-items"},{"title":"Sync vault items","deprecated":null,"version":null,"openapi":"https://agent.tinyfish.ai/v1/openapi/main post /v1/vault/items/sync","href":"/api-reference/vault/sync-vault-items"}]},{"group":"Wallet","pages":[{"title":"Get wallet","deprecated":null,"version":null,"openapi":"https://agent.tinyfish.ai/v1/openapi/main get /v1/wallet","href":"/api-reference/wallet/get-wallet"},{"title":"Top up wallet (agent-paid)","deprecated":null,"version":null,"openapi":"https://agent.tinyfish.ai/v1/openapi/main post /v1/wallet/top-up","href":"/api-reference/wallet/top-up-wallet-agent-paid"}]}]},{"group":"Research","icon":"telescope","pages":[{"group":"API Reference","pages":[{"title":"Run research with SSE streaming","deprecated":null,"version":null,"openapi":"https://agent.tinyfish.ai/v1/openapi/research post /v1/automation/run-research","href":"/api-reference/run-research-with-sse-streaming"},{"title":"Start research asynchronously","deprecated":null,"version":null,"openapi":"https://agent.tinyfish.ai/v1/openapi/research post /v1/automation/run-research-async","href":"/api-reference/start-research-asynchronously"},{"title":"Attach to research progress","deprecated":null,"version":null,"openapi":"https://agent.tinyfish.ai/v1/openapi/research get /v1/research-run/{research_run_id}/events","href":"/api-reference/attach-to-research-progress"},{"title":"List research runs","deprecated":null,"version":null,"openapi":"https://agent.tinyfish.ai/v1/openapi/research get /v1/research-run","href":"/api-reference/list-research-runs"},{"title":"Get research run by ID","deprecated":null,"version":null,"openapi":"https://agent.tinyfish.ai/v1/openapi/research get /v1/research-run/{research_run_id}","href":"/api-reference/get-research-run-by-id"},{"title":"Cancel research run by ID","deprecated":null,"version":null,"openapi":"https://agent.tinyfish.ai/v1/openapi/research post /v1/research-run/{research_run_id}/cancel","href":"/api-reference/cancel-research-run-by-id"}]}]},{"group":"Fetch","icon":"bolt","pages":[{"group":"API Reference","pages":[{"title":"Fetch and extract content from URLs","deprecated":null,"version":null,"openapi":"https://agent.tinyfish.ai/v1/openapi/fetch post /","href":"/api-reference/fetch-and-extract-content-from-urls"},{"title":"List fetch usage","deprecated":null,"version":null,"openapi":"https://agent.tinyfish.ai/v1/openapi/fetch get /usage","href":"/api-reference/list-fetch-usage"}]}]},{"group":"Search","icon":"magnifying-glass","pages":[{"group":"API Reference","pages":[{"title":"Search the web","deprecated":null,"version":null,"openapi":"https://agent.tinyfish.ai/v1/openapi/search get /","href":"/api-reference/search-the-web"},{"title":"List search usage","deprecated":null,"version":null,"openapi":"https://agent.tinyfish.ai/v1/openapi/search get /usage","href":"/api-reference/list-search-usage"}]}]},{"group":"Browser","icon":"browser","pages":[{"group":"API Reference","pages":[{"title":"Create a remote browser session","deprecated":null,"version":null,"openapi":"https://agent.tinyfish.ai/v1/openapi/browser post /","href":"/api-reference/create-a-remote-browser-session"},{"title":"List browser session usage","deprecated":null,"version":null,"openapi":"https://agent.tinyfish.ai/v1/openapi/browser get /usage","href":"/api-reference/list-browser-session-usage"},{"title":"Terminate a browser session","deprecated":null,"version":null,"openapi":"https://agent.tinyfish.ai/v1/openapi/browser delete /{sessionId}","href":"/api-reference/terminate-a-browser-session"}]}]},{"group":"Monitor","icon":"eye","pages":[{"group":"API Reference","pages":[{"title":"List Monitors","deprecated":null,"version":null,"openapi":"https://agent.tinyfish.ai/v1/openapi/monitor get /v1/monitors","href":"/api-reference/list-monitors"},{"title":"Create a Monitor","deprecated":null,"version":null,"openapi":"https://agent.tinyfish.ai/v1/openapi/monitor post /v1/monitors","href":"/api-reference/create-a-monitor"},{"title":"Get a Monitor","deprecated":null,"version":null,"openapi":"https://agent.tinyfish.ai/v1/openapi/monitor get /v1/monitors/{id}","href":"/api-reference/get-a-monitor"},{"title":"Delete a Monitor","deprecated":null,"version":null,"openapi":"https://agent.tinyfish.ai/v1/openapi/monitor delete /v1/monitors/{id}","href":"/api-reference/delete-a-monitor"},{"title":"Update a Monitor","deprecated":null,"version":null,"openapi":"https://agent.tinyfish.ai/v1/openapi/monitor patch /v1/monitors/{id}","href":"/api-reference/update-a-monitor"},{"title":"Run a Monitor now","deprecated":null,"version":null,"openapi":"https://agent.tinyfish.ai/v1/openapi/monitor post /v1/monitors/{id}/runs","href":"/api-reference/run-a-monitor-now"}]}]},{"group":"Datasets","icon":"table","pages":[{"group":"API Reference","pages":[{"title":"List datasets","deprecated":null,"version":null,"openapi":"https://agent.tinyfish.ai/v1/openapi/datasets get /v1/datasets","href":"/api-reference/list-datasets"},{"title":"Create a dataset","deprecated":null,"version":null,"openapi":"https://agent.tinyfish.ai/v1/openapi/datasets post /v1/datasets","href":"/api-reference/create-a-dataset"},{"title":"Plan a dataset schema","deprecated":null,"version":null,"openapi":"https://agent.tinyfish.ai/v1/openapi/datasets post /v1/datasets/plan","href":"/api-reference/plan-a-dataset-schema"},{"title":"Get a dataset","deprecated":null,"version":null,"openapi":"https://agent.tinyfish.ai/v1/openapi/datasets get /v1/datasets/{id}","href":"/api-reference/get-a-dataset"},{"title":"Delete a dataset","deprecated":null,"version":null,"openapi":"https://agent.tinyfish.ai/v1/openapi/datasets delete /v1/datasets/{id}","href":"/api-reference/delete-a-dataset"},{"title":"Get rows","deprecated":null,"version":null,"openapi":"https://agent.tinyfish.ai/v1/openapi/datasets get /v1/datasets/{id}/rows","href":"/api-reference/get-rows"},{"title":"Populate a dataset","deprecated":null,"version":null,"openapi":"https://agent.tinyfish.ai/v1/openapi/datasets post /v1/datasets/{id}/populate","href":"/api-reference/populate-a-dataset"},{"title":"Cancel a run","deprecated":null,"version":null,"openapi":"https://agent.tinyfish.ai/v1/openapi/datasets post /v1/datasets/{id}/runs/{runId}/cancel","href":"/api-reference/cancel-a-run"},{"title":"Follow a run","deprecated":null,"version":null,"openapi":"https://agent.tinyfish.ai/v1/openapi/datasets get /v1/datasets/{id}/runs/{runId}/events","href":"/api-reference/follow-a-run"}]}]}]},{"tab":"Cookbook","icon":"utensils","href":"https://github.com/tinyfish-io/tinyfish-cookbook"}]},"basePath":"","title":"Run browser automation with SSE streaming - TinyFish","buildId":"dpl_DeHjVRGfFnhYQwHnfC2pjeXXv8h9","deploymentId":"dpl_DeHjVRGfFnhYQwHnfC2pjeXXv8h9","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-CS552b7R.js","utils-DDTCYAF2.js","cloneDeep-izs3Hzxb.js","_Uint8Array-BVIqJ90l.js","isObjectLike-C8vmzPEN.js","isArray-Dcu1dQ5t.js","utils-De8ttokP.js","toString-BX-iyh8G.js","isSymbol-CSH9U2Gm.js","addUniqueKeysToSchema-DrwRDvAh.js","snippetPresets-DtAN0nWx.js","style-to-object-BY3JEAdk.js","v4-DIgz8zy6.js","ApiExamples-D5rWArI6.js","isEqual-BfaiBbcl.js","usePlaygroundInputsStore-O2i12wsz.js","shallow-DV8xABTt.js","getApiPlaygroundDisplay-DBZ0B5Jx.js","CodeSnippet-BVi0tPUX.js","CodeSnippets-CqASbIwY.js","Page-m07pfKpT.js","getPastedJson-DG9vsMS8.js","icon-CXzRSCr8.js","MethodPill-BdKVtEuX.js","DuplicateIcon-CZlmBrJI.js","createIcon-biFEUKPL.js","DynamicMarkdown-B54_zNBF.js","SectionHeading-DwwHK3Pt.js","axios-vUo_bRtp.js","Markdown-DfhCTwyA.js","clsx-xpJZXxdP.js","lib-DuNMoZ05.js","lib-B8HbPgcC.js","html-void-elements-mCSPHezU.js","dist-BTZUMDnx.js","katex-YMM-FMeD.js","marked.esm-CZWythHk.js","AssistantPageLink-DqdKa2R4.js"]}