Skip to main content
POST
/
whatsapp
/
flows
/
{flow_id}
/
versions
Create flow version
curl --request POST \
  --url https://api.kapso.ai/platform/v1/whatsapp/flows/{flow_id}/versions \
  --header 'Content-Type: application/json' \
  --header 'X-API-Key: <api-key>' \
  --data '
{
  "flow_json": {},
  "phone_number_id": "<string>"
}
'
{
  "data": {
    "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "version_label": "<string>",
    "status": "draft",
    "created_at": "2023-11-07T05:31:56Z",
    "updated_at": "2023-11-07T05:31:56Z",
    "flow_json_sha": "<string>",
    "published_at": "2023-11-07T05:31:56Z",
    "validation_errors": [
      {}
    ],
    "flow_json": {}
  }
}

Authorizations

X-API-Key
string
header
required

Path Parameters

flow_id
string<uuid>
required

Body

application/json
flow_json
object
required

WhatsApp Flow JSON definition

phone_number_id
string

Override phone number (optional)

Response

Version created

data
object
required