post
https://partner.gupshup.io/partner/bizgate/app//flows
Creates a new WhatsApp Flow on an app from the supplied definition, so interactive screens can be attached to templates or session messages.
Request parameters
Path parameters
| Key | Description | Values | Data Type | Required/Optional |
|---|---|---|---|---|
| appId | Identifier of the WhatsApp app the call acts on. | 6f414190-d45c-4671-bca1-fb6c3018cb13 | String | Required |
Body
| Key | Description | Values | Data Type | Required/Optional |
|---|---|---|---|---|
| name | Flow name | order-tracking-flow | — | Required |
| categories | Flow categories | ["OTHER"] | — | Required |
| endpoint_uri | Endpoint the flow calls back into. Required for a DYNAMIC flow, omitted otherwise. | https://example.com/whatsapp/flow-endpoint | — | Optional |
Sample cURL — Create flow.
curl --request POST \
--url 'https://partner.gupshup.io/partner/bizgate/app/6f414190-d45c-4671-bca1-fb6c3018cb13/flows' \
--header 'Authorization: Bearer <UT>' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--data '{
"name" : "order-tracking-flow",
"categories" : [ "OTHER" ]
}'Sample success response (200)
{
"status": "success",
"data": {
"id": "1616289422261049"
}
}Recent Requests
Log in to see full request history
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||
Loading…