File tree Expand file tree Collapse file tree 3 files changed +52
-0
lines changed
messaging/content-templates/create-a-whatsapp-flow-template Expand file tree Collapse file tree 3 files changed +52
-0
lines changed Original file line number Diff line number Diff line change
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
+ }'
Original file line number Diff line number Diff line change
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
+ }
Original file line number Diff line number Diff line change
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
+ }
You can’t perform that action at this time.
0 commit comments