Skip to content

Commit 1cbf561

Browse files
authored
Add files via upload
1 parent 906fae4 commit 1cbf561

File tree

3 files changed

+52
-0
lines changed

3 files changed

+52
-0
lines changed
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
curl -X POST 'https://content.twilio.com/v1/Content' \
2+
-H 'Content-Type: application/json' \
3+
-u $TWILIO_ACCOUNT_SID:$TWILIO_AUTH_TOKEN \
4+
-d '{
5+
"friendly_name": "info_flow",
6+
"language": "en","variables": {
7+
"1": "abcd1234"
8+
},
9+
"types": {
10+
"whatsapp/flows": {
11+
"body": "Please take five minutes to answer this survey",
12+
"button_text": "Begin survey",
13+
"flow_id": "1232445823264765",
14+
"flow_token": "{{1}}",
15+
"flow_first_page_id": "QUESTION_ONE"
16+
}
17+
}
18+
}'
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"title": "Content Templates API - Create a WhatsApp Flow Template",
3+
"title_override": "Create WhatsApp Flow Content Template",
4+
"description_override": "",
5+
"type": "server"
6+
}
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
{
2+
"account_sid": "ACXXXXXXXXXXXX",
3+
"date_created": "2025-09-12T23:49:53Z",
4+
"date_updated": "2025-09-12T23:49:53Z",
5+
"friendly_name": "info_flow",
6+
"language": "en",
7+
"links": {
8+
"approval_create": "https://content.twilio.com/v1/Content/HXXXXXXXXXXXXXXXXX/ApprovalRequests/whatsapp",
9+
"approval_fetch": "https://content.twilio.com/v1/Content/HXXXXXXXXXXXXXXXXX/ApprovalRequests"
10+
},
11+
"sid": "HXXXXXXXXXXXXXXXXX",
12+
"types": {
13+
"whatsapp/flows": {
14+
"body": "Please take five minutes to answer this survey",
15+
"button_text": "Begin survey",
16+
"flow_first_page_id": "QUESTION_ONE",
17+
"flow_id": "1232445823264765",
18+
"flow_token": "{{1}}",
19+
"is_flow_first_page_endpoint": false,
20+
"media_url": null,
21+
"subtitle": null
22+
}
23+
},
24+
"url": "https://content.twilio.com/v1/Content/HXXXXXXXXXXXXXXXXX",
25+
"variables": {
26+
"1": "abcd1234"
27+
}
28+
}

0 commit comments

Comments
 (0)