DELETE
/api/public/v1/call-scripts/{scriptId}/nodes/{nodeId}Delete a call script step
Removes a step **and everything under it** — a branch goes with its first step. The remaining siblings close the gap. Runs that visited it keep their record, but a run in progress at it is left with no current step.
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.
call-scripts:write
Path Parameters
| Name | Type | Required | Description |
|---|---|---|---|
scriptId | string | Required | Script ID. |
nodeId | string | Required | The step to remove. |
DELETEExample request
curl
curl -X DELETE "https://www.pxb.app/api/public/v1/call-scripts/{scriptId}/nodes/{nodeId}" \
-H "Authorization: Bearer your_access_token"200Example response
json
{
"message": "Step deleted successfully!",
"content": {
"nodeId": "nod_2"
}
}In the console
The same thing done by hand, for anyone comparing the API against the screen they already use.