Create a session
Create a browser session that persists across multiple runs
Headers
Skyvern API key for authentication. API key can be found at https://app.skyvern.com/settings.
Body
Timeout in minutes for the session. Timeout is applied after the session is started. Must be between 5 and 1440. Defaults to 60.
5 <= x <= 1440Geographic Proxy location to route the browser traffic through. This is only available in Skyvern Cloud.
Available geotargeting options:
- RESIDENTIAL: the default value. Skyvern Cloud uses a random US residential proxy.
- RESIDENTIAL_ES: Spain
- RESIDENTIAL_IE: Ireland
- RESIDENTIAL_GB: United Kingdom
- RESIDENTIAL_IN: India
- RESIDENTIAL_JP: Japan
- RESIDENTIAL_FR: France
- RESIDENTIAL_DE: Germany
- RESIDENTIAL_NZ: New Zealand
- RESIDENTIAL_PH: Philippines
- RESIDENTIAL_KR: South Korea
- RESIDENTIAL_SA: Saudi Arabia
- RESIDENTIAL_ZA: South Africa
- RESIDENTIAL_AR: Argentina
- RESIDENTIAL_AU: Australia
- RESIDENTIAL_BR: Brazil
- RESIDENTIAL_TR: Turkey
- RESIDENTIAL_CA: Canada
- RESIDENTIAL_MX: Mexico
- RESIDENTIAL_IT: Italy
- RESIDENTIAL_NL: Netherlands
- RESIDENTIAL_ISP: ISP proxy
- US-CA: California (deprecated, routes through RESIDENTIAL_ISP)
- US-NY: New York (deprecated, routes through RESIDENTIAL_ISP)
- US-TX: Texas (deprecated, routes through RESIDENTIAL_ISP)
- US-FL: Florida (deprecated, routes through RESIDENTIAL_ISP)
- US-WA: Washington (deprecated, routes through RESIDENTIAL_ISP)
- NONE: No proxy
For self-hosted deployments, you can pass a custom proxy URL as a dict: {"url": "http://user:password@proxy.example.com:8080"} [blocked]. This routes the browser through your own proxy server and takes precedence over any globally configured proxy pool. Can also be a GeoTarget object for granular city/state targeting: {"country": "US", "subdivision": "CA", "city": "San Francisco"}, or a custom proxy URL dict for self-hosted deployments: {"url": "http://user:password@proxy.example.com:8080"} [blocked]
RESIDENTIAL, US-CA, US-NY, US-TX, US-FL, US-WA, RESIDENTIAL_ES, RESIDENTIAL_IE, RESIDENTIAL_GB, RESIDENTIAL_IN, RESIDENTIAL_JP, RESIDENTIAL_FR, RESIDENTIAL_DE, RESIDENTIAL_NZ, RESIDENTIAL_ZA, RESIDENTIAL_AR, RESIDENTIAL_AU, RESIDENTIAL_BR, RESIDENTIAL_TR, RESIDENTIAL_CA, RESIDENTIAL_MX, RESIDENTIAL_IT, RESIDENTIAL_NL, RESIDENTIAL_PH, RESIDENTIAL_KR, RESIDENTIAL_SA, RESIDENTIAL_ISP, NONE Opaque Skyvern-managed proxy sticky-session id for pinned Residential ISP sessions.
A list of extensions to install in the browser session.
ad-blocker, captcha-solver The type of browser to use for the session.
msedge, chrome, stealth-chromium ID of a browser profile to load into this session (restores cookies, localStorage, etc.). browser_profile_id starts with bp_.
^bp_When true, the session's browser profile (cookies, localStorage, etc.) is saved to storage when the session ends so it can be turned into a reusable browser profile. Defaults to false to avoid storing profiles for sessions that never need them. Sessions started with a browser_profile_id always persist their profile regardless of this flag.
Response
Successfully created browser session
Response model for browser session information.
Unique identifier for the browser session. browser_session_id starts with pbs_.
"pbs_123456"
ID of the organization that owns this session
Timestamp when the session was created (the timestamp for the initial request)
Timestamp when the session was last modified
Current status of the browser session
"created"
Type of the current runnable associated with this session (workflow, task etc)
"task"
ID of the current runnable
"tsk_123456"
Timeout in minutes for the session. Timeout is applied after the session is started. Defaults to 60 minutes.
60
Url for connecting to the browser
"http://localhost:9222"
Url for the browser session page
"https://app.skyvern.com/browser-session/pbs_123456"
A list of extensions installed in the browser session.
ad-blocker, captcha-solver The type of browser used for the session.
msedge, chrome, stealth-chromium ID of the browser profile loaded into this session, if any. browser_profile_id starts with bp_.
Whether this session's browser profile will be saved when it ends so it can become a reusable browser profile.
Whether the browser session supports VNC streaming
The path where the browser session downloads files
The list of files downloaded by the browser session
The list of video recordings from the browser session
Timestamp when the session was started
Timestamp when the session was completed
Timestamp when the session was deleted, if applicable

