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 URL
    https://api.notte.cc (the document declares no server; this is the origin it was published from)
  • Auth
    OAuth 2
    Password
    Token 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

python_scriptstring required

Python script to replicate agent steps

json_actionsobject[] required

Json actions to replicate agent steps

Changes

No recorded changes to this operation across all 35 revisions of this API.