Lipachat Docs
  • Lipachat Docs
  • Getting Started
    • Getting Started with Lipachat
  • API
    • Sending Messages
    • Sending Media
    • Sending Buttons
    • Sending Interactive Lists
    • Templates
      • Creating a Template
      • Updating a Template
      • Listing Message Templates
      • Sending Message Templates
    • Whatsapp Flows
      • Creating a flow
      • Updating a flow
      • Get flow preview
      • Publish a flow
      • Send a flow
      • List all flows
    • Webhooks
  • Reference
    • Sandbox
  • Go Live
  • Guides
    • Build A Chat Bot
  • CRM Workflow
Powered by GitBook
On this page
  1. API
  2. Whatsapp Flows

Creating a flow

POST https://gateway.lipachat.com/api/v1/whatsapp/manage/flow

Headers

Name
Value

Content-Type

multipart/form-data

apiKey

Body

Name
Type
Description

phoneNumber

string

Sandbox number +254110090747 or your own WABA phone number.

name

string

Name of your flow

categories

string

Category of the flow: Example: OTHERS

file

file

The file containing your whatsapp flow. File should be of type .json

Example Request

{
  "phoneNumber": "254712345678",
  "name": "BANK_TEST_FLOW_V2",
  "categories": "OTHER",
  "file": "filename.json"
}

Response

{
  "timestamp": "2024-03-12T10:01:04.71248",
  "data": {
    "id": 4,
    "waFlowId": "2044724355999872",
    "name": "BANK_TEST_FLOW_V2",
    "status": "DRAFT",
    "categories": [
      "OTHER"
    ],
    "createdAt": "2024-03-12T07:00:55.887+00:00",
    "updatedAt": "2024-03-12T07:00:58.598+00:00"
   },
  "status": "success",
  "message": "",
  "errors": null
}
{
    "timestamp": "2024-09-15T20:06:38.675567555",
    "data": null,
    "status": "error",
    "message": "Request failed.",
    "errors": null
}
{
    "timestamp": "2024-09-15T20:07:23.464199513",
    "data": null,
    "status": "success",
    "message": "Invalid credentials",
    "errors": null
}
PreviousWhatsapp FlowsNextUpdating a flow

Last updated 5 months ago

Get apiKey from app portal settings tab

https://app.lipachat.com/app/settings