Bot Builder / Runtime Ops
Test Scenarios
Store reusable scenarios and run them repeatedly during bot iteration.
Endpoints
http
GET /api/bot-builder/:botId/test-scenarios
POST /api/bot-builder/:botId/test-scenarios
PATCH /api/bot-builder/:botId/test-scenarios/:scenarioId
DELETE /api/bot-builder/:botId/test-scenarios/:scenarioId
POST /api/bot-builder/:botId/test-scenarios/:scenarioId/runCreate Scenario cURL
bash
curl -X POST "https://api.smsport.in/api/bot-builder/<BOT_ID>/test-scenarios" \
-H "Authorization: Bearer <ACCESS_TOKEN>" \
-H "Content-Type: application/json" \
-d '{
"name": "lead_capture_path",
"description": "Sample lead capture test",
"versionTarget": "draft",
"inputs": [
{ "text": "sample user" },
{ "text": "sample@example.invalid" },
{ "text": "sample city" }
]
}'Related: