v1
latestOpenAPI 3.0.02026-07-26300209.6 KBAutomation
Run browser automation synchronously
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.
post/v1/automation/run
Request body
Example request
{
"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
},
"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"
],
"proxy_config": {
"enabled": true,
"country_code": "US"
},
"output_schema": {
"type": "object",
"properties": {
"title": {
"type": "string"
},
"price": {
"type": "number"
}
},
"required": [
"title",
"price"
]
}
}Response
Automation completed successfully. Returns run details and the extracted result.
Example response
{
"run_id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"status": "COMPLETED",
"started_at": "2024-01-01T00:00:00Z",
"finished_at": "2024-01-01T00:00:30Z",
"num_of_steps": 5,
"result": {
"product": "iPhone 15",
"price": "$799"
},
"error": {
"code": "service_busy",
"message": "Browser crashed during execution",
"category": "SYSTEM_FAILURE",
"retry_after": 60,
"help_url": "https://docs.tinyfish.ai/prompting-guide",
"help_message": "Need help? Check out our goal prompting guide for tips and examples.",
"profile_hint": {
"setup_url": "/profiles/prof_abc123/setup?domain=example.com&returnTo=%2Fruns%2Frun_123&ref=run_error_nudge",
"reason": "auth_wall"
}
},
"profile_hint": {
"setup_url": "/profiles/prof_abc123/setup?domain=example.com&returnTo=%2Fruns%2Frun_123&ref=run_error_nudge",
"reason": "auth_wall"
}
}