POST
/api/public/v1/build-sessions/{sessionId}/auto-mode

Set auto mode

Run the session without stopping for anybody: with auto mode on, the agent never presents a plan for approval and never puts a questionnaire up — it decides and says what it assumed. Lands immediately, running session included. Whoever may message the session may turn it off; turning it on is an engineer’s call.

Required scope

The access token must carry this scope. A token missing it gets 403 Forbidden. Grant them to an API client under Dev Tools → API, to an assistant or CLI sign-in when you approve or edit it under Dev Tools, and to a teammate under Employee → Permissions.

builder:write

Path Parameters

NameTypeRequiredDescription
sessionIdstringRequiredBuild session ID.

Request Body

PropertyTypeDescription
enabledbooleanOn or off. On needs `builder:engineer` behind the caller.
POSTExample request
curl
curl -X POST "https://www.pxb.app/api/public/v1/build-sessions/{sessionId}/auto-mode" \
  -H "Authorization: Bearer your_access_token" \
  -H "Content-Type: application/json" \
  -d '{
    "enabled": true
  }'
200Example response
json
{
  "message": "Auto mode turned on.",
  "content": {
    "buildSessionId": "bse_a1b2c3",
    "autoMode": true
  }
}

In the console

The same thing done by hand, for anyone comparing the API against the screen they already use.

Builder
/builder
  1. Open a session.
  2. Auto, in the composer.