Create a WhatsApp Flow on Meta for a WhatsApp Official channel account. The Flow is created as a draft unless publish is true; with publish: true Meta publishes it only when its Flow JSON has no validation errors, and published tells whether it did. The Flow appears in the platform's Flow management. Requires an API key with the whatsapp-flows:write scope and an account plan that includes WhatsApp Flows (PRO/MAX); otherwise the API answers 403 with code FEATURE_NOT_IN_PLAN. When publish is true and Meta saves the draft but refuses to publish it, the response is still 201 with published: false, the validation_errors and publish_refused_reason: the Flow exists, so fix it with POST /v2/whatsapp-flows/{flow_id} and publish it with /publish instead of creating it again. To send a Flow, use a message template with a Flow button (POST /v2/messages/template); templates are created in the platform.
Recent Requests
Log in to see full request history
Time
Status
User Agent
Retrieving recent requests…
Loading…
Responses
401
Authentication error - invalid or missing api-token
403
API key is missing the whatsapp-flows:write scope, or (write routes) the account plan does not include WhatsApp Flows (FEATURE_NOT_IN_PLAN)
404
Channel account not found
409
The channel has no valid WhatsApp Official authentication (details.code = CHANNEL_NOT_CONFIGURED). Reconnect it in the platform; retrying will not help.
500
Unexpected error on Clint's side (details.code = INTERNAL_ERROR).
502
Meta failed or could not be reached (details.code = UPSTREAM_ERROR). Safe to retry.
Updated about 1 month ago
Did this page help you?
Yes
No
Language
ShellNodeRubyPHPPython
Loading…
Response
Click Try It! to start a request and see the response here! Or choose an example: