WhatsApp Flows
Create WhatsApp flow
POST
/
v1
/
flows
Create WhatsApp flow
curl --request POST \
--url https://api.wazapin.com/v1/flows \
--header 'Content-Type: application/json' \
--data '
{
"builder_json": {
"flow": {
"id": "<string>",
"name": "<string>",
"screens": [
{
"actions": [
{
"label": "<string>",
"type": "<string>",
"target": "<string>",
"url": "<string>"
}
],
"components": [
{
"id": "<string>",
"type": "<string>",
"helper_text": "<string>",
"label": "<string>",
"options": [
{
"id": "<string>",
"label": "<string>"
}
],
"placeholder": "<string>",
"required": true,
"text": "<string>"
}
],
"id": "<string>",
"title": "<string>"
}
]
},
"mode": "<string>"
},
"category": "<string>",
"channel_id": "<string>",
"name": "<string>"
}
'const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
builder_json: {
flow: {
id: '<string>',
name: '<string>',
screens: [
{
actions: [{label: '<string>', type: '<string>', target: '<string>', url: '<string>'}],
components: [
{
id: '<string>',
type: '<string>',
helper_text: '<string>',
label: '<string>',
options: [{id: '<string>', label: '<string>'}],
placeholder: '<string>',
required: true,
text: '<string>'
}
],
id: '<string>',
title: '<string>'
}
]
},
mode: '<string>'
},
category: '<string>',
channel_id: '<string>',
name: '<string>'
})
};
fetch('https://api.wazapin.com/v1/flows', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.wazapin.com/v1/flows"
payload = {
"builder_json": {
"flow": {
"id": "<string>",
"name": "<string>",
"screens": [
{
"actions": [
{
"label": "<string>",
"type": "<string>",
"target": "<string>",
"url": "<string>"
}
],
"components": [
{
"id": "<string>",
"type": "<string>",
"helper_text": "<string>",
"label": "<string>",
"options": [
{
"id": "<string>",
"label": "<string>"
}
],
"placeholder": "<string>",
"required": True,
"text": "<string>"
}
],
"id": "<string>",
"title": "<string>"
}
]
},
"mode": "<string>"
},
"category": "<string>",
"channel_id": "<string>",
"name": "<string>"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"builder_json": {
"flow": {
"id": "<string>",
"name": "<string>",
"screens": [
{
"actions": [
{
"label": "<string>",
"type": "<string>",
"target": "<string>",
"url": "<string>"
}
],
"components": [
{
"id": "<string>",
"type": "<string>",
"helper_text": "<string>",
"label": "<string>",
"options": [
{
"id": "<string>",
"label": "<string>"
}
],
"placeholder": "<string>",
"required": true,
"text": "<string>"
}
],
"id": "<string>",
"title": "<string>"
}
]
},
"mode": "<string>"
},
"builder_version": 123,
"category": "<string>",
"data_api_version": "<string>",
"flow_json": "<unknown>",
"has_local_changes": true,
"id": "<string>",
"json_version": "<string>",
"name": "<string>",
"status": "<string>",
"validation_errors": "<unknown>",
"channel_id": "<string>",
"meta_flow_id": "<string>",
"preview_url": "<string>"
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"field": "<string>",
"location": "<string>"
}
],
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"field": "<string>",
"location": "<string>"
}
],
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"field": "<string>",
"location": "<string>"
}
],
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"field": "<string>",
"location": "<string>"
}
],
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"field": "<string>",
"location": "<string>"
}
],
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"field": "<string>",
"location": "<string>"
}
],
"request_id": "<string>"
}
}Body
application/json
Response
Created
Show child attributes
Show child attributes
⌘I
Create WhatsApp flow
curl --request POST \
--url https://api.wazapin.com/v1/flows \
--header 'Content-Type: application/json' \
--data '
{
"builder_json": {
"flow": {
"id": "<string>",
"name": "<string>",
"screens": [
{
"actions": [
{
"label": "<string>",
"type": "<string>",
"target": "<string>",
"url": "<string>"
}
],
"components": [
{
"id": "<string>",
"type": "<string>",
"helper_text": "<string>",
"label": "<string>",
"options": [
{
"id": "<string>",
"label": "<string>"
}
],
"placeholder": "<string>",
"required": true,
"text": "<string>"
}
],
"id": "<string>",
"title": "<string>"
}
]
},
"mode": "<string>"
},
"category": "<string>",
"channel_id": "<string>",
"name": "<string>"
}
'const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
builder_json: {
flow: {
id: '<string>',
name: '<string>',
screens: [
{
actions: [{label: '<string>', type: '<string>', target: '<string>', url: '<string>'}],
components: [
{
id: '<string>',
type: '<string>',
helper_text: '<string>',
label: '<string>',
options: [{id: '<string>', label: '<string>'}],
placeholder: '<string>',
required: true,
text: '<string>'
}
],
id: '<string>',
title: '<string>'
}
]
},
mode: '<string>'
},
category: '<string>',
channel_id: '<string>',
name: '<string>'
})
};
fetch('https://api.wazapin.com/v1/flows', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.wazapin.com/v1/flows"
payload = {
"builder_json": {
"flow": {
"id": "<string>",
"name": "<string>",
"screens": [
{
"actions": [
{
"label": "<string>",
"type": "<string>",
"target": "<string>",
"url": "<string>"
}
],
"components": [
{
"id": "<string>",
"type": "<string>",
"helper_text": "<string>",
"label": "<string>",
"options": [
{
"id": "<string>",
"label": "<string>"
}
],
"placeholder": "<string>",
"required": True,
"text": "<string>"
}
],
"id": "<string>",
"title": "<string>"
}
]
},
"mode": "<string>"
},
"category": "<string>",
"channel_id": "<string>",
"name": "<string>"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"builder_json": {
"flow": {
"id": "<string>",
"name": "<string>",
"screens": [
{
"actions": [
{
"label": "<string>",
"type": "<string>",
"target": "<string>",
"url": "<string>"
}
],
"components": [
{
"id": "<string>",
"type": "<string>",
"helper_text": "<string>",
"label": "<string>",
"options": [
{
"id": "<string>",
"label": "<string>"
}
],
"placeholder": "<string>",
"required": true,
"text": "<string>"
}
],
"id": "<string>",
"title": "<string>"
}
]
},
"mode": "<string>"
},
"builder_version": 123,
"category": "<string>",
"data_api_version": "<string>",
"flow_json": "<unknown>",
"has_local_changes": true,
"id": "<string>",
"json_version": "<string>",
"name": "<string>",
"status": "<string>",
"validation_errors": "<unknown>",
"channel_id": "<string>",
"meta_flow_id": "<string>",
"preview_url": "<string>"
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"field": "<string>",
"location": "<string>"
}
],
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"field": "<string>",
"location": "<string>"
}
],
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"field": "<string>",
"location": "<string>"
}
],
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"field": "<string>",
"location": "<string>"
}
],
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"field": "<string>",
"location": "<string>"
}
],
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"field": "<string>",
"location": "<string>"
}
],
"request_id": "<string>"
}
}