whatsapp-docs-mcp 1.0.5 → 1.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +47 -139
- package/docs/ativos_da_conta/outros_ativos/display_names.md +9 -9
- package/docs/ativos_da_conta/outros_ativos/official_business_accounts.md +27 -27
- package/docs/ativos_da_conta/telefones_comerciais/phone_numbers.md +151 -27
- package/docs/business_profiles.md +72 -0
- package/docs/business_scoped_user_ids.md +1533 -0
- package/docs/dados_privacidade_e_politica/encryption.md +1 -1
- package/docs/flows/changelog.md +6 -6
- package/docs/flows/gettingstarted/health_insurance.md +12 -6
- package/docs/flows/gettingstarted/personalised_offer.md +6 -6
- package/docs/flows/gettingstarted/pre_approved_loan.md +6 -6
- package/docs/flows/gettingstarted/purchase_intent.md +2 -2
- package/docs/flows/gettingstarted.md +5 -5
- package/docs/flows/guias.md +1 -1
- package/docs/flows/playground.md +1 -1
- package/docs/flows/referencia.md +1 -1
- package/docs/flows/support.md +3 -3
- package/docs/flows.md +2 -2
- package/docs/insights/analytics.md +200 -66
- package/docs/ligacoes/call_settings.md +129 -57
- package/docs/ligacoes/calling.md +33 -16
- package/docs/ligacoes/integration_examples.md +526 -0
- package/docs/ligacoes/pricing.md +11 -300
- package/docs/ligacoes/sandbox.md +160 -0
- package/docs/ligacoes/video_calling.md +8 -0
- package/docs/mensagens/interactive_media_carousel_messages.md +256 -0
- package/docs/mensagens/interactive_product_carousel_messages.md +181 -0
- package/docs/mensagens/limites_de_mensagens/messaging_limits.md +16 -12
- package/docs/mensagens/recursos_adicionais/media.md +15 -16
- package/docs/mensagens/recursos_adicionais/payload_encryption.md +1 -1
- package/docs/mensagens/tipos_de_mensagens/audio_messages.md +11 -11
- package/docs/mensagens/tipos_de_mensagens/interactive_flow_messages.md +1 -1
- package/docs/mensagens/tipos_de_mensagens/message_with_link.md +1 -1
- package/docs/mensagens_de_marketing/changelog.md +299 -0
- package/docs/mensagens_de_marketing/features.md +184 -0
- package/docs/mensagens_de_marketing/implementacao/get_started.md +17 -21
- package/docs/mensagens_de_marketing/implementacao/send_marketing_messages.md +50 -45
- package/docs/mensagens_de_marketing/measure_conversion.md +132 -0
- package/docs/mensagens_de_marketing/onboarding.md +282 -0
- package/docs/mensagens_de_marketing/recursos/automatic_creative_optimization.md +1 -1
- package/docs/mensagens_de_marketing/recursos/conversion_measurement.md +1 -1
- package/docs/mensagens_de_marketing/visao_geral/overview.md +11 -9
- package/docs/messaging_limits/upcoming_changes.md +1 -1
- package/docs/modelos/authentication_templates/bulk_management.md +145 -0
- package/docs/modelos/authentication_templates/template_preview.md +109 -0
- package/docs/modelos/gerenciamento_de_modelos/components.md +23 -23
- package/docs/modelos/gerenciamento_de_modelos/template_media.md +1 -1
- package/docs/modelos/modelos_de_marketing/marketing_templates.md +20 -20
- package/docs/modelos/modelos_de_marketing/per_user_limits.md +7 -5
- package/docs/modelos/portfolio_pacing.md +30 -0
- package/docs/modelos/visao_geral/overview.md +17 -17
- package/docs/pagamentos/payments_br/cards.md +8 -0
- package/docs/parceiros/gerenciamento/suporte_ao_parceiro/transferring_wabas_to_customers.md +1 -1
- package/docs/parceiros/integracao_de_clientes/cadastro_incorporado/onboarding_business_app_users.md +364 -75
- package/docs/parceiros/integracao_de_clientes/cadastro_incorporado/overview.md +34 -30
- package/docs/parceiros/migrate_existing_whatsapp_number_to_a_business_account.md +40 -0
- package/docs/parceiros/obo_model_deprecation.md +32 -0
- package/docs/parceiros/seja_um_parceiro/get_started_for_solution_partners.md +42 -42
- package/docs/parceiros/seja_um_parceiro/get_started_for_tech_providers.md +38 -142
- package/docs/recado/precos/pricing.md +82 -50
- package/docs/recado/precos/pricing_authentication_international_rates.md +16 -18
- package/docs/recado/precos/pricing_updates_to_pricing.md +1 -1
- package/docs/recado/sobre_a_plataforma/about_the_platform.md +80 -24
- package/docs/recado/sobre_a_plataforma/access_tokens.md +19 -19
- package/docs/referencia/bot_do_whatsapp_business/bot_details_api.md +4 -758
- package/docs/referencia/business/add_phone_numbers_api.md +4 -722
- package/docs/referencia/business/business_account_api.md +8 -0
- package/docs/referencia/business/client_whatsapp_business_accounts_api.md +4 -1002
- package/docs/referencia/business/owned_whatsapp_business_accounts.md +4 -798
- package/docs/referencia/business/whatsapp_business_accounts_api.md +4 -1546
- package/docs/referencia/business/whatsapp_business_partner_onboarding_to_mm_lite_api.md +4 -779
- package/docs/referencia/business/whatsapp_business_pre_verified_phone_number_sharing_api.md +4 -786
- package/docs/referencia/business/whatsapp_business_pre_verified_phone_numbers_api.md +4 -882
- package/docs/referencia/changelog.md +1837 -3
- package/docs/referencia/conta_do_whatsapp_business/assigned_users_management_api.md +4 -2198
- package/docs/referencia/conta_do_whatsapp_business/business_account_api.md +4 -263
- package/docs/referencia/conta_do_whatsapp_business/business_account_extended_credits_api.md +4 -271
- package/docs/referencia/conta_do_whatsapp_business/conversational_automation_api.md +4 -778
- package/docs/referencia/conta_do_whatsapp_business/flows_api.md +4 -1528
- package/docs/referencia/conta_do_whatsapp_business/in_progress_on_behalf_requests_api.md +1 -1
- package/docs/referencia/conta_do_whatsapp_business/migration_intent_api.md +4 -1577
- package/docs/referencia/conta_do_whatsapp_business/obo_mobility_intent_api.md +1 -1
- package/docs/referencia/conta_do_whatsapp_business/phone_number_management_api.md +4 -1682
- package/docs/referencia/conta_do_whatsapp_business/schedules_api.md +4 -1768
- package/docs/referencia/conta_do_whatsapp_business/set_obo_mobility_intent_api.md +1 -1
- package/docs/referencia/conta_do_whatsapp_business/set_solution_migration_intent_api.md +1 -1
- package/docs/referencia/conta_do_whatsapp_business/subscribed_apps_api.md +4 -2174
- package/docs/referencia/conta_do_whatsapp_business/template_api.md +4 -972
- package/docs/referencia/conta_do_whatsapp_business/whatsapp_business_account_activities_api.md +4 -838
- package/docs/referencia/conta_do_whatsapp_business/whatsapp_business_account_api.md +4 -1380
- package/docs/referencia/conta_do_whatsapp_business/whatsapp_business_account_solutions_list_api.md +4 -850
- package/docs/referencia/groups/groups_invite_link_api.md +8 -0
- package/docs/referencia/groups/groups_join_requests_api.md +8 -0
- package/docs/referencia/groups/groups_participants_api.md +8 -0
- package/docs/referencia/groups/groups_query_api.md +8 -0
- package/docs/referencia/grupo/groups_invite_link_api.md +4 -300
- package/docs/referencia/grupo/groups_join_requests_api.md +4 -682
- package/docs/referencia/grupo/groups_participants_api.md +4 -270
- package/docs/referencia/grupo/groups_query_api.md +4 -432
- package/docs/referencia/historico_de_mensagens/whatsapp_business_message_history_events_api.md +4 -862
- package/docs/referencia/inscricao/application_connected_client_businesses.md +4 -808
- package/docs/referencia/inscricao/application_solutions_api.md +4 -870
- package/docs/referencia/inscricao/solution_creation_api.md +4 -820
- package/docs/referencia/intencao_de_migracao_da_conta_do_whatsapp_business/migration_intent_details_api.md +4 -720
- package/docs/referencia/midias/media_api.md +4 -338
- package/docs/referencia/midias/media_download_api.md +4 -156
- package/docs/referencia/numero_da_conta_do_whatsapp/whatsapp_account_number_api.md +4 -774
- package/docs/referencia/perfil_do_whatsapp_business/whatsapp_business_profile_node_api.md +4 -1490
- package/docs/referencia/solucao_do_whatsapp_business/accept_deactivation_request_api.md +4 -758
- package/docs/referencia/solucao_do_whatsapp_business/access_token_api.md +4 -700
- package/docs/referencia/solucao_do_whatsapp_business/reject_deactivation_request_api.md +4 -808
- package/docs/referencia/solucao_do_whatsapp_business/send_deactivation_request_api.md +4 -774
- package/docs/referencia/solucao_do_whatsapp_business/solution_accept_api.md +4 -808
- package/docs/referencia/solucao_do_whatsapp_business/solution_details_api.md +4 -764
- package/docs/referencia/solucao_do_whatsapp_business/solution_reject_api.md +4 -794
- package/docs/referencia/telefone_do_whatsapp_business/block_api.md +4 -538
- package/docs/referencia/telefone_do_whatsapp_business/business_compliance_information_api.md +4 -1604
- package/docs/referencia/telefone_do_whatsapp_business/business_encryption_api.md +4 -1398
- package/docs/referencia/telefone_do_whatsapp_business/calling_api.md +4 -594
- package/docs/referencia/telefone_do_whatsapp_business/encrypted_messages_api.md +4 -478
- package/docs/referencia/telefone_do_whatsapp_business/groups_management_api.md +4 -481
- package/docs/referencia/telefone_do_whatsapp_business/marketing_messages_lite_api.md +4 -311
- package/docs/referencia/telefone_do_whatsapp_business/media_upload_api.md +4 -184
- package/docs/referencia/telefone_do_whatsapp_business/message_api.md +4 -1794
- package/docs/referencia/telefone_do_whatsapp_business/phone_number_api.md +4 -373
- package/docs/referencia/telefone_do_whatsapp_business/phone_number_deregister_api.md +4 -710
- package/docs/referencia/telefone_do_whatsapp_business/phone_number_registration.md +4 -776
- package/docs/referencia/telefone_do_whatsapp_business/phone_number_verification_request_code_api.md +4 -730
- package/docs/referencia/telefone_do_whatsapp_business/register_api.md +4 -407
- package/docs/referencia/telefone_do_whatsapp_business/settings_api.md +4 -670
- package/docs/referencia/telefone_do_whatsapp_business/verify_code_api.md +4 -742
- package/docs/referencia/telefone_do_whatsapp_business/whatsapp_business_account_message_history_api.md +4 -928
- package/docs/referencia/telefone_do_whatsapp_business/whatsapp_business_account_official_business_account_status_api.md +4 -1536
- package/docs/referencia/telefone_do_whatsapp_business/whatsapp_business_account_phone_number_api.md +4 -1596
- package/docs/referencia/telefone_do_whatsapp_business/whatsapp_business_profile_api.md +4 -1474
- package/docs/referencia/telefone_do_whatsapp_business/whatsapp_business_qr_code_api.md +4 -1175
- package/docs/referencia/telefone_do_whatsapp_business/whatsapp_business_qr_code_management_api.md +4 -1311
- package/docs/referencia/telefone_pre_verificado_do_whatsapp_business/request_verification_code_api.md +4 -774
- package/docs/referencia/telefone_pre_verificado_do_whatsapp_business/verify_code_api.md +4 -764
- package/docs/referencia/telefone_pre_verificado_do_whatsapp_business/whatsapp_business_pre_verified_phone_number_api.md +4 -1378
- package/docs/referencia/telefone_pre_verificado_do_whatsapp_business/whatsapp_business_pre_verified_phone_number_partners_api.md +4 -816
- package/docs/referencia/usuario/assigned_whatsapp_business_accounts_api.md +4 -860
- package/docs/referencia/webhooks/whatsapp_incoming_webhook_payload.md +4 -1651
- package/docs/referencia/whatsapp_business_account/extended_credits_api.md +8 -0
- package/docs/referencia/whatsapp_business_phone_number/commerce_settings_api.md +8 -0
- package/docs/suporte/error_codes.md +88 -89
- package/docs/suporte/migrating_from_onprem_to_cloud.md +222 -0
- package/docs/suporte/support.md +77 -186
- package/docs/suporte.md +77 -186
- package/docs/throughput.md +60 -0
- package/docs/upcoming_messaging_limits_changes.md +132 -0
- package/docs/visao_geral/overview.md +354 -306
- package/docs/webhooks/create_webhook_endpoint.md +158 -0
- package/docs/webhooks/reference/messages/group.md +182 -0
- package/docs/webhooks/referencia/account_update.md +27 -27
- package/docs/webhooks/referencia/messages/status.md +35 -35
- package/docs/webhooks/visao_geral/message_echoes.md +1 -1
- package/docs/webhooks/visao_geral/overview.md +23 -15
- package/package.json +1 -1
|
@@ -1,1532 +1,8 @@
|
|
|
1
1
|
<!-- Source: https://developers.facebook.com/documentation/business-messaging/whatsapp/reference/whatsapp-business-account/flows-api -->
|
|
2
|
-
<!-- Scraped:
|
|
2
|
+
<!-- Scraped: 2026-01-24T00:50:30.352Z -->
|
|
3
3
|
|
|
4
|
-
|
|
4
|
+
## Esta página não está disponível no momento
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
Isso pode ter ocorrido devido a um erro técnico que estamos trabalhando para corrigir. Tente recarregar esta página.
|
|
7
7
|
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
[
|
|
11
|
-
|
|
12
|
-
Ver como Markdown](/documentation/business-messaging/whatsapp/reference/whatsapp-business-account/flows-api/v23.0.md/)
|
|
13
|
-
|
|
14
|
-
Version
|
|
15
|
-
|
|
16
|
-
v23.0
|
|
17
|
-
|
|
18
|
-
Criar, atualizar, publicar, depreciar e excluir Fluxos do WhatsApp.
|
|
19
|
-
|
|
20
|
-
Gerenciar experiências interativas baseadas em formulários dentro de conversas do WhatsApp.
|
|
21
|
-
|
|
22
|
-
Recuperar metadados de fluxo, definições JSON e métricas de uso.
|
|
23
|
-
|
|
24
|
-
## URL base
|
|
25
|
-
|
|
26
|
-
https://graph.facebook.com
|
|
27
|
-
|
|
28
|
-
## Pontos de extremidade
|
|
29
|
-
|
|
30
|
-
GET
|
|
31
|
-
|
|
32
|
-
[/{Version}/{WABA-ID}/flows](#get-version-waba-id-flows)
|
|
33
|
-
|
|
34
|
-
POST
|
|
35
|
-
|
|
36
|
-
[/{Version}/{WABA-ID}/flows](#post-version-waba-id-flows)
|
|
37
|
-
|
|
38
|
-
POST
|
|
39
|
-
|
|
40
|
-
[/{Version}/{WABA-ID}/migrate\_flows](#post-version-waba-id-migrate-flows)
|
|
41
|
-
|
|
42
|
-
GET
|
|
43
|
-
|
|
44
|
-
[/{Version}/{Flow-ID}](#get-version-flow-id)
|
|
45
|
-
|
|
46
|
-
POST
|
|
47
|
-
|
|
48
|
-
[/{Version}/{Flow-ID}](#post-version-flow-id)
|
|
49
|
-
|
|
50
|
-
DELETE
|
|
51
|
-
|
|
52
|
-
[/{Version}/{Flow-ID}](#delete-version-flow-id)
|
|
53
|
-
|
|
54
|
-
GET
|
|
55
|
-
|
|
56
|
-
[/{Version}/{Flow-ID}/assets](#get-version-flow-id-assets)
|
|
57
|
-
|
|
58
|
-
POST
|
|
59
|
-
|
|
60
|
-
[/{Version}/{Flow-ID}/assets](#post-version-flow-id-assets)
|
|
61
|
-
|
|
62
|
-
POST
|
|
63
|
-
|
|
64
|
-
[/{Version}/{Flow-ID}/publish](#post-version-flow-id-publish)
|
|
65
|
-
|
|
66
|
-
POST
|
|
67
|
-
|
|
68
|
-
[/{Version}/{Flow-ID}/deprecate](#post-version-flow-id-deprecate)
|
|
69
|
-
|
|
70
|
-
* * *
|
|
71
|
-
|
|
72
|
-
## GET /{Version}/{WABA-ID}/flows
|
|
73
|
-
|
|
74
|
-
Listar Fluxos
|
|
75
|
-
|
|
76
|
-
### Sintaxe da solicitação
|
|
77
|
-
|
|
78
|
-
**GET** /{Version}/{WABA-ID}/flows
|
|
79
|
-
|
|
80
|
-
Testar
|
|
81
|
-
|
|
82
|
-
Selecionar idioma
|
|
83
|
-
|
|
84
|
-
cURLJavaScriptPython
|
|
85
|
-
|
|
86
|
-
* * *
|
|
87
|
-
|
|
88
|
-
```
|
|
89
|
-
curl --request GET \ --url 'https://graph.facebook.com/{Version}/{WABA-ID}/flows' \ --header 'Authorization: Bearer <Token>' \ --header 'Content-Type: application/json' \ --data '{}'
|
|
90
|
-
```
|
|
91
|
-
|
|
92
|
-
Selecionar código do status
|
|
93
|
-
|
|
94
|
-
200
|
|
95
|
-
|
|
96
|
-
* * *
|
|
97
|
-
|
|
98
|
-
```
|
|
99
|
-
{ "List Flows": { "value": { "data": { "0": { "categories": [ "SIGN_UP" ], "id": "flow-1", "name": "my first flow", "status": "DRAFT", "validation_errors": [] }, "1": { "categories": { "0": "SIGN_UP", "1": null }, "id": "flow-2", "name": "my second flow", "status": "DRAFT", "validation_errors": { "0": { "column_end": 30, "column_start": 17, "error": "INVALID_PROPERTY", "error_type": "JSON_SCHEMA_ERROR", "line_end": 46, "line_start": 46, "message": "The property \"initial-text\" cannot be specified at \"$root/screens/0/layout/children/2/children/0\"." } } }, "2": { "categories": [ "CONTACT_US" ], "id": "flow-3", "name": "another flow", "status": "PUBLISHED", "validation_errors": [] } }, "paging": { "cursors": { "after": "QVFIUnZAWV...", "before": "QVFIUnpKT..." } } } }}
|
|
100
|
-
```
|
|
101
|
-
|
|
102
|
-
Header Parameters
|
|
103
|
-
|
|
104
|
-
* * *
|
|
105
|
-
|
|
106
|
-
User-Agentstring
|
|
107
|
-
|
|
108
|
-
A string do agente do usuário que identifica o software do cliente que faz a solicitação.
|
|
109
|
-
|
|
110
|
-
Authorizationstring·obrigatório
|
|
111
|
-
|
|
112
|
-
Token de portador para autenticação de API. Isso deve ser um token de acesso válido obtido por meio do fluxo OAuth apropriado ou token de usuário do sistema.
|
|
113
|
-
|
|
114
|
-
Path Parameters
|
|
115
|
-
|
|
116
|
-
* * *
|
|
117
|
-
|
|
118
|
-
Versionstring·obrigatório
|
|
119
|
-
|
|
120
|
-
WABA-IDstring·obrigatório
|
|
121
|
-
|
|
122
|
-
Respostas
|
|
123
|
-
|
|
124
|
-
* * *
|
|
125
|
-
|
|
126
|
-
Listar Fluxos
|
|
127
|
-
|
|
128
|
-
200
|
|
129
|
-
|
|
130
|
-
Listar Fluxos
|
|
131
|
-
|
|
132
|
-
Tipo de conteúdo:application/json
|
|
133
|
-
|
|
134
|
-
Esquema:object
|
|
135
|
-
|
|
136
|
-
Mostrar atributos secundários
|
|
137
|
-
|
|
138
|
-
* * *
|
|
139
|
-
|
|
140
|
-
dataarray of object
|
|
141
|
-
|
|
142
|
-
Mostrar atributos secundários
|
|
143
|
-
|
|
144
|
-
* * *
|
|
145
|
-
|
|
146
|
-
data\[\]object
|
|
147
|
-
|
|
148
|
-
Mostrar atributos secundários
|
|
149
|
-
|
|
150
|
-
* * *
|
|
151
|
-
|
|
152
|
-
categoriesarray of string
|
|
153
|
-
|
|
154
|
-
Mostrar atributos secundários
|
|
155
|
-
|
|
156
|
-
* * *
|
|
157
|
-
|
|
158
|
-
categories\[\]string
|
|
159
|
-
|
|
160
|
-
* * *
|
|
161
|
-
|
|
162
|
-
idstring
|
|
163
|
-
|
|
164
|
-
* * *
|
|
165
|
-
|
|
166
|
-
namestring
|
|
167
|
-
|
|
168
|
-
* * *
|
|
169
|
-
|
|
170
|
-
statusstring
|
|
171
|
-
|
|
172
|
-
* * *
|
|
173
|
-
|
|
174
|
-
validation\_errorsarray of unknown
|
|
175
|
-
|
|
176
|
-
Mostrar atributos secundários
|
|
177
|
-
|
|
178
|
-
* * *
|
|
179
|
-
|
|
180
|
-
validation\_errors\[\]unknown
|
|
181
|
-
|
|
182
|
-
* * *
|
|
183
|
-
|
|
184
|
-
pagingobject
|
|
185
|
-
|
|
186
|
-
Mostrar atributos secundários
|
|
187
|
-
|
|
188
|
-
* * *
|
|
189
|
-
|
|
190
|
-
cursorsobject
|
|
191
|
-
|
|
192
|
-
Mostrar atributos secundários
|
|
193
|
-
|
|
194
|
-
* * *
|
|
195
|
-
|
|
196
|
-
afterstring
|
|
197
|
-
|
|
198
|
-
* * *
|
|
199
|
-
|
|
200
|
-
beforestring
|
|
201
|
-
|
|
202
|
-
Selecionar idioma
|
|
203
|
-
|
|
204
|
-
cURLJavaScriptPython
|
|
205
|
-
|
|
206
|
-
* * *
|
|
207
|
-
|
|
208
|
-
```
|
|
209
|
-
curl --request GET \ --url 'https://graph.facebook.com/{Version}/{WABA-ID}/flows' \ --header 'Authorization: Bearer <Token>' \ --header 'Content-Type: application/json' \ --data '{}'
|
|
210
|
-
```
|
|
211
|
-
|
|
212
|
-
Selecionar código do status
|
|
213
|
-
|
|
214
|
-
200
|
|
215
|
-
|
|
216
|
-
* * *
|
|
217
|
-
|
|
218
|
-
```
|
|
219
|
-
{ "List Flows": { "value": { "data": { "0": { "categories": [ "SIGN_UP" ], "id": "flow-1", "name": "my first flow", "status": "DRAFT", "validation_errors": [] }, "1": { "categories": { "0": "SIGN_UP", "1": null }, "id": "flow-2", "name": "my second flow", "status": "DRAFT", "validation_errors": { "0": { "column_end": 30, "column_start": 17, "error": "INVALID_PROPERTY", "error_type": "JSON_SCHEMA_ERROR", "line_end": 46, "line_start": 46, "message": "The property \"initial-text\" cannot be specified at \"$root/screens/0/layout/children/2/children/0\"." } } }, "2": { "categories": [ "CONTACT_US" ], "id": "flow-3", "name": "another flow", "status": "PUBLISHED", "validation_errors": [] } }, "paging": { "cursors": { "after": "QVFIUnZAWV...", "before": "QVFIUnpKT..." } } } }}
|
|
220
|
-
```
|
|
221
|
-
|
|
222
|
-
* * *
|
|
223
|
-
|
|
224
|
-
## POST /{Version}/{WABA-ID}/flows
|
|
225
|
-
|
|
226
|
-
Cria um novo fluxo. Para clonar um fluxo existente, você pode adicionar o parâmetro "clone\_flow\_id": "id-do-fluxo-original"
|
|
227
|
-
|
|
228
|
-
### Sintaxe da solicitação
|
|
229
|
-
|
|
230
|
-
**POST** /{Version}/{WABA-ID}/flows
|
|
231
|
-
|
|
232
|
-
Testar
|
|
233
|
-
|
|
234
|
-
Selecionar idioma
|
|
235
|
-
|
|
236
|
-
cURLJavaScriptPython
|
|
237
|
-
|
|
238
|
-
* * *
|
|
239
|
-
|
|
240
|
-
```
|
|
241
|
-
curl --request POST \ --url 'https://graph.facebook.com/{Version}/{WABA-ID}/flows' \ --header 'Authorization: Bearer <Token>' \ --header 'Content-Type: multipart/form-data' \ --data '{}'
|
|
242
|
-
```
|
|
243
|
-
|
|
244
|
-
Selecionar código do status
|
|
245
|
-
|
|
246
|
-
200
|
|
247
|
-
|
|
248
|
-
* * *
|
|
249
|
-
|
|
250
|
-
```
|
|
251
|
-
{ "Create Flow": { "value": { "id": "flow-1" } }}
|
|
252
|
-
```
|
|
253
|
-
|
|
254
|
-
Header Parameters
|
|
255
|
-
|
|
256
|
-
* * *
|
|
257
|
-
|
|
258
|
-
User-Agentstring
|
|
259
|
-
|
|
260
|
-
A string do agente do usuário que identifica o software do cliente que faz a solicitação.
|
|
261
|
-
|
|
262
|
-
Authorizationstring·obrigatório
|
|
263
|
-
|
|
264
|
-
Token de portador para autenticação de API. Isso deve ser um token de acesso válido obtido por meio do fluxo OAuth apropriado ou token de usuário do sistema.
|
|
265
|
-
|
|
266
|
-
Path Parameters
|
|
267
|
-
|
|
268
|
-
* * *
|
|
269
|
-
|
|
270
|
-
Versionstring·obrigatório
|
|
271
|
-
|
|
272
|
-
WABA-IDstring·obrigatório
|
|
273
|
-
|
|
274
|
-
Corpo da solicitaçãoOpcional
|
|
275
|
-
|
|
276
|
-
* * *
|
|
277
|
-
|
|
278
|
-
Tipo de conteúdo:multipart/form-data
|
|
279
|
-
|
|
280
|
-
Esquema:object
|
|
281
|
-
|
|
282
|
-
Mostrar atributos secundários
|
|
283
|
-
|
|
284
|
-
* * *
|
|
285
|
-
|
|
286
|
-
categoriesstring
|
|
287
|
-
|
|
288
|
-
* * *
|
|
289
|
-
|
|
290
|
-
clone\_flow\_idstring
|
|
291
|
-
|
|
292
|
-
* * *
|
|
293
|
-
|
|
294
|
-
endpoint\_uristring
|
|
295
|
-
|
|
296
|
-
* * *
|
|
297
|
-
|
|
298
|
-
namestring
|
|
299
|
-
|
|
300
|
-
Respostas
|
|
301
|
-
|
|
302
|
-
* * *
|
|
303
|
-
|
|
304
|
-
Cria um novo fluxo. Para clonar um fluxo existente, você pode adicionar o parâmetro "clone\_flow\_id": "id-do-fluxo-original"
|
|
305
|
-
|
|
306
|
-
200
|
|
307
|
-
|
|
308
|
-
Criar Fluxo
|
|
309
|
-
|
|
310
|
-
Tipo de conteúdo:application/json
|
|
311
|
-
|
|
312
|
-
Esquema:object
|
|
313
|
-
|
|
314
|
-
Mostrar atributos secundários
|
|
315
|
-
|
|
316
|
-
* * *
|
|
317
|
-
|
|
318
|
-
idstring
|
|
319
|
-
|
|
320
|
-
Selecionar idioma
|
|
321
|
-
|
|
322
|
-
cURLJavaScriptPython
|
|
323
|
-
|
|
324
|
-
* * *
|
|
325
|
-
|
|
326
|
-
```
|
|
327
|
-
curl --request POST \ --url 'https://graph.facebook.com/{Version}/{WABA-ID}/flows' \ --header 'Authorization: Bearer <Token>' \ --header 'Content-Type: multipart/form-data' \ --data '{}'
|
|
328
|
-
```
|
|
329
|
-
|
|
330
|
-
Selecionar código do status
|
|
331
|
-
|
|
332
|
-
200
|
|
333
|
-
|
|
334
|
-
* * *
|
|
335
|
-
|
|
336
|
-
```
|
|
337
|
-
{ "Create Flow": { "value": { "id": "flow-1" } }}
|
|
338
|
-
```
|
|
339
|
-
|
|
340
|
-
* * *
|
|
341
|
-
|
|
342
|
-
## POST /{Version}/{WABA-ID}/migrate\_flows
|
|
343
|
-
|
|
344
|
-
Cria uma cópia de fluxos existentes da WABA de origem para a WABA de destino com os mesmos nomes.
|
|
345
|
-
|
|
346
|
-
### Sintaxe da solicitação
|
|
347
|
-
|
|
348
|
-
**POST** /{Version}/{WABA-ID}/migrate\_flows
|
|
349
|
-
|
|
350
|
-
Testar
|
|
351
|
-
|
|
352
|
-
Selecionar idioma
|
|
353
|
-
|
|
354
|
-
cURLJavaScriptPython
|
|
355
|
-
|
|
356
|
-
* * *
|
|
357
|
-
|
|
358
|
-
```
|
|
359
|
-
curl --request POST \ --url 'https://graph.facebook.com/{Version}/{WABA-ID}/migrate_flows' \ --header 'Authorization: Bearer <Token>' \ --header 'Content-Type: multipart/form-data' \ --data '{}'
|
|
360
|
-
```
|
|
361
|
-
|
|
362
|
-
Selecionar código do status
|
|
363
|
-
|
|
364
|
-
200
|
|
365
|
-
|
|
366
|
-
* * *
|
|
367
|
-
|
|
368
|
-
```
|
|
369
|
-
{ "Migrate Flows": { "value": { "failed_flows": { "0": { "error_code": "4233041", "error_message": "Flows Migration Error: Flow name not found in source WABA.", "source_name": "leadgen" } }, "migrated_flows": { "0": { "migrated_id": "dest-flow-1", "source_id": "source-flow-1", "source_name": "appointment" } } } }}
|
|
370
|
-
```
|
|
371
|
-
|
|
372
|
-
Header Parameters
|
|
373
|
-
|
|
374
|
-
* * *
|
|
375
|
-
|
|
376
|
-
User-Agentstring
|
|
377
|
-
|
|
378
|
-
A string do agente do usuário que identifica o software do cliente que faz a solicitação.
|
|
379
|
-
|
|
380
|
-
Authorizationstring·obrigatório
|
|
381
|
-
|
|
382
|
-
Token de portador para autenticação de API. Isso deve ser um token de acesso válido obtido por meio do fluxo OAuth apropriado ou token de usuário do sistema.
|
|
383
|
-
|
|
384
|
-
Path Parameters
|
|
385
|
-
|
|
386
|
-
* * *
|
|
387
|
-
|
|
388
|
-
Versionstring·obrigatório
|
|
389
|
-
|
|
390
|
-
WABA-IDstring·obrigatório
|
|
391
|
-
|
|
392
|
-
Corpo da solicitaçãoOpcional
|
|
393
|
-
|
|
394
|
-
* * *
|
|
395
|
-
|
|
396
|
-
Tipo de conteúdo:multipart/form-data
|
|
397
|
-
|
|
398
|
-
Esquema:object
|
|
399
|
-
|
|
400
|
-
Mostrar atributos secundários
|
|
401
|
-
|
|
402
|
-
* * *
|
|
403
|
-
|
|
404
|
-
source\_flow\_namesstring
|
|
405
|
-
|
|
406
|
-
\[Optional\] The names of the flows that will be copied from the source WABA. If not specified, all flows in the source WABA will be copied
|
|
407
|
-
|
|
408
|
-
* * *
|
|
409
|
-
|
|
410
|
-
source\_waba\_idstring
|
|
411
|
-
|
|
412
|
-
The ID of the source WABA from which the flows will be copied
|
|
413
|
-
|
|
414
|
-
Respostas
|
|
415
|
-
|
|
416
|
-
* * *
|
|
417
|
-
|
|
418
|
-
Cria uma cópia de fluxos existentes da WABA de origem para a WABA de destino com os mesmos nomes.
|
|
419
|
-
|
|
420
|
-
200
|
|
421
|
-
|
|
422
|
-
Migrar Fluxos
|
|
423
|
-
|
|
424
|
-
Tipo de conteúdo:application/json
|
|
425
|
-
|
|
426
|
-
Esquema:object
|
|
427
|
-
|
|
428
|
-
Mostrar atributos secundários
|
|
429
|
-
|
|
430
|
-
* * *
|
|
431
|
-
|
|
432
|
-
failed\_flowsarray of object
|
|
433
|
-
|
|
434
|
-
Mostrar atributos secundários
|
|
435
|
-
|
|
436
|
-
* * *
|
|
437
|
-
|
|
438
|
-
failed\_flows\[\]object
|
|
439
|
-
|
|
440
|
-
Mostrar atributos secundários
|
|
441
|
-
|
|
442
|
-
* * *
|
|
443
|
-
|
|
444
|
-
error\_codestring
|
|
445
|
-
|
|
446
|
-
* * *
|
|
447
|
-
|
|
448
|
-
error\_messagestring
|
|
449
|
-
|
|
450
|
-
* * *
|
|
451
|
-
|
|
452
|
-
source\_namestring
|
|
453
|
-
|
|
454
|
-
* * *
|
|
455
|
-
|
|
456
|
-
migrated\_flowsarray of object
|
|
457
|
-
|
|
458
|
-
Mostrar atributos secundários
|
|
459
|
-
|
|
460
|
-
* * *
|
|
461
|
-
|
|
462
|
-
migrated\_flows\[\]object
|
|
463
|
-
|
|
464
|
-
Mostrar atributos secundários
|
|
465
|
-
|
|
466
|
-
* * *
|
|
467
|
-
|
|
468
|
-
migrated\_idstring
|
|
469
|
-
|
|
470
|
-
* * *
|
|
471
|
-
|
|
472
|
-
source\_idstring
|
|
473
|
-
|
|
474
|
-
* * *
|
|
475
|
-
|
|
476
|
-
source\_namestring
|
|
477
|
-
|
|
478
|
-
Selecionar idioma
|
|
479
|
-
|
|
480
|
-
cURLJavaScriptPython
|
|
481
|
-
|
|
482
|
-
* * *
|
|
483
|
-
|
|
484
|
-
```
|
|
485
|
-
curl --request POST \ --url 'https://graph.facebook.com/{Version}/{WABA-ID}/migrate_flows' \ --header 'Authorization: Bearer <Token>' \ --header 'Content-Type: multipart/form-data' \ --data '{}'
|
|
486
|
-
```
|
|
487
|
-
|
|
488
|
-
Selecionar código do status
|
|
489
|
-
|
|
490
|
-
200
|
|
491
|
-
|
|
492
|
-
* * *
|
|
493
|
-
|
|
494
|
-
```
|
|
495
|
-
{ "Migrate Flows": { "value": { "failed_flows": { "0": { "error_code": "4233041", "error_message": "Flows Migration Error: Flow name not found in source WABA.", "source_name": "leadgen" } }, "migrated_flows": { "0": { "migrated_id": "dest-flow-1", "source_id": "source-flow-1", "source_name": "appointment" } } } }}
|
|
496
|
-
```
|
|
497
|
-
|
|
498
|
-
* * *
|
|
499
|
-
|
|
500
|
-
## GET /{Version}/{Flow-ID}
|
|
501
|
-
|
|
502
|
-
É possível solicitar campos específicos habilitando o parâmetro de consulta 'fields'.
|
|
503
|
-
|
|
504
|
-
### Sintaxe da solicitação
|
|
505
|
-
|
|
506
|
-
**GET** /{Version}/{Flow-ID}
|
|
507
|
-
|
|
508
|
-
Testar
|
|
509
|
-
|
|
510
|
-
Selecionar idioma
|
|
511
|
-
|
|
512
|
-
cURLJavaScriptPython
|
|
513
|
-
|
|
514
|
-
* * *
|
|
515
|
-
|
|
516
|
-
```
|
|
517
|
-
curl --request GET \ --url 'https://graph.facebook.com/{Version}/{Flow-ID}' \ --header 'Authorization: Bearer <Token>' \ --header 'Content-Type: application/json' \ --data '{}'
|
|
518
|
-
```
|
|
519
|
-
|
|
520
|
-
Selecionar código do status
|
|
521
|
-
|
|
522
|
-
200
|
|
523
|
-
|
|
524
|
-
* * *
|
|
525
|
-
|
|
526
|
-
```
|
|
527
|
-
{ "Get Endpoint Availability Metric": { "value": { "id": "flow-1", "metric": { "data_points": { "0": { "data": { "0": { "key": "succeeded", "value": 713 }, "1": { "key": "failed", "value": 335 } }, "timestamp": "2024-01-28T08:00:00+0000" }, "1": { "data": { "0": { "key": "succeeded", "value": 623 }, "1": { "key": "failed", "value": 2 } }, "timestamp": "2024-01-29T08:00:00+0000" } }, "granularity": "DAY", "name": "ENDPOINT_AVAILABILITY" } } }, "Get Endpoint Request Count Metric": { "value": { "id": "flow-1", "metric": { "data_points": { "0": { "data": { "0": { "key": "value", "value": 138 } }, "timestamp": "2024-01-28T08:00:00+0000" }, "1": { "data": { "0": { "key": "value", "value": 361 } }, "timestamp": "2024-01-29T08:00:00+0000" } }, "granularity": "DAY", "name": "ENDPOINT_REQUEST_COUNT" } } }, "Get Endpoint Request Error Metric": { "value": { "id": "flow-1", "metric": { "data_points": { "0": { "data": { "0": { "key": "timeout_error", "value": 25 } }, "timestamp": "2024-01-28T08:00:00+0000" }, "1": { "data": { "0": { "key": "timeout_error", "value": 64 } }, "timestamp": "2024-01-29T08:00:00+0000" } }, "granularity": "DAY", "name": "ENDPOINT_REQUEST_ERROR" } } }, "Get Endpoint Request Error Rate Metric": { "value": { "id": "flow-1", "metric": { "data_points": { "0": { "data": { "0": { "key": "value", "value": "0.12625250501002" } }, "timestamp": "2024-01-28T08:00:00+0000" } }, "granularity": "LIFETIME", "name": "ENDPOINT_REQUEST_ERROR_RATE" } } }, "Get Endpoint Request Latencies Metric": { "value": { "id": "flow-1", "metric": { "data_points": { "0": { "data": { "0": { "key": "1", "value": 106 } }, "timestamp": "2024-01-28T08:00:00+0000" }, "1": { "data": { "0": { "key": "1", "value": 328 }, "1": { "key": "2", "value": 2 } }, "timestamp": "2024-01-29T08:00:00+0000" } }, "granularity": "DAY", "name": "ENDPOINT_REQUEST_LATENCY_SECONDS_CEIL" } } }, "Get Flow": { "value": { "application": { "id": "app-1", "link": "https://www.facebook.com/games/?app_id=app-1", "name": "My Awesome App" }, "categories": [ "OTHER" ], "data_api_version": "3.0", "data_channel_uri": "https://example.com", "health_status": { "can_send_message": "BLOCKED", "entities": { "0": { "can_send_message": "AVAILABLE", "entity_type": "FLOW", "id": "flow-1" }, "1": { "can_send_message": "BLOCKED", "entity_type": "WABA", "errors": { "0": { "error_code": 141006, "error_description": "There is an error with the payment method. This will block business initiated conversations.", "possible_solution": "There was an error with your payment method. Please add a new payment method to the account." }, "1": { "error_code": 141014, "error_description": "The WABA is banned.", "possible_solution": "Please visit Business Support Home for more details (https://business.facebook.com/accountquality) on how to appeal the ban." } }, "id": "waba-1" }, "2": { "can_send_message": "LIMITED", "entity_type": "BUSINESS", "errors": { "0": { "error_code": 141010, "error_description": "The Business has not passed business verification.", "possible_solution": "Visit business settings and start or resolve the business verification request." } }, "id": "business-1" }, "3": { "can_send_message": "AVAILABLE", "entity_type": "APP", "id": "app-1" } } }, "id": "flow-1", "json_version": "2.1", "name": "my first flow", "preview": { "expires_at": "2023-05-21T11:18:09+0000", "preview_url": "https://business.facebook.com/wa/manage/flows/55000..../preview/?token=b9d6....." }, "status": "DRAFT", "validation_errors": [], "whatsapp_business_account": { "business_type": "ent", "id": "waba-1", "message_template_namespace": "namespace-1", "name": "My Awesome WABA", "timezone_id": "54" } } }, "Get Preview URL": { "value": { "id": "flow-1", "preview": { "expires_at": "2023-05-21T11:18:09+0000", "preview_url": "https://business.facebook.com/wa/manage/flows/550.../preview/?token=b9d6...." } } }}
|
|
528
|
-
```
|
|
529
|
-
|
|
530
|
-
Header Parameters
|
|
531
|
-
|
|
532
|
-
* * *
|
|
533
|
-
|
|
534
|
-
User-Agentstring
|
|
535
|
-
|
|
536
|
-
A string do agente do usuário que identifica o software do cliente que faz a solicitação.
|
|
537
|
-
|
|
538
|
-
Authorizationstring·obrigatório
|
|
539
|
-
|
|
540
|
-
Token de portador para autenticação de API. Isso deve ser um token de acesso válido obtido por meio do fluxo OAuth apropriado ou token de usuário do sistema.
|
|
541
|
-
|
|
542
|
-
Path Parameters
|
|
543
|
-
|
|
544
|
-
* * *
|
|
545
|
-
|
|
546
|
-
Versionstring·obrigatório
|
|
547
|
-
|
|
548
|
-
Flow-IDstring·obrigatório
|
|
549
|
-
|
|
550
|
-
Query Parameters
|
|
551
|
-
|
|
552
|
-
* * *
|
|
553
|
-
|
|
554
|
-
fieldsstring
|
|
555
|
-
|
|
556
|
-
Retornar campos específicos na resposta
|
|
557
|
-
|
|
558
|
-
date\_formatstring
|
|
559
|
-
|
|
560
|
-
Retorna a data como carimbo de data/hora Unix em segundos
|
|
561
|
-
|
|
562
|
-
Respostas
|
|
563
|
-
|
|
564
|
-
* * *
|
|
565
|
-
|
|
566
|
-
É possível solicitar campos específicos habilitando o parâmetro de consulta 'fields'.
|
|
567
|
-
|
|
568
|
-
200
|
|
569
|
-
|
|
570
|
-
Obter Fluxo / Obter URL de Visualização / Obter Métrica de Contagem de Solicitações de Endpoint / Obter Métrica de Erro de Solicitação de Endpoint / Obter Métrica de Taxa de Erro de Solicitação de Endpoint / Obter Métrica de Latências de Solicitação de Endpoint / Obter Métrica de Disponibilidade de Endpoint
|
|
571
|
-
|
|
572
|
-
Tipo de conteúdo:application/json
|
|
573
|
-
|
|
574
|
-
Esquema:object
|
|
575
|
-
|
|
576
|
-
Mostrar atributos secundários
|
|
577
|
-
|
|
578
|
-
* * *
|
|
579
|
-
|
|
580
|
-
applicationobject
|
|
581
|
-
|
|
582
|
-
Mostrar atributos secundários
|
|
583
|
-
|
|
584
|
-
* * *
|
|
585
|
-
|
|
586
|
-
idstring
|
|
587
|
-
|
|
588
|
-
* * *
|
|
589
|
-
|
|
590
|
-
linkstring
|
|
591
|
-
|
|
592
|
-
* * *
|
|
593
|
-
|
|
594
|
-
namestring
|
|
595
|
-
|
|
596
|
-
* * *
|
|
597
|
-
|
|
598
|
-
categoriesarray of string
|
|
599
|
-
|
|
600
|
-
Mostrar atributos secundários
|
|
601
|
-
|
|
602
|
-
* * *
|
|
603
|
-
|
|
604
|
-
categories\[\]string
|
|
605
|
-
|
|
606
|
-
* * *
|
|
607
|
-
|
|
608
|
-
data\_api\_versionstring
|
|
609
|
-
|
|
610
|
-
* * *
|
|
611
|
-
|
|
612
|
-
data\_channel\_uristring
|
|
613
|
-
|
|
614
|
-
* * *
|
|
615
|
-
|
|
616
|
-
health\_statusobject
|
|
617
|
-
|
|
618
|
-
Mostrar atributos secundários
|
|
619
|
-
|
|
620
|
-
* * *
|
|
621
|
-
|
|
622
|
-
can\_send\_messagestring
|
|
623
|
-
|
|
624
|
-
* * *
|
|
625
|
-
|
|
626
|
-
entitiesarray of object
|
|
627
|
-
|
|
628
|
-
Mostrar atributos secundários
|
|
629
|
-
|
|
630
|
-
* * *
|
|
631
|
-
|
|
632
|
-
entities\[\]object
|
|
633
|
-
|
|
634
|
-
Mostrar atributos secundários
|
|
635
|
-
|
|
636
|
-
* * *
|
|
637
|
-
|
|
638
|
-
can\_send\_messagestring
|
|
639
|
-
|
|
640
|
-
* * *
|
|
641
|
-
|
|
642
|
-
entity\_typestring
|
|
643
|
-
|
|
644
|
-
* * *
|
|
645
|
-
|
|
646
|
-
errorsarray of object
|
|
647
|
-
|
|
648
|
-
Mostrar atributos secundários
|
|
649
|
-
|
|
650
|
-
* * *
|
|
651
|
-
|
|
652
|
-
errors\[\]object
|
|
653
|
-
|
|
654
|
-
Mostrar atributos secundários
|
|
655
|
-
|
|
656
|
-
* * *
|
|
657
|
-
|
|
658
|
-
error\_codenumber
|
|
659
|
-
|
|
660
|
-
* * *
|
|
661
|
-
|
|
662
|
-
error\_descriptionstring
|
|
663
|
-
|
|
664
|
-
* * *
|
|
665
|
-
|
|
666
|
-
possible\_solutionstring
|
|
667
|
-
|
|
668
|
-
* * *
|
|
669
|
-
|
|
670
|
-
idstring
|
|
671
|
-
|
|
672
|
-
* * *
|
|
673
|
-
|
|
674
|
-
idstring
|
|
675
|
-
|
|
676
|
-
* * *
|
|
677
|
-
|
|
678
|
-
json\_versionstring
|
|
679
|
-
|
|
680
|
-
* * *
|
|
681
|
-
|
|
682
|
-
metricobject
|
|
683
|
-
|
|
684
|
-
Mostrar atributos secundários
|
|
685
|
-
|
|
686
|
-
* * *
|
|
687
|
-
|
|
688
|
-
data\_pointsarray of object
|
|
689
|
-
|
|
690
|
-
Mostrar atributos secundários
|
|
691
|
-
|
|
692
|
-
* * *
|
|
693
|
-
|
|
694
|
-
data\_points\[\]object
|
|
695
|
-
|
|
696
|
-
Mostrar atributos secundários
|
|
697
|
-
|
|
698
|
-
* * *
|
|
699
|
-
|
|
700
|
-
dataarray of object
|
|
701
|
-
|
|
702
|
-
Mostrar atributos secundários
|
|
703
|
-
|
|
704
|
-
* * *
|
|
705
|
-
|
|
706
|
-
data\[\]object
|
|
707
|
-
|
|
708
|
-
Mostrar atributos secundários
|
|
709
|
-
|
|
710
|
-
* * *
|
|
711
|
-
|
|
712
|
-
keystring
|
|
713
|
-
|
|
714
|
-
* * *
|
|
715
|
-
|
|
716
|
-
valuenumber
|
|
717
|
-
|
|
718
|
-
* * *
|
|
719
|
-
|
|
720
|
-
timestampstring
|
|
721
|
-
|
|
722
|
-
* * *
|
|
723
|
-
|
|
724
|
-
granularitystring
|
|
725
|
-
|
|
726
|
-
* * *
|
|
727
|
-
|
|
728
|
-
namestring
|
|
729
|
-
|
|
730
|
-
* * *
|
|
731
|
-
|
|
732
|
-
namestring
|
|
733
|
-
|
|
734
|
-
* * *
|
|
735
|
-
|
|
736
|
-
previewobject
|
|
737
|
-
|
|
738
|
-
Mostrar atributos secundários
|
|
739
|
-
|
|
740
|
-
* * *
|
|
741
|
-
|
|
742
|
-
expires\_atstring
|
|
743
|
-
|
|
744
|
-
* * *
|
|
745
|
-
|
|
746
|
-
preview\_urlstring
|
|
747
|
-
|
|
748
|
-
* * *
|
|
749
|
-
|
|
750
|
-
statusstring
|
|
751
|
-
|
|
752
|
-
* * *
|
|
753
|
-
|
|
754
|
-
validation\_errorsarray of unknown
|
|
755
|
-
|
|
756
|
-
Mostrar atributos secundários
|
|
757
|
-
|
|
758
|
-
* * *
|
|
759
|
-
|
|
760
|
-
validation\_errors\[\]unknown
|
|
761
|
-
|
|
762
|
-
* * *
|
|
763
|
-
|
|
764
|
-
whatsapp\_business\_accountobject
|
|
765
|
-
|
|
766
|
-
Mostrar atributos secundários
|
|
767
|
-
|
|
768
|
-
* * *
|
|
769
|
-
|
|
770
|
-
business\_typestring
|
|
771
|
-
|
|
772
|
-
* * *
|
|
773
|
-
|
|
774
|
-
idstring
|
|
775
|
-
|
|
776
|
-
* * *
|
|
777
|
-
|
|
778
|
-
message\_template\_namespacestring
|
|
779
|
-
|
|
780
|
-
* * *
|
|
781
|
-
|
|
782
|
-
namestring
|
|
783
|
-
|
|
784
|
-
* * *
|
|
785
|
-
|
|
786
|
-
timezone\_idstring
|
|
787
|
-
|
|
788
|
-
Selecionar idioma
|
|
789
|
-
|
|
790
|
-
cURLJavaScriptPython
|
|
791
|
-
|
|
792
|
-
* * *
|
|
793
|
-
|
|
794
|
-
```
|
|
795
|
-
curl --request GET \ --url 'https://graph.facebook.com/{Version}/{Flow-ID}' \ --header 'Authorization: Bearer <Token>' \ --header 'Content-Type: application/json' \ --data '{}'
|
|
796
|
-
```
|
|
797
|
-
|
|
798
|
-
Selecionar código do status
|
|
799
|
-
|
|
800
|
-
200
|
|
801
|
-
|
|
802
|
-
* * *
|
|
803
|
-
|
|
804
|
-
```
|
|
805
|
-
{ "Get Endpoint Availability Metric": { "value": { "id": "flow-1", "metric": { "data_points": { "0": { "data": { "0": { "key": "succeeded", "value": 713 }, "1": { "key": "failed", "value": 335 } }, "timestamp": "2024-01-28T08:00:00+0000" }, "1": { "data": { "0": { "key": "succeeded", "value": 623 }, "1": { "key": "failed", "value": 2 } }, "timestamp": "2024-01-29T08:00:00+0000" } }, "granularity": "DAY", "name": "ENDPOINT_AVAILABILITY" } } }, "Get Endpoint Request Count Metric": { "value": { "id": "flow-1", "metric": { "data_points": { "0": { "data": { "0": { "key": "value", "value": 138 } }, "timestamp": "2024-01-28T08:00:00+0000" }, "1": { "data": { "0": { "key": "value", "value": 361 } }, "timestamp": "2024-01-29T08:00:00+0000" } }, "granularity": "DAY", "name": "ENDPOINT_REQUEST_COUNT" } } }, "Get Endpoint Request Error Metric": { "value": { "id": "flow-1", "metric": { "data_points": { "0": { "data": { "0": { "key": "timeout_error", "value": 25 } }, "timestamp": "2024-01-28T08:00:00+0000" }, "1": { "data": { "0": { "key": "timeout_error", "value": 64 } }, "timestamp": "2024-01-29T08:00:00+0000" } }, "granularity": "DAY", "name": "ENDPOINT_REQUEST_ERROR" } } }, "Get Endpoint Request Error Rate Metric": { "value": { "id": "flow-1", "metric": { "data_points": { "0": { "data": { "0": { "key": "value", "value": "0.12625250501002" } }, "timestamp": "2024-01-28T08:00:00+0000" } }, "granularity": "LIFETIME", "name": "ENDPOINT_REQUEST_ERROR_RATE" } } }, "Get Endpoint Request Latencies Metric": { "value": { "id": "flow-1", "metric": { "data_points": { "0": { "data": { "0": { "key": "1", "value": 106 } }, "timestamp": "2024-01-28T08:00:00+0000" }, "1": { "data": { "0": { "key": "1", "value": 328 }, "1": { "key": "2", "value": 2 } }, "timestamp": "2024-01-29T08:00:00+0000" } }, "granularity": "DAY", "name": "ENDPOINT_REQUEST_LATENCY_SECONDS_CEIL" } } }, "Get Flow": { "value": { "application": { "id": "app-1", "link": "https://www.facebook.com/games/?app_id=app-1", "name": "My Awesome App" }, "categories": [ "OTHER" ], "data_api_version": "3.0", "data_channel_uri": "https://example.com", "health_status": { "can_send_message": "BLOCKED", "entities": { "0": { "can_send_message": "AVAILABLE", "entity_type": "FLOW", "id": "flow-1" }, "1": { "can_send_message": "BLOCKED", "entity_type": "WABA", "errors": { "0": { "error_code": 141006, "error_description": "There is an error with the payment method. This will block business initiated conversations.", "possible_solution": "There was an error with your payment method. Please add a new payment method to the account." }, "1": { "error_code": 141014, "error_description": "The WABA is banned.", "possible_solution": "Please visit Business Support Home for more details (https://business.facebook.com/accountquality) on how to appeal the ban." } }, "id": "waba-1" }, "2": { "can_send_message": "LIMITED", "entity_type": "BUSINESS", "errors": { "0": { "error_code": 141010, "error_description": "The Business has not passed business verification.", "possible_solution": "Visit business settings and start or resolve the business verification request." } }, "id": "business-1" }, "3": { "can_send_message": "AVAILABLE", "entity_type": "APP", "id": "app-1" } } }, "id": "flow-1", "json_version": "2.1", "name": "my first flow", "preview": { "expires_at": "2023-05-21T11:18:09+0000", "preview_url": "https://business.facebook.com/wa/manage/flows/55000..../preview/?token=b9d6....." }, "status": "DRAFT", "validation_errors": [], "whatsapp_business_account": { "business_type": "ent", "id": "waba-1", "message_template_namespace": "namespace-1", "name": "My Awesome WABA", "timezone_id": "54" } } }, "Get Preview URL": { "value": { "id": "flow-1", "preview": { "expires_at": "2023-05-21T11:18:09+0000", "preview_url": "https://business.facebook.com/wa/manage/flows/550.../preview/?token=b9d6...." } } }}
|
|
806
|
-
```
|
|
807
|
-
|
|
808
|
-
* * *
|
|
809
|
-
|
|
810
|
-
## POST /{Version}/{Flow-ID}
|
|
811
|
-
|
|
812
|
-
Atualizar Metadados do Fluxo
|
|
813
|
-
|
|
814
|
-
### Sintaxe da solicitação
|
|
815
|
-
|
|
816
|
-
**POST** /{Version}/{Flow-ID}
|
|
817
|
-
|
|
818
|
-
Testar
|
|
819
|
-
|
|
820
|
-
Selecionar idioma
|
|
821
|
-
|
|
822
|
-
cURLJavaScriptPython
|
|
823
|
-
|
|
824
|
-
* * *
|
|
825
|
-
|
|
826
|
-
```
|
|
827
|
-
curl --request POST \ --url 'https://graph.facebook.com/{Version}/{Flow-ID}' \ --header 'Authorization: Bearer <Token>' \ --header 'Content-Type: multipart/form-data' \ --data '{}'
|
|
828
|
-
```
|
|
829
|
-
|
|
830
|
-
Selecionar código do status
|
|
831
|
-
|
|
832
|
-
200
|
|
833
|
-
|
|
834
|
-
* * *
|
|
835
|
-
|
|
836
|
-
```
|
|
837
|
-
{ "Update Flow Metadata": { "value": { "success": true } }}
|
|
838
|
-
```
|
|
839
|
-
|
|
840
|
-
Header Parameters
|
|
841
|
-
|
|
842
|
-
* * *
|
|
843
|
-
|
|
844
|
-
User-Agentstring
|
|
845
|
-
|
|
846
|
-
A string do agente do usuário que identifica o software do cliente que faz a solicitação.
|
|
847
|
-
|
|
848
|
-
Authorizationstring·obrigatório
|
|
849
|
-
|
|
850
|
-
Token de portador para autenticação de API. Isso deve ser um token de acesso válido obtido por meio do fluxo OAuth apropriado ou token de usuário do sistema.
|
|
851
|
-
|
|
852
|
-
Path Parameters
|
|
853
|
-
|
|
854
|
-
* * *
|
|
855
|
-
|
|
856
|
-
Versionstring·obrigatório
|
|
857
|
-
|
|
858
|
-
Flow-IDstring·obrigatório
|
|
859
|
-
|
|
860
|
-
Corpo da solicitaçãoOpcional
|
|
861
|
-
|
|
862
|
-
* * *
|
|
863
|
-
|
|
864
|
-
Tipo de conteúdo:multipart/form-data
|
|
865
|
-
|
|
866
|
-
Esquema:object
|
|
867
|
-
|
|
868
|
-
Mostrar atributos secundários
|
|
869
|
-
|
|
870
|
-
* * *
|
|
871
|
-
|
|
872
|
-
categoriesstring
|
|
873
|
-
|
|
874
|
-
* * *
|
|
875
|
-
|
|
876
|
-
endpoint\_uristring
|
|
877
|
-
|
|
878
|
-
* * *
|
|
879
|
-
|
|
880
|
-
namestring
|
|
881
|
-
|
|
882
|
-
Respostas
|
|
883
|
-
|
|
884
|
-
* * *
|
|
885
|
-
|
|
886
|
-
Atualizar Metadados do Fluxo
|
|
887
|
-
|
|
888
|
-
200
|
|
889
|
-
|
|
890
|
-
Atualizar Metadados do Fluxo
|
|
891
|
-
|
|
892
|
-
Tipo de conteúdo:application/json
|
|
893
|
-
|
|
894
|
-
Esquema:object
|
|
895
|
-
|
|
896
|
-
Mostrar atributos secundários
|
|
897
|
-
|
|
898
|
-
* * *
|
|
899
|
-
|
|
900
|
-
successboolean
|
|
901
|
-
|
|
902
|
-
Selecionar idioma
|
|
903
|
-
|
|
904
|
-
cURLJavaScriptPython
|
|
905
|
-
|
|
906
|
-
* * *
|
|
907
|
-
|
|
908
|
-
```
|
|
909
|
-
curl --request POST \ --url 'https://graph.facebook.com/{Version}/{Flow-ID}' \ --header 'Authorization: Bearer <Token>' \ --header 'Content-Type: multipart/form-data' \ --data '{}'
|
|
910
|
-
```
|
|
911
|
-
|
|
912
|
-
Selecionar código do status
|
|
913
|
-
|
|
914
|
-
200
|
|
915
|
-
|
|
916
|
-
* * *
|
|
917
|
-
|
|
918
|
-
```
|
|
919
|
-
{ "Update Flow Metadata": { "value": { "success": true } }}
|
|
920
|
-
```
|
|
921
|
-
|
|
922
|
-
* * *
|
|
923
|
-
|
|
924
|
-
## DELETE /{Version}/{Flow-ID}
|
|
925
|
-
|
|
926
|
-
Exclui o fluxo por completo. Essa ação não é reversível. Somente um fluxo RASCUNHO pode ser excluído.
|
|
927
|
-
|
|
928
|
-
### Sintaxe da solicitação
|
|
929
|
-
|
|
930
|
-
**DELETE** /{Version}/{Flow-ID}
|
|
931
|
-
|
|
932
|
-
Testar
|
|
933
|
-
|
|
934
|
-
Selecionar idioma
|
|
935
|
-
|
|
936
|
-
cURLJavaScriptPython
|
|
937
|
-
|
|
938
|
-
* * *
|
|
939
|
-
|
|
940
|
-
```
|
|
941
|
-
curl --request DELETE \ --url 'https://graph.facebook.com/{Version}/{Flow-ID}' \ --header 'Authorization: Bearer <Token>' \ --header 'Content-Type: application/json' \ --data '{}'
|
|
942
|
-
```
|
|
943
|
-
|
|
944
|
-
Selecionar código do status
|
|
945
|
-
|
|
946
|
-
200
|
|
947
|
-
|
|
948
|
-
* * *
|
|
949
|
-
|
|
950
|
-
```
|
|
951
|
-
{ "Delete Flow": { "value": { "success": true } }}
|
|
952
|
-
```
|
|
953
|
-
|
|
954
|
-
Header Parameters
|
|
955
|
-
|
|
956
|
-
* * *
|
|
957
|
-
|
|
958
|
-
User-Agentstring
|
|
959
|
-
|
|
960
|
-
A string do agente do usuário que identifica o software do cliente que faz a solicitação.
|
|
961
|
-
|
|
962
|
-
Authorizationstring·obrigatório
|
|
963
|
-
|
|
964
|
-
Token de portador para autenticação de API. Isso deve ser um token de acesso válido obtido por meio do fluxo OAuth apropriado ou token de usuário do sistema.
|
|
965
|
-
|
|
966
|
-
Path Parameters
|
|
967
|
-
|
|
968
|
-
* * *
|
|
969
|
-
|
|
970
|
-
Versionstring·obrigatório
|
|
971
|
-
|
|
972
|
-
Flow-IDstring·obrigatório
|
|
973
|
-
|
|
974
|
-
Respostas
|
|
975
|
-
|
|
976
|
-
* * *
|
|
977
|
-
|
|
978
|
-
Exclui o fluxo por completo. Essa ação não é reversível. Somente um fluxo RASCUNHO pode ser excluído.
|
|
979
|
-
|
|
980
|
-
200
|
|
981
|
-
|
|
982
|
-
Excluir Fluxo
|
|
983
|
-
|
|
984
|
-
Tipo de conteúdo:application/json
|
|
985
|
-
|
|
986
|
-
Esquema:object
|
|
987
|
-
|
|
988
|
-
Mostrar atributos secundários
|
|
989
|
-
|
|
990
|
-
* * *
|
|
991
|
-
|
|
992
|
-
successboolean
|
|
993
|
-
|
|
994
|
-
Selecionar idioma
|
|
995
|
-
|
|
996
|
-
cURLJavaScriptPython
|
|
997
|
-
|
|
998
|
-
* * *
|
|
999
|
-
|
|
1000
|
-
```
|
|
1001
|
-
curl --request DELETE \ --url 'https://graph.facebook.com/{Version}/{Flow-ID}' \ --header 'Authorization: Bearer <Token>' \ --header 'Content-Type: application/json' \ --data '{}'
|
|
1002
|
-
```
|
|
1003
|
-
|
|
1004
|
-
Selecionar código do status
|
|
1005
|
-
|
|
1006
|
-
200
|
|
1007
|
-
|
|
1008
|
-
* * *
|
|
1009
|
-
|
|
1010
|
-
```
|
|
1011
|
-
{ "Delete Flow": { "value": { "success": true } }}
|
|
1012
|
-
```
|
|
1013
|
-
|
|
1014
|
-
* * *
|
|
1015
|
-
|
|
1016
|
-
## GET /{Version}/{Flow-ID}/assets
|
|
1017
|
-
|
|
1018
|
-
Retorna todos os ativos anexados ao fluxo. Atualmente, apenas o ativo FLOW\_JSON é suportado.
|
|
1019
|
-
|
|
1020
|
-
### Sintaxe da solicitação
|
|
1021
|
-
|
|
1022
|
-
**GET** /{Version}/{Flow-ID}/assets
|
|
1023
|
-
|
|
1024
|
-
Testar
|
|
1025
|
-
|
|
1026
|
-
Selecionar idioma
|
|
1027
|
-
|
|
1028
|
-
cURLJavaScriptPython
|
|
1029
|
-
|
|
1030
|
-
* * *
|
|
1031
|
-
|
|
1032
|
-
```
|
|
1033
|
-
curl --request GET \ --url 'https://graph.facebook.com/{Version}/{Flow-ID}/assets' \ --header 'Authorization: Bearer <Token>' \ --header 'Content-Type: multipart/form-data' \ --data '{}'
|
|
1034
|
-
```
|
|
1035
|
-
|
|
1036
|
-
Selecionar código do status
|
|
1037
|
-
|
|
1038
|
-
200
|
|
1039
|
-
|
|
1040
|
-
* * *
|
|
1041
|
-
|
|
1042
|
-
```
|
|
1043
|
-
{ "List Assets": { "value": { "data": { "0": { "asset_type": "FLOW_JSON", "download_url": "https://scontent.xx.fbcdn.net/m1/v/t0.57323-24/An_Hq0jnfJ...", "name": "flow.json" } }, "paging": { "cursors": { "after": "QVFIU...", "before": "QVFIU..." } } } }}
|
|
1044
|
-
```
|
|
1045
|
-
|
|
1046
|
-
Header Parameters
|
|
1047
|
-
|
|
1048
|
-
* * *
|
|
1049
|
-
|
|
1050
|
-
User-Agentstring
|
|
1051
|
-
|
|
1052
|
-
A string do agente do usuário que identifica o software do cliente que faz a solicitação.
|
|
1053
|
-
|
|
1054
|
-
Authorizationstring·obrigatório
|
|
1055
|
-
|
|
1056
|
-
Token de portador para autenticação de API. Isso deve ser um token de acesso válido obtido por meio do fluxo OAuth apropriado ou token de usuário do sistema.
|
|
1057
|
-
|
|
1058
|
-
Path Parameters
|
|
1059
|
-
|
|
1060
|
-
* * *
|
|
1061
|
-
|
|
1062
|
-
Versionstring·obrigatório
|
|
1063
|
-
|
|
1064
|
-
Flow-IDstring·obrigatório
|
|
1065
|
-
|
|
1066
|
-
Corpo da solicitaçãoOpcional
|
|
1067
|
-
|
|
1068
|
-
* * *
|
|
1069
|
-
|
|
1070
|
-
Tipo de conteúdo:multipart/form-data
|
|
1071
|
-
|
|
1072
|
-
Esquema:object
|
|
1073
|
-
|
|
1074
|
-
Respostas
|
|
1075
|
-
|
|
1076
|
-
* * *
|
|
1077
|
-
|
|
1078
|
-
Retorna todos os ativos anexados ao fluxo. Atualmente, apenas o ativo FLOW\_JSON é suportado.
|
|
1079
|
-
|
|
1080
|
-
200
|
|
1081
|
-
|
|
1082
|
-
Listar Ativos
|
|
1083
|
-
|
|
1084
|
-
Tipo de conteúdo:application/json
|
|
1085
|
-
|
|
1086
|
-
Esquema:object
|
|
1087
|
-
|
|
1088
|
-
Mostrar atributos secundários
|
|
1089
|
-
|
|
1090
|
-
* * *
|
|
1091
|
-
|
|
1092
|
-
dataarray of object
|
|
1093
|
-
|
|
1094
|
-
Mostrar atributos secundários
|
|
1095
|
-
|
|
1096
|
-
* * *
|
|
1097
|
-
|
|
1098
|
-
data\[\]object
|
|
1099
|
-
|
|
1100
|
-
Mostrar atributos secundários
|
|
1101
|
-
|
|
1102
|
-
* * *
|
|
1103
|
-
|
|
1104
|
-
asset\_typestring
|
|
1105
|
-
|
|
1106
|
-
* * *
|
|
1107
|
-
|
|
1108
|
-
download\_urlstring
|
|
1109
|
-
|
|
1110
|
-
* * *
|
|
1111
|
-
|
|
1112
|
-
namestring
|
|
1113
|
-
|
|
1114
|
-
* * *
|
|
1115
|
-
|
|
1116
|
-
pagingobject
|
|
1117
|
-
|
|
1118
|
-
Mostrar atributos secundários
|
|
1119
|
-
|
|
1120
|
-
* * *
|
|
1121
|
-
|
|
1122
|
-
cursorsobject
|
|
1123
|
-
|
|
1124
|
-
Mostrar atributos secundários
|
|
1125
|
-
|
|
1126
|
-
* * *
|
|
1127
|
-
|
|
1128
|
-
afterstring
|
|
1129
|
-
|
|
1130
|
-
* * *
|
|
1131
|
-
|
|
1132
|
-
beforestring
|
|
1133
|
-
|
|
1134
|
-
Selecionar idioma
|
|
1135
|
-
|
|
1136
|
-
cURLJavaScriptPython
|
|
1137
|
-
|
|
1138
|
-
* * *
|
|
1139
|
-
|
|
1140
|
-
```
|
|
1141
|
-
curl --request GET \ --url 'https://graph.facebook.com/{Version}/{Flow-ID}/assets' \ --header 'Authorization: Bearer <Token>' \ --header 'Content-Type: multipart/form-data' \ --data '{}'
|
|
1142
|
-
```
|
|
1143
|
-
|
|
1144
|
-
Selecionar código do status
|
|
1145
|
-
|
|
1146
|
-
200
|
|
1147
|
-
|
|
1148
|
-
* * *
|
|
1149
|
-
|
|
1150
|
-
```
|
|
1151
|
-
{ "List Assets": { "value": { "data": { "0": { "asset_type": "FLOW_JSON", "download_url": "https://scontent.xx.fbcdn.net/m1/v/t0.57323-24/An_Hq0jnfJ...", "name": "flow.json" } }, "paging": { "cursors": { "after": "QVFIU...", "before": "QVFIU..." } } } }}
|
|
1152
|
-
```
|
|
1153
|
-
|
|
1154
|
-
* * *
|
|
1155
|
-
|
|
1156
|
-
## POST /{Version}/{Flow-ID}/assets
|
|
1157
|
-
|
|
1158
|
-
Usado para fazer o upload de um arquivo JSON de fluxo com o conteúdo do fluxo. Consulte a documentação do JSON de fluxo aqui [https://developers.facebook.com/docs/whatsapp/flows/reference/flowjson](https://developers.facebook.com/docs/whatsapp/flows/reference/flowjson)
|
|
1159
|
-
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
-
O arquivo deve ser anexado como dados. A resposta incluirá quaisquer erros de validação no arquivo JSON.
|
|
1163
|
-
|
|
1164
|
-
### Sintaxe da solicitação
|
|
1165
|
-
|
|
1166
|
-
**POST** /{Version}/{Flow-ID}/assets
|
|
1167
|
-
|
|
1168
|
-
Testar
|
|
1169
|
-
|
|
1170
|
-
Selecionar idioma
|
|
1171
|
-
|
|
1172
|
-
cURLJavaScriptPython
|
|
1173
|
-
|
|
1174
|
-
* * *
|
|
1175
|
-
|
|
1176
|
-
```
|
|
1177
|
-
curl --request POST \ --url 'https://graph.facebook.com/{Version}/{Flow-ID}/assets' \ --header 'Authorization: Bearer <Token>' \ --header 'Content-Type: multipart/form-data' \ --data '{}'
|
|
1178
|
-
```
|
|
1179
|
-
|
|
1180
|
-
Selecionar código do status
|
|
1181
|
-
|
|
1182
|
-
200
|
|
1183
|
-
|
|
1184
|
-
* * *
|
|
1185
|
-
|
|
1186
|
-
```
|
|
1187
|
-
{ "Upload Flow JSON Asset": { "value": { "success": true, "validation_errors": { "0": { "column_end": 30, "column_start": 17, "error": "INVALID_PROPERTY", "error_type": "JSON_SCHEMA_ERROR", "line_end": 46, "line_start": 46, "message": "The property \"initial-text\" cannot be specified at \"$root/screens/0/layout/children/2/children/0\"." } } } }}
|
|
1188
|
-
```
|
|
1189
|
-
|
|
1190
|
-
Header Parameters
|
|
1191
|
-
|
|
1192
|
-
* * *
|
|
1193
|
-
|
|
1194
|
-
User-Agentstring
|
|
1195
|
-
|
|
1196
|
-
A string do agente do usuário que identifica o software do cliente que faz a solicitação.
|
|
1197
|
-
|
|
1198
|
-
Authorizationstring·obrigatório
|
|
1199
|
-
|
|
1200
|
-
Token de portador para autenticação de API. Isso deve ser um token de acesso válido obtido por meio do fluxo OAuth apropriado ou token de usuário do sistema.
|
|
1201
|
-
|
|
1202
|
-
Path Parameters
|
|
1203
|
-
|
|
1204
|
-
* * *
|
|
1205
|
-
|
|
1206
|
-
Versionstring·obrigatório
|
|
1207
|
-
|
|
1208
|
-
Flow-IDstring·obrigatório
|
|
1209
|
-
|
|
1210
|
-
Corpo da solicitaçãoOpcional
|
|
1211
|
-
|
|
1212
|
-
* * *
|
|
1213
|
-
|
|
1214
|
-
Tipo de conteúdo:multipart/form-data
|
|
1215
|
-
|
|
1216
|
-
Esquema:object
|
|
1217
|
-
|
|
1218
|
-
Mostrar atributos secundários
|
|
1219
|
-
|
|
1220
|
-
* * *
|
|
1221
|
-
|
|
1222
|
-
asset\_typestring
|
|
1223
|
-
|
|
1224
|
-
* * *
|
|
1225
|
-
|
|
1226
|
-
filestring (binary)
|
|
1227
|
-
|
|
1228
|
-
* * *
|
|
1229
|
-
|
|
1230
|
-
namestring
|
|
1231
|
-
|
|
1232
|
-
Respostas
|
|
1233
|
-
|
|
1234
|
-
* * *
|
|
1235
|
-
|
|
1236
|
-
Usado para fazer o upload de um arquivo JSON de fluxo com o conteúdo do fluxo. Consulte a documentação do JSON de fluxo aqui [https://developers.facebook.com/docs/whatsapp/flows/reference/flowjson](https://developers.facebook.com/docs/whatsapp/flows/reference/flowjson)
|
|
1237
|
-
|
|
1238
|
-
|
|
1239
|
-
|
|
1240
|
-
O arquivo deve ser anexado como dados. A resposta incluirá quaisquer erros de validação no arquivo JSON.
|
|
1241
|
-
|
|
1242
|
-
200
|
|
1243
|
-
|
|
1244
|
-
Carregar Ativo JSON do Fluxo
|
|
1245
|
-
|
|
1246
|
-
Tipo de conteúdo:application/json
|
|
1247
|
-
|
|
1248
|
-
Esquema:object
|
|
1249
|
-
|
|
1250
|
-
Mostrar atributos secundários
|
|
1251
|
-
|
|
1252
|
-
* * *
|
|
1253
|
-
|
|
1254
|
-
successboolean
|
|
1255
|
-
|
|
1256
|
-
* * *
|
|
1257
|
-
|
|
1258
|
-
validation\_errorsarray of object
|
|
1259
|
-
|
|
1260
|
-
Mostrar atributos secundários
|
|
1261
|
-
|
|
1262
|
-
* * *
|
|
1263
|
-
|
|
1264
|
-
validation\_errors\[\]object
|
|
1265
|
-
|
|
1266
|
-
Mostrar atributos secundários
|
|
1267
|
-
|
|
1268
|
-
* * *
|
|
1269
|
-
|
|
1270
|
-
column\_endnumber
|
|
1271
|
-
|
|
1272
|
-
* * *
|
|
1273
|
-
|
|
1274
|
-
column\_startnumber
|
|
1275
|
-
|
|
1276
|
-
* * *
|
|
1277
|
-
|
|
1278
|
-
errorstring
|
|
1279
|
-
|
|
1280
|
-
Mostrar atributos secundários
|
|
1281
|
-
|
|
1282
|
-
* * *
|
|
1283
|
-
|
|
1284
|
-
error\_typestring
|
|
1285
|
-
|
|
1286
|
-
* * *
|
|
1287
|
-
|
|
1288
|
-
line\_endnumber
|
|
1289
|
-
|
|
1290
|
-
* * *
|
|
1291
|
-
|
|
1292
|
-
line\_startnumber
|
|
1293
|
-
|
|
1294
|
-
* * *
|
|
1295
|
-
|
|
1296
|
-
messagestring
|
|
1297
|
-
|
|
1298
|
-
Selecionar idioma
|
|
1299
|
-
|
|
1300
|
-
cURLJavaScriptPython
|
|
1301
|
-
|
|
1302
|
-
* * *
|
|
1303
|
-
|
|
1304
|
-
```
|
|
1305
|
-
curl --request POST \ --url 'https://graph.facebook.com/{Version}/{Flow-ID}/assets' \ --header 'Authorization: Bearer <Token>' \ --header 'Content-Type: multipart/form-data' \ --data '{}'
|
|
1306
|
-
```
|
|
1307
|
-
|
|
1308
|
-
Selecionar código do status
|
|
1309
|
-
|
|
1310
|
-
200
|
|
1311
|
-
|
|
1312
|
-
* * *
|
|
1313
|
-
|
|
1314
|
-
```
|
|
1315
|
-
{ "Upload Flow JSON Asset": { "value": { "success": true, "validation_errors": { "0": { "column_end": 30, "column_start": 17, "error": "INVALID_PROPERTY", "error_type": "JSON_SCHEMA_ERROR", "line_end": 46, "line_start": 46, "message": "The property \"initial-text\" cannot be specified at \"$root/screens/0/layout/children/2/children/0\"." } } } }}
|
|
1316
|
-
```
|
|
1317
|
-
|
|
1318
|
-
* * *
|
|
1319
|
-
|
|
1320
|
-
## POST /{Version}/{Flow-ID}/publish
|
|
1321
|
-
|
|
1322
|
-
Atualiza o status do fluxo como "PUBLICADO". Essa ação não é reversível. O fluxo e seus ativos se tornam imutáveis após a publicação. Para atualizar o fluxo, você deve criar um novo fluxo e especificar o ID do fluxo anterior como o parâmetro 'clone\_flow\_id'.
|
|
1323
|
-
|
|
1324
|
-
### Sintaxe da solicitação
|
|
1325
|
-
|
|
1326
|
-
**POST** /{Version}/{Flow-ID}/publish
|
|
1327
|
-
|
|
1328
|
-
Testar
|
|
1329
|
-
|
|
1330
|
-
Selecionar idioma
|
|
1331
|
-
|
|
1332
|
-
cURLJavaScriptPython
|
|
1333
|
-
|
|
1334
|
-
* * *
|
|
1335
|
-
|
|
1336
|
-
```
|
|
1337
|
-
curl --request POST \ --url 'https://graph.facebook.com/{Version}/{Flow-ID}/publish' \ --header 'Authorization: Bearer <Token>' \ --header 'Content-Type: application/json' \ --data '{}'
|
|
1338
|
-
```
|
|
1339
|
-
|
|
1340
|
-
Selecionar código do status
|
|
1341
|
-
|
|
1342
|
-
200
|
|
1343
|
-
|
|
1344
|
-
* * *
|
|
1345
|
-
|
|
1346
|
-
```
|
|
1347
|
-
{ "Publish Flow": { "value": { "success": true } }}
|
|
1348
|
-
```
|
|
1349
|
-
|
|
1350
|
-
Header Parameters
|
|
1351
|
-
|
|
1352
|
-
* * *
|
|
1353
|
-
|
|
1354
|
-
User-Agentstring
|
|
1355
|
-
|
|
1356
|
-
A string do agente do usuário que identifica o software do cliente que faz a solicitação.
|
|
1357
|
-
|
|
1358
|
-
Authorizationstring·obrigatório
|
|
1359
|
-
|
|
1360
|
-
Token de portador para autenticação de API. Isso deve ser um token de acesso válido obtido por meio do fluxo OAuth apropriado ou token de usuário do sistema.
|
|
1361
|
-
|
|
1362
|
-
Path Parameters
|
|
1363
|
-
|
|
1364
|
-
* * *
|
|
1365
|
-
|
|
1366
|
-
Versionstring·obrigatório
|
|
1367
|
-
|
|
1368
|
-
Flow-IDstring·obrigatório
|
|
1369
|
-
|
|
1370
|
-
Respostas
|
|
1371
|
-
|
|
1372
|
-
* * *
|
|
1373
|
-
|
|
1374
|
-
Atualiza o status do fluxo como "PUBLICADO". Essa ação não é reversível. O fluxo e seus ativos se tornam imutáveis após a publicação. Para atualizar o fluxo, você deve criar um novo fluxo e especificar o ID do fluxo anterior como o parâmetro 'clone\_flow\_id'.
|
|
1375
|
-
|
|
1376
|
-
200
|
|
1377
|
-
|
|
1378
|
-
Publicar Fluxo
|
|
1379
|
-
|
|
1380
|
-
Tipo de conteúdo:application/json
|
|
1381
|
-
|
|
1382
|
-
Esquema:object
|
|
1383
|
-
|
|
1384
|
-
Mostrar atributos secundários
|
|
1385
|
-
|
|
1386
|
-
* * *
|
|
1387
|
-
|
|
1388
|
-
successboolean
|
|
1389
|
-
|
|
1390
|
-
Selecionar idioma
|
|
1391
|
-
|
|
1392
|
-
cURLJavaScriptPython
|
|
1393
|
-
|
|
1394
|
-
* * *
|
|
1395
|
-
|
|
1396
|
-
```
|
|
1397
|
-
curl --request POST \ --url 'https://graph.facebook.com/{Version}/{Flow-ID}/publish' \ --header 'Authorization: Bearer <Token>' \ --header 'Content-Type: application/json' \ --data '{}'
|
|
1398
|
-
```
|
|
1399
|
-
|
|
1400
|
-
Selecionar código do status
|
|
1401
|
-
|
|
1402
|
-
200
|
|
1403
|
-
|
|
1404
|
-
* * *
|
|
1405
|
-
|
|
1406
|
-
```
|
|
1407
|
-
{ "Publish Flow": { "value": { "success": true } }}
|
|
1408
|
-
```
|
|
1409
|
-
|
|
1410
|
-
* * *
|
|
1411
|
-
|
|
1412
|
-
## POST /{Version}/{Flow-ID}/deprecate
|
|
1413
|
-
|
|
1414
|
-
Atualiza o status do fluxo como "DEPRECATED". Essa ação não é reversível. Somente um fluxo publicado pode ser depreciado para evitar enviá-lo ou abri-lo.
|
|
1415
|
-
|
|
1416
|
-
### Sintaxe da solicitação
|
|
1417
|
-
|
|
1418
|
-
**POST** /{Version}/{Flow-ID}/deprecate
|
|
1419
|
-
|
|
1420
|
-
Testar
|
|
1421
|
-
|
|
1422
|
-
Selecionar idioma
|
|
1423
|
-
|
|
1424
|
-
cURLJavaScriptPython
|
|
1425
|
-
|
|
1426
|
-
* * *
|
|
1427
|
-
|
|
1428
|
-
```
|
|
1429
|
-
curl --request POST \ --url 'https://graph.facebook.com/{Version}/{Flow-ID}/deprecate' \ --header 'Authorization: Bearer <Token>' \ --header 'Content-Type: application/json' \ --data '{}'
|
|
1430
|
-
```
|
|
1431
|
-
|
|
1432
|
-
Selecionar código do status
|
|
1433
|
-
|
|
1434
|
-
200
|
|
1435
|
-
|
|
1436
|
-
* * *
|
|
1437
|
-
|
|
1438
|
-
```
|
|
1439
|
-
{ "Deprecate Flow": { "value": { "success": true } }}
|
|
1440
|
-
```
|
|
1441
|
-
|
|
1442
|
-
Header Parameters
|
|
1443
|
-
|
|
1444
|
-
* * *
|
|
1445
|
-
|
|
1446
|
-
User-Agentstring
|
|
1447
|
-
|
|
1448
|
-
A string do agente do usuário que identifica o software do cliente que faz a solicitação.
|
|
1449
|
-
|
|
1450
|
-
Authorizationstring·obrigatório
|
|
1451
|
-
|
|
1452
|
-
Token de portador para autenticação de API. Isso deve ser um token de acesso válido obtido por meio do fluxo OAuth apropriado ou token de usuário do sistema.
|
|
1453
|
-
|
|
1454
|
-
Path Parameters
|
|
1455
|
-
|
|
1456
|
-
* * *
|
|
1457
|
-
|
|
1458
|
-
Versionstring·obrigatório
|
|
1459
|
-
|
|
1460
|
-
Flow-IDstring·obrigatório
|
|
1461
|
-
|
|
1462
|
-
Respostas
|
|
1463
|
-
|
|
1464
|
-
* * *
|
|
1465
|
-
|
|
1466
|
-
Atualiza o status do fluxo como "DEPRECATED". Essa ação não é reversível. Somente um fluxo publicado pode ser depreciado para evitar enviá-lo ou abri-lo.
|
|
1467
|
-
|
|
1468
|
-
200
|
|
1469
|
-
|
|
1470
|
-
Descontinuar Flow
|
|
1471
|
-
|
|
1472
|
-
Tipo de conteúdo:application/json
|
|
1473
|
-
|
|
1474
|
-
Esquema:object
|
|
1475
|
-
|
|
1476
|
-
Mostrar atributos secundários
|
|
1477
|
-
|
|
1478
|
-
* * *
|
|
1479
|
-
|
|
1480
|
-
successboolean
|
|
1481
|
-
|
|
1482
|
-
Selecionar idioma
|
|
1483
|
-
|
|
1484
|
-
cURLJavaScriptPython
|
|
1485
|
-
|
|
1486
|
-
* * *
|
|
1487
|
-
|
|
1488
|
-
```
|
|
1489
|
-
curl --request POST \ --url 'https://graph.facebook.com/{Version}/{Flow-ID}/deprecate' \ --header 'Authorization: Bearer <Token>' \ --header 'Content-Type: application/json' \ --data '{}'
|
|
1490
|
-
```
|
|
1491
|
-
|
|
1492
|
-
Selecionar código do status
|
|
1493
|
-
|
|
1494
|
-
200
|
|
1495
|
-
|
|
1496
|
-
* * *
|
|
1497
|
-
|
|
1498
|
-
```
|
|
1499
|
-
{ "Deprecate Flow": { "value": { "success": true } }}
|
|
1500
|
-
```
|
|
1501
|
-
|
|
1502
|
-
## Autenticação
|
|
1503
|
-
|
|
1504
|
-
**Esquema**
|
|
1505
|
-
|
|
1506
|
-
**Tipo**
|
|
1507
|
-
|
|
1508
|
-
**Localização**
|
|
1509
|
-
|
|
1510
|
-
bearerAuth
|
|
1511
|
-
|
|
1512
|
-
HTTP Bearer
|
|
1513
|
-
|
|
1514
|
-
Header: Authorization
|
|
1515
|
-
|
|
1516
|
-
### Exemplos de uso
|
|
1517
|
-
|
|
1518
|
-
bearerAuth:
|
|
1519
|
-
|
|
1520
|
-
Include Authorization: Bearer your-token-here in request headers
|
|
1521
|
-
|
|
1522
|
-
### Requisitos de autenticação global
|
|
1523
|
-
|
|
1524
|
-
Todos os pontos de extremidade requerem o seguinte:
|
|
1525
|
-
|
|
1526
|
-
bearerAuth
|
|
1527
|
-
|
|
1528
|
-
Você achou esta página útil?
|
|
1529
|
-
|
|
1530
|
-

|
|
1531
|
-
|
|
1532
|
-

|
|
8
|
+
Recarregar página
|