Step In Page
This endpoint executes an action in an active browser session and observes the resulting state.
Endpoint
POST /env/step
Parameters
Query Parameters
session_id (required):
Type:
stringDescription: The session ID of the active browser session.
action_id (required):
Type:
stringDescription: The ID of the action to execute within the environment.
value (optional):
Type:
stringDescription: Input or parameters for the action being executed.
enter (optional):
Type:
booleanDescription: Specify whether to confirm the action (e.g., pressing Enter). Default is
false.
Response
Response Parameters
session_id (required):
Type:
stringDescription: The unique identifier for the session where the action was executed.
title (required):
Type:
stringDescription: The title of the resulting page after executing the action.
url (required):
Type:
stringDescription: The URL of the resulting page after executing the action.
timestamp (required):
Type:
stringDescription: The timestamp when the action was executed, in ISO 8601 format.
screenshot (optional):
Type:
string (base64)Description: A base64-encoded screenshot of the resulting page, if available.
data (optional):
Type:
stringDescription: Data retrieved from the resulting page after the action.
space (optional):
Type:
objectDescription: Available action space after execution, including descriptions and categories.
Error Responses
400 (Invalid Request):
Description: Returned when the input parameters are not valid or a required parameter is missing.
500 (Internal Server Error):
Description: Returned when the server encounters an unexpected condition.
Authorizations
Authorization (required):
Type:
stringLocation: Header
Description: The access token received from the authorization server in the OAuth 2.0 flow.
Body
Content Type: application/json
action_id:
Type:
stringDescription: The ID of the action to execute.
enter:
Type:
booleanDescription: Whether to press Enter after inputting the value.
keep_alive:
Type:
booleanDefault:
falseDescription: If
true, the session will not be closed after the operation is completed.
max_nb_actions:
Type:
integerDefault:
100Description: The maximum number of actions to list after which the listing will stop. Used when
min_nb_actionsis not provided.
min_nb_actions:
Type:
integer | nullDescription: The minimum number of actions to list before stopping. If not provided, the listing continues until
max_nb_actionsis reached.
screenshot:
Type:
boolean | nullDescription: Whether to include a screenshot in the response.
session_id:
Type:
string | nullDescription: The ID of the session. A new session is created if not provided.
session_timeout_minutes:
Type:
integerDefault:
5Description: Session timeout in minutes. Cannot exceed the global timeout.
value:
Type:
string | nullDescription: Input value for form actions.
Example Request
Example Response
200 - application/json
Last updated