Experia Docs

Flow API Documentation

Overview

The Flow API allows you to retrieve a list of available flows in your account. Flows are used as part of survey creation and management—specifically, the key of a flow is used as the flowKey parameter in survey APIs.


Endpoint

Get All Flows

  • Method: GET
  • Path: /v2/flow/getAll
  • Headers:
    • X-API-Key (required)
  • Query Parameters:
    • resultSize (optional, int): Number of flows to return per page
    • pageToken (optional, string): Token for pagination, can be null

Request Parameters

NameInTypeRequiredDescription
X-API-KeyheaderstringYesYour API key
resultSizequeryintNoNumber of flows to return
pageTokenquerystringNoPagination token, can be null

Example Response

{
  "error": "",
  "flows": [
    {
      "key": "FLOW_KEY",
      "name": "FLOW_NAME",
      "trigger": "WHATSAPP",
      "status": 0
    }
  ]
}

Field Reference

FieldTypeDescription
errorstringError message if any, empty string if successful
flowsarrayList of flow objects
keystringUnique identifier for the flow (used as flowKey in surveys)
namestringName of the flow
triggerstringTrigger type for the flow (e.g., WHATSAPP)
statusintStatus code (e.g., 0 = active, other values may indicate disabled)

Usage in Surveys

When creating or updating a survey, you must provide a flowKey. This should be set to the key value of the desired flow from the /v2/flow/getAll response.

Example usage in survey creation:

{
  "name": "Customer Feedback Survey",
  "clients": [ ... ],
  "TempMsgID": "TEMPLATE_ID",
  "flowKey": "FLOW_KEY"
}

References

On this page