Start automation (async)
Start a browser automation task asynchronously. Returns a run_id immediately without waiting for completion. Use GET /v1/runs/{id} to poll for results.
Example code
// Using @orth/sdk - The simplest way to call APIs
// Install: npm install @orth/sdk
import Orthogonal from "@orth/sdk";
const orthogonal = new Orthogonal({
apiKey: process.env.ORTHOGONAL_API_KEY,
});
const output = await orthogonal.run({
api: "tinyfish/agent",
path: "/v1/automation/run-async",
body: {
"url": "example",
"goal": "example"
}
});
console.log(output);Body parameters
Target website URL to automate
Natural language description of what to accomplish on the website
Browser profile: lite (standard) or stealth (anti-detection)
Agent behavior config: mode (default/strict), max_duration_seconds, cursor_style. Note: max_steps requires beta access and will return 403 if used without it.
Configure data capture: elements, snapshots, screenshots, recording, html
HTTPS URL for webhook notifications on run lifecycle events
Opt-in to vault credentials for this run
Opt-in to default Browser Context Profile
Browser Context Profile ID to use
Proxy config: enabled (bool), country_code (US, GB, CA, DE, FR, JP, AU)
Structured-output schema for the run result