SmsPort Docs / WhatsApp

Bot Builder / Runtime Ops

Executions

Inspect bot runs and send operational actions on a specific execution.

Endpoints

http
GET  /api/bot-builder/:botId/executions
GET  /api/bot-builder/:botId/executions/:executionId
POST /api/bot-builder/:botId/executions/:executionId/actions

Execution Action cURL

bash
curl -X POST "https://api.smsport.in/api/bot-builder/<BOT_ID>/executions/<EXECUTION_ID>/actions" \
  -H "Authorization: Bearer <ACCESS_TOKEN>" \
  -H "Content-Type: application/json" \
  -d '{
    "action": "restart"
  }'

Valid Actions

text
stop: Stop current execution.
restart: Restart from current execution context.
restart_from_start: Restart from graph start node.
resend_from_node: Re-run from a specific node (requires nodeId).

Related:

Bot builder API map|Test scenarios