sessions
Get Session Script
Generate a Python script from a session's trajectory.
This endpoint generates executable Python code that replicates the session's actions, with proper client.AgentFallback blocks for steps that were executed by agents.
Returns both a Python script and JSON actions list.
get/sessions/{session_id}/workflow/code
Request
- Base URLhttps://api.notte.cc (the document declares no server; this is the origin it was published from)
- AuthOAuth 2PasswordToken URL: token
Path parameters
session_idstring required
Query parameters
as_workflowboolean required
Whether to return code as standalone workflow or just relevant instructions
infer_response_formatboolean
Whether to infer response_format schema for scrape calls that have instructions but no schema
Headers
x-notte-request-originstring nullable
x-notte-sdk-versionstring nullable
Response
Successful Response
Changes
No recorded changes to this operation across all 35 revisions of this API.