Skip to main content
GET
/
sessions
/
{session_id}
/
workflow
/
code
Get Session Script
curl --request GET \
  --url https://api.example.com/sessions/{session_id}/workflow/code \
  --header 'Authorization: Bearer <token>'
{
  "python_script": "<string>",
  "json_actions": [
    {}
  ]
}

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

as_workflow
boolean
required

Whether to return code as standalone workflow or just relevant instructions

Response

Successful Response

python_script
string
required

Python script to replicate agent steps

json_actions
Json Actions · object[]
required

Json actions to replicate agent steps