POST
/api/public/v1/build-sessions/{sessionId}/approve-planApprove the plan
Approve the plan the agent put up for a session in `PLANNED`. The server records who approved and when, and the agent is told in the same call; until then it cannot begin building, and its sandbox holds a read-only git token. Only the person who started the session (or an engineer, on a bot session) may approve. A new plan from the agent withdraws the approval.
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
| Name | Type | Required | Description |
|---|---|---|---|
sessionId | string | Required | Build session ID. |
POSTExample request
curl
curl -X POST "https://www.pxb.app/api/public/v1/build-sessions/{sessionId}/approve-plan" \
-H "Authorization: Bearer your_access_token"200Example response
json
{
"message": "Plan approved.",
"content": {
"buildSessionId": "bse_a1b2c3",
"approved": true
}
}In the console
The same thing done by hand, for anyone comparing the API against the screen they already use.