Use the sessions API to create, inspect, and close hosted browser sessions directly.All routes on this page require
x-api-key.
POST /v1/sessions/create
Start a hosted browser session.
Request fields:
timeout_seconds: optional session timeout, default3600, max7200residential_proxy: optional residential proxy location object
residential_proxy for location-sensitive sessions that need traffic to originate from a specific residential proxy country, US state, city, ZIP code, or ASN. See Residential proxy locations for the supported fields and combination rules.
Response fields:
successsession_idstatuscdp_urllive_view_url
POST /v1/sessions/get
Inspect a hosted browser session.
Request fields:
session_id: session id returned fromsessions/create
session_idstatuscdp_urllive_view_url
sessions/create returned a queued or starting session and you need to poll for the CDP URL or live view URL.
POST /v1/sessions/close
Close a hosted browser session by session id.
Request fields:
session_id: session id returned fromsessions/create
successmessage
Libretto Cloud API overview
See the shared request format.
Jobs and Logs
Run workflows and inspect results.
Recordings
Generate recording URLs for jobs and browser sessions.
Deployments and Workflows
Deploy workflows before invoking them.