Use this file to discover all available pages before exploring further.
A run is a single execution of an automation. When you call any TinyFish Web Agent endpoint, you create a run that moves through a lifecycle from start to finish.
Cancellation is only supported for runs created via /run-async or /run-sse. Runs created via the synchronous /run endpoint cannot be cancelled because the request blocks until completion.
URL to the run recording, if available. null when no recording exists for this run.
Runs can also use vault credentials for authenticated automation. Pass use_vault: true and optionally credential_item_ids when creating a run to let TinyFish log into sites using your connected password manager.
Every run includes a streaming_url where you can watch the browser execute in real-time. This is useful for debugging, demos, or showing users what’s happening behind the scenes.Embed the URL in an iframe to display the live browser view in your app:
?screenshots=base64 is available to unblock current integrations but is temporary — it will be deprecated soon in favor of URL-based access. Avoid building long-term workflows that depend on this format.
GET /v1/runs/{id} always returns a steps array. Pass ?screenshots=base64 to attach a screenshot to each step (~50–100 KB each — use only for audit trails or visual debugging).
You can cancel a run that is PENDING or RUNNING by sending a POST request to /v1/runs/{id}/cancel. This works for runs created via /run-async or /run-sse only.
The cancel endpoint is idempotent — calling it on an already-cancelled or completed run returns the current state without error.
Scenario
Response status
cancelled_at
message
Run cancelled
CANCELLED
Timestamp
null
Already cancelled
CANCELLED
Timestamp
"Run already cancelled"
Already completed
COMPLETED
null
"Run already finished"
Only runs created via the API (/run-async or /run-sse) can be cancelled using this endpoint. Runs created through the dashboard UI or via the synchronous /run endpoint cannot be cancelled.