Start Session
Start a New Session
POST /session/start
This endpoint creates a new session and returns a session ID. An existing session cannot provide a session ID during creation.
The session request can be parameterized with the following options:
session_timeout: The session timeout in minutes (resets with every operation performed in the session).
screenshot: Whether to take a screenshot of the browser session.
Request Example:
Response:
Fields in the Request Body:
keep_alive (boolean, default:
false
): If true, the session will not be closed after the operation is completed.screenshot (boolean | null): Whether to include a screenshot in the response.
session_timeout_minutes (integer, default: 5): Session timeout in minutes. The timeout cannot exceed the global timeout. Allowed range:
0 < x < 30
.session_id (string | null): The ID of the session. A new session is created when not provided.
Fields in the Response:
session_id (string): The ID of the session (created or existing). Use this ID to interact with the session for the next operation.
status (string): The status of the session. Available options:
active
,closed
,error
,timed_out
.created_at (string): The timestamp when the session was created.
last_accessed_at (string): The timestamp of the last session access.
duration (string): The session duration.
timeout_minutes (integer): Session timeout in minutes.
error (string | null): An error message if the operation failed.
Last updated