---
title: "Session Start"
method: POST
path: "/sessions/start"
tags: ["sessions"]
---

# Session Start

`POST /sessions/start`

## Headers

- `x-notte-request-origin` string, nullable
- `x-notte-sdk-version` string, nullable

## Request body

- ApiSessionStartRequest
  - `headless` boolean — Whether to run the session in headless mode.
  - `solve_captchas` boolean — Whether to try to automatically solve captchas
  - `max_duration_minutes` integer — Maximum session lifetime in minutes (absolute maximum, not affected by activity).
  - `idle_timeout_minutes` integer — Idle timeout in minutes. Session closes after this period of inactivity (resets on each operation).
  - `proxies` union — List of custom proxies to use for the session. If True, the default proxies will be used.
    - union[]
      - union
        - NotteProxy
          - `type` 'notte'
          - `id` string, nullable
          - `country` 'ad' | 'ae' | 'af' | 'ag' | 'ai' | 'al' | 'am' | 'ao' | 'ar' | 'at' | 'au' | 'aw' | 'az' | 'ba' | 'bb' | 'bd' | 'be' | 'bf' | 'bg' | 'bh' | 'bi' | 'bj' | 'bm' | 'bn' | 'bo' | 'bq' | 'br' | 'bs' | 'bt' | 'bw' | 'by' | 'bz' | 'ca' | 'cd' | 'cg' | 'ch' | 'ci' | 'cl' | 'cm' | 'cn' | 'co' | 'cr' | 'cu' | 'cv' | 'cw' | 'cy' | 'cz' | 'de' | 'dj' | 'dk' | 'dm' | 'do' | 'dz' | 'ec' | 'ee' | 'eg' | 'es' | 'et' | 'fi' | 'fj' | 'fr' | 'ga' | 'gb' | 'gd' | 'ge' | 'gf' | 'gg' | 'gh' | 'gi' | 'gm' | 'gn' | 'gp' | 'gq' | 'gr' | 'gt' | 'gu' | 'gw' | 'gy' | 'hk' | 'hn' | 'hr' | 'ht' | 'hu' | 'id' | 'ie' | 'il' | 'im' | 'in' | 'iq' | 'ir' | 'is' | 'it' | 'je' | 'jm' | 'jo' | 'jp' | 'ke' | 'kg' | 'kh' | 'kn' | 'kr' | 'kw' | 'ky' | 'kz' | 'la' | 'lb' | 'lc' | 'lk' | 'lr' | 'ls' | 'lt' | 'lu' | 'lv' | 'ly' | 'ma' | 'md' | 'me' | 'mf' | 'mg' | 'mk' | 'ml' | 'mm' | 'mn' | 'mo' | 'mq' | 'mr' | 'mt' | 'mu' | 'mv' | 'mw' | 'mx' | 'my' | 'mz' | 'na' | 'nc' | 'ne' | 'ng' | 'ni' | 'nl' | 'no' | 'np' | 'nz' | 'om' | 'pa' | 'pe' | 'pf' | 'pg' | 'ph' | 'pk' | 'pl' | 'pr' | 'ps' | 'pt' | 'py' | 'qa' | 're' | 'ro' | 'rs' | 'ru' | 'rw' | 'sa' | 'sc' | 'sd' | 'se' | 'sg' | 'si' | 'sk' | 'sl' | 'sm' | 'sn' | 'so' | 'sr' | 'ss' | 'st' | 'sv' | 'sx' | 'sy' | 'sz' | 'tc' | 'tg' | 'th' | 'tj' | 'tm' | 'tn' | 'tr' | 'tt' | 'tw' | 'tz' | 'ua' | 'ug' | 'us' | 'uy' | 'uz' | 'vc' | 've' | 'vg' | 'vi' | 'vn' | 'ye' | 'za' | 'zm' | 'zw'
          - `city` string, nullable
        - ExternalProxy
          - `type` 'external'
          - `server` string, required
          - `username` string, nullable
          - `password` string, nullable
          - `bypass` string, nullable
        - TailnetProxy
          - `type` 'tailnet'
          - `oauth_client_id` string, required
          - `oauth_client_secret` string, nullable
    - boolean
  - `browser_type` 'chromium' | 'chrome' | 'chrome-nightly' | 'chrome-turbo' — The browser type to use. Supported values are chromium and chrome. chrome-nightly and chrome-turbo are legacy aliases for chrome.
  - `user_agent` string, nullable — The user agent to use for the session
  - `chrome_args` string[], nullable — Overwrite the chrome instance arguments
  - `viewport_width` integer, nullable — The width of the viewport
  - `viewport_height` integer, nullable — The height of the viewport
  - `aspect_ratio` '5:4' | '16:9', nullable — Viewport shape preset. When set, the backend fits the largest rectangle of this aspect ratio inside the sampled available screen area. Cannot be combined with explicit viewport_width/viewport_height.
  - `cdp_url` string, nullable — The CDP URL of another remote session provider.
  - `use_file_storage` boolean — Whether FileStorage should be attached to the session.
  - `screenshot_type` 'raw' | 'full' | 'last_action' — The type of screenshot to use for the session.
  - `profile` SessionProfile
    - `id` string, required — Profile ID to use for this session
    - `persist` boolean — Whether to save browser state to profile on session close
  - `web_bot_auth` boolean — Whether to use web bot authentication.
  - `extra_http_headers` object, nullable — Extra HTTP headers to be sent with every request.
  - `vault_id` string, nullable — The vault to use for the session
  - `auth_ids` string[] — Managed Auth connection IDs to verify and, when necessary, authenticate inside this session. Authentication finishes before the session is returned unless wait_for_authentication is false.
  - `wait_for_authentication` boolean — Whether to wait for Managed Auth profile restoration and authentication before returning the session. When false, authentication continues in the background after the browser is ready.

## Response `200`

Successful Response

- SessionResponse
  - `session_id` string, required — The ID of the session (created or existing). Use this ID to interact with the session for the next operation.
  - `idle_timeout_minutes` integer, required — Session idle timeout in minutes. Will timeout if now() > last access time + idle_timeout_minutes
  - `max_duration_minutes` integer — Session max duration in minutes. Will timeout if now() > creation time + max_duration_minutes
  - `created_at` string, date-time, required — Session creation time
  - `closed_at` string, date-time, nullable — Session closing time
  - `last_accessed_at` string, date-time, required — Last access time
  - `duration` string — Session duration
  - `status` 'active' | 'closed' | 'error' | 'timed_out', required — Session status
  - `steps` object[] — Steps of the session
  - `error` string, nullable — Error message if the operation failed to complete
  - `proxies` boolean — Whether proxies were used for the session. True if any proxy was applied during session creation.
  - `browser_type` 'chromium' | 'chrome' | 'firefox' | 'chrome-nightly' | 'chrome-turbo'
  - `use_file_storage` boolean — Whether FileStorage was attached to the session.
  - `network_request_bytes` integer — Total byte usage for network requests.
  - `network_response_bytes` integer — Total byte usage for network responses.
  - `user_agent` string, nullable — The user agent to use for the session
  - `viewport_width` integer, nullable — The width of the viewport
  - `viewport_height` integer, nullable — The height of the viewport
  - `headless` boolean — Whether to run the session in headless mode.
  - `solve_captchas` boolean, nullable — Whether to solve captchas.
  - `cdp_url` string, nullable — The URL to connect to the CDP server.
  - `viewer_url` string, nullable — The remote session viewer URL.
  - `web_bot_auth` boolean — Whether to use web bot authentication.
  - `auth_ids` string[] — Managed Auth connection IDs attached to this session.
  - `system_hidden` boolean — Whether this session is an internal system run. Internal system runs are omitted from session.list() unless include_system=True is requested.
  - `timeout_minutes` integer, required

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.net/notte/apis/notte-api.md) · [All operations](https://skmtc.net/notte/apis/notte-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/notte/notte-api/versions/246f6d21de0c/schema)
