Skip to main content
POST
/
api
/
task
/
cua
JavaScript
import { Hyperbrowser } from '@hyperbrowser/sdk';

const client = new Hyperbrowser({ apiKey: 'your-api-key' });

await client.agents.cua.start({
  task: 'Find the price of the product',
  maxSteps: 20
});
{
  "jobId": "<string>",
  "liveUrl": "<string>"
}

Authorizations

x-api-key
string
header
required

Body

application/json
task
string
required
sessionId
string
maxFailures
number
default:3
maxSteps
number
default:20
keepBrowserOpen
boolean
default:false
sessionOptions
object
useCustomApiKeys
boolean
default:false
apiKeys
object
useComputerAction
boolean
default:false

Response

CUA task started successfully

jobId
string
required
liveUrl
string | null