Add WhatsApp Flow JSON
Add WhatsApp Flow JSON. File created from provided JSON content is sent and validated, errors found are provided in response. Regardless of whether any validation errors are returned, the Flow JSON is loaded on the Meta side and the request is considered successful. The maximum size of created file is 10MB. More information about JSON structure can be found under Meta documentation: https://developers.facebook.com/docs/whatsapp/flows/reference/flowjson.
Authorizations:
Scopes:
Request rate limit:
path Parameters
sender required | string Example: 447796344125 Registered WhatsApp sender number. Must be in international format. |
flowId required | string Example: 123456 ID of the flow to attach JSON to. |
Request Body schema:
application/jsonFlow JSON file content. The size is limited to 10 MB.
Responses
Flow JSON Added
Bad Request
Unauthorized
Forbidden
Not Found
Too Many Requests
Internal Server Error
Request samples
- Payload
- cURL
- Java
- C#
- Go
- Python
- PHP
- JavaScript
- NodeJs
- Ruby
{- "version": "2.1",
- "data_api_version": "3.0",
- "routing_model": {
- "MY_FIRST_SCREEN": [ ]
}, - "screens": {
- "id": "MY_FIRST_SCREEN",
- "title": "MY_FIRST_SCREEN",
- "terminal": true,
- "data": {
- "hello_world_text": {
- "type": "string",
- "__example__": "Hello World"
}
}, - "layout": {
- "type": "SingleColumnLayout",
- "children": [
- {
- "type": "TextHeading",
- "text": "${data.hello_world_text}"
}, - {
- "type": "Footer",
- "label": "Static footer label",
- "on-click-action": {
- "name": "data_exchange",
- "payload": { }
}
}
]
}
}
}
Response samples
- 201
- 400
- 401
- 403
- 404
- 429
- 500
{- "validationErrors": [
- {
- "error": "INVALID_PROPERTY",
- "errorType": "JSON_SCHEMA_ERROR",
- "message": "The property \"initial-text\" cannot be specified at \"$root/screens/0/layout/children/2/children/0\".",
- "lineStart": 46,
- "lineEnd": 46,
- "columnStart": 17,
- "columnEnd": 30
}
]
}
Need assistance
Encountering issues
What's new? Check out
Unsure about a term? See