Automation & Payments REST Reference
Flowmaker & Commerce APIs
Create, validate, AI-generate, publish, and inspect visual WhatsApp automation flows under /api/v1/flowmaker, and manage Razorpay & Stripe payment links, orders, subscriptions, refunds, and webhook events under /api/v1/commerce.
Flowmaker Visual Automation API (/api/v1/flowmaker)
Authenticate with Authorization: Bearer YOUR_SANCTUM_TOKEN. Supports full draft vs. published graph separation (publish: true | false), structural graph validation, AI natural-language flow generation, and step-by-step execution history. Also available via WACM MCP v0.5.0.
/api/v1/flowmaker/flowsList automation flows with node/edge counts, trigger types, active status, and has_unpublished_changes
/api/v1/flowmaker/flows/{id}Get full flow definition including nodes, edges, settings, and raw_flow_data
/api/v1/flowmaker/flows/showGet flow definition by ?flow_id= query parameter
/api/v1/flowmaker/flowsCreate a new flow with structural validation and draft/publish control
/api/v1/flowmaker/flows/{id}Update flow graph or metadata (supports publish: true/false)
/api/v1/flowmaker/flows/{id}/toggle-activeActivate or pause a flow with pre-flight graph validation
/api/v1/flowmaker/flows/{id}/duplicateClone an existing flow as an inactive draft copy
/api/v1/flowmaker/flows/{id}/discard-draftDiscard unpublished draft edits and revert to the last published version
/api/v1/flowmaker/flows/{id}Delete a flow and its execution history
/api/v1/flowmaker/flows/validateDry-run structural validation of nodes and edges without saving
/api/v1/flowmaker/flows/ai-generateGenerate a complete Flowmaker graph from a natural-language prompt
/api/v1/flowmaker/node-typesList all supported trigger, message, logic, integration, and CRM node types
/api/v1/flowmaker/historyList step-by-step flow execution logs (flow_id, contact_id, status, node_type)
/api/v1/flowmaker/historyClear flow execution history logs
{
"prompt": "When a customer messages pricing or quote, ask for their company name, create a CRM enquiry, and reply with our brochure.",
"flow_name": "Inbound Quote Qualifier",
"auto_create": false
}Commerce & Payment Gateways API (/api/v1/commerce)
Inspect Razorpay and Stripe gateway status, list transactions, generate payment links (with optional automatic WhatsApp dispatch), inspect subscriptions and refunds, and retry failed payment webhook events.
/api/v1/commerce/settingsInspect Razorpay and Stripe gateway configuration status and webhook URLs (secrets redacted)
/api/v1/commerce/paymentsList payment transactions (filters: gateway, status, contact_id, search)
/api/v1/commerce/payments/{id}Get payment transaction details with line items and refunds
/api/v1/commerce/payment-linksList Razorpay and Stripe payment links
/api/v1/commerce/payment-linksCreate a Razorpay or Stripe payment link and optionally send via WhatsApp
/api/v1/commerce/ordersList commerce gateway orders
/api/v1/commerce/subscriptionsList recurring subscriptions
/api/v1/commerce/subscriptions/{id}Get subscription details by ID
/api/v1/commerce/refundsList payment refunds
/api/v1/commerce/eventsList payment gateway webhook events
/api/v1/commerce/events/{id}/retryRetry processing of a failed payment gateway webhook event
{
"amount": 1499,
"currency": "INR",
"description": "Annual Pro Plan Renewal",
"gateway": "razorpay",
"customer_name": "Param Mehta",
"customer_phone": "+919876543210",
"send_whatsapp": true,
"expires_in_minutes": 1440
}Visual Node Reference & Dashboard Guide
Explore all Flowmaker trigger match modes (Exact, Contains, Starts With, Ends With, Regex), multi-condition AND/OR branching with 11 operators, native WhatsApp Flows, Jump-to-Flow handoffs, and CRM pipeline automation nodes in the Flowmaker User Guide.