curl --request POST \
--url https://api.kapso.ai/platform/v1/whatsapp/flows \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"phone_number_id": "<string>",
"name": "<string>",
"flow_json": {},
"publish": false
}
'{
"data": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"meta_flow_id": "<string>",
"name": "<string>",
"status": "draft",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"json_version": "<string>",
"data_api_version": "<string>",
"business_account_id": "<string>",
"preview_url": "<string>",
"published_at": "2023-11-07T05:31:56Z",
"last_synced_at": "2023-11-07T05:31:56Z",
"data_endpoint_function_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"phone_number_id": "<string>",
"data_endpoint_url": "<string>",
"has_data_endpoint": true,
"flows_encryption_configured": true
}
}Create a new WhatsApp Flow. By default creates a draft flow with a basic welcome screen.
curl --request POST \
--url https://api.kapso.ai/platform/v1/whatsapp/flows \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"phone_number_id": "<string>",
"name": "<string>",
"flow_json": {},
"publish": false
}
'{
"data": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"meta_flow_id": "<string>",
"name": "<string>",
"status": "draft",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"json_version": "<string>",
"data_api_version": "<string>",
"business_account_id": "<string>",
"preview_url": "<string>",
"published_at": "2023-11-07T05:31:56Z",
"last_synced_at": "2023-11-07T05:31:56Z",
"data_endpoint_function_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"phone_number_id": "<string>",
"data_endpoint_url": "<string>",
"has_data_endpoint": true,
"flows_encryption_configured": true
}
}Flow created
Show child attributes
Was this page helpful?