WaMCP
Api referenceflows

Create Flow

Create a WhatsApp Flow (optionally with Flow JSON, optionally published).

POST
/api/flows/

Create a WhatsApp Flow (optionally with Flow JSON, optionally published).

Authorization

HTTPBearer
AuthorizationBearer <token>

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

curl -X POST "https://example.com/api/flows/" \  -H "Content-Type: application/json" \  -d '{    "client_id": "string",    "name": "string",    "categories": [      "SIGN_UP"    ]  }'
null
{
  "detail": [
    {
      "loc": [
        "string"
      ],
      "msg": "string",
      "type": "string",
      "input": null,
      "ctx": {}
    }
  ]
}