PeumeAPI

Social publishing & inbox · WhatsApp

Create flow

Create a new WhatsApp Flow in DRAFT status. Optionally clone an existing flow.

$0.002 per callRuns on an account you connect

Call it

curl https://api.peume.com/v1/call/whatsapp-create-flow \
  -H "Authorization: Bearer $PEUME_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "input": {
    "accountId": "your accountId",
    "name": "your name",
    "categories": []
  }
}'

Answer: {"id": "run_…", "status": "completed", "cost_usd": …, "output": {…}}. Long jobs answer 202 with a run id to read later. From an AI agent, connect the MCP server and ask for this by name: whatsapp-create-flow.

Parameters

accountIdRequiredstring

WhatsApp account ID

nameRequiredstring

Flow display name

categoriesRequiredarray

Flow categories

cloneFlowIdstring

Optional: ID of an existing flow to clone the Flow JSON from

asVersionboolean

When cloning, true keeps the clone in cloneFlowId's version lineage (auto-numbered next version); false/absent creates an independent flow. Ignored without cloneFlowId.

endpointUristring

HTTPS-only data exchange endpoint for the flow. Settable only while the flow is in DRAFT, and the flow's uploaded Flow JSON must declare data_api_version "3.0" for the endpoint to be used.

Start free · $1 of calls included

Every API your product needs. One key.

7,267 endpoints, one bill, and you only pay for calls that work.