Skip to main content
DELETE
python

Authorizations

Authorization
string
header
required

The access token received from the authorization server in the OAuth 2.0 flow.

Headers

x-notte-request-origin
string | null
x-notte-sdk-version
string | null

Path Parameters

session_id
string
required

Query Parameters

close_reason
enum<string>
default:manual
Available options:
manual,
error
wait
boolean
default:false

Answer only once the session's close has finished its background work: its last CDP actions and steps are stored, its replay is finalized, its final network usage is written and its browser is released. The response's steps and network usage are then complete. Waits at most 30 seconds from the request, the close included, then answers what is stored. Defaults to false: the stop answers as soon as the session is closed, and that work finishes after the response. With wait, a session already stopped answers what is stored for it instead of 400: if its close is still finishing elsewhere, its last steps may not be stored yet.

Response

Successful Response

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

created_at
string<date-time>
required

Session creation time

last_accessed_at
string<date-time>
required

Last access time

status
enum<string>
required
Available options:
active,
authenticating,
closed,
error,
timed_out,
paused
timeout_minutes
integer
required
deprecated
read-only
record_session
boolean
default:true

Whether saved session replay is enabled. Defaults to true.

log_session
boolean
default:true

Whether saved browser session logs are enabled. Defaults to true.

max_duration_minutes
integer
default:15

Session max duration in minutes. Will timeout if now() > creation time + max_duration_minutes

closed_at
string<date-time> | null

Session closing time

duration
string

Session duration

close_reason
enum<string> | null

Reason the session closed, if it is no longer active

Available options:
manual,
idle_timeout,
max_duration,
error,
unknown
steps
Steps · object[]

Steps of the session

error
string | null

Error message if the operation failed to complete

proxies
boolean
default:false

Whether proxies were used for the session. True if any proxy was applied during session creation.

secret_proxy
SecretProxySummary · object | null

The session's secret proxy: its server, hosts and CA fingerprints, never its credentials.

browser_type
enum<string>
default:chromium
Available options:
chromium,
chrome,
firefox,
chrome-nightly,
chrome-turbo
network_request_bytes
integer
default:0

Total byte usage for network requests.

network_response_bytes
integer
default:0

Total byte usage for network responses.

user_agent
string | null

The user agent to use for the session

viewport_width
integer | null

The width of the viewport

viewport_height
integer | null

The height of the viewport

solve_captchas
boolean | null

Whether to solve captchas.

cdp_url
string | null

The URL to connect to the CDP server.

playwright_url
string | null

The WebSocket URL for Playwright's chromium.connect(), when supported by the server. Requires a matching Playwright client version. This is a live browser connection, not a replay URL.

viewer_url
string | null

The remote session viewer URL.

web_bot_auth
boolean
default:false

Whether to use web bot authentication.

auth_ids
string[]

Managed Auth connection IDs attached to this session.

system_hidden
boolean
default:false

Whether this session is an internal system run. Internal system runs are omitted from session.list() unless include_system=True is requested.

pausable
boolean
default:false

Whether the session can be paused now (POST /sessions/{session_id}/pause). Only in a status read.

started_without_proxy
boolean
default:false

True when the session asked for the default managed proxy, none was available, and it started without a proxy instead (its traffic leaves from Notte's own IP addresses). A workspace turns this fallback off in Settings > Proxies; its starts then fail instead.

warnings
SessionWarning · object[]

Conditions the session started with that the caller should know about, such as PROXY_UNAVAILABLE_NO_PROXY_FALLBACK when no managed proxy was available and the session runs without one.