List flows

List automated flows with status, trigger and the steps they contain.

GET https://cotlet.dev/api/v1/privy/flows

read

Returns each flow with its status, the trigger that starts it and its steps in order (email, sms, delay, split, tag, update_contact). It reads the flow and changes nothing; flows are built and published in the Privy flow builder.

Parameters

Parameters: list_flows
NameTypeDescription
status string string draft, active or inactive
page integer integer Page number, starting at 1
per_page integer integer Items per page

Request

cURL
curl https://cotlet.dev/api/v1/privy/flows \
  -H "Authorization: Bearer $COTLET_API_KEY"
Python
result = client.call("privy", "list_flows")
Node.js
const result = await cotlet.call('privy', 'list_flows');
CLI
cotlet call privy list_flows

Example response

JSON

{
  "data": [
    {
      "id": "flw_2e71",
      "title": "Welcome email",
      "status": "active",
      "trigger": "Customer subscribed to marketing",
      "steps": [
        "email",
        "delay",
        "email"
      ]
    },
    {
      "id": "flw_90bb",
      "title": "Abandoned cart",
      "status": "inactive",
      "trigger": "Cart abandoned",
      "steps": [
        "delay",
        "email",
        "email"
      ]
    }
  ],
  "pagination": {
    "page": 1,
    "per_page": 25,
    "total_count": 2,
    "total_pages": 1
  }
}

Sign in once. Your agent does the rest.

Sign up and add the apps you need. Free 7-day trial with 2,000 credits, no card needed.