POST /whatsapp/flows

Create a DRAFT flow (cloneFlowId copies its JSON; asVersion keeps it in that lineage as the next version)

POST
/whatsapp/flows

Authorization

BearerAuth
headerAuthorizationBearer <token>

API key sk_...

Request Body

application/json
  1. body
accountId*string

WhatsApp account id

name*string
categories*array<>
cloneFlowId?string
asVersion?boolean
endpointUri?string

https data exchange endpoint

Response Body

{success, flow}

application/json
  1. response
success?boolean
flow?
Example Request
curl -X POST 'https://example.com/api/v1/whatsapp/flows' \  -H 'Content-Type: application/json' \  -d '{  "accountId": "string",  "name": "string",  "categories": [    "SIGN_UP"  ]}'
Example Response
{  "success": true,  "flow": {    "id": "string",    "name": "string",    "status": "DRAFT",    "categories": [      "string"    ],    "validation_errors": [      {}    ],    "json_version": "string",    "endpoint_uri": "string",    "preview": {      "preview_url": "string",      "expires_at": "string"    },    "version": 0,    "lineageId": "string"  }}