ListApiFlowsRequest
No fields.
Required scope: flow:read
POST /public-api/publicapi.v1.Flow/ListApiFlows
Lists the enabled flows the actor may complete through Submit Flow. Only flow types that opt into the public API are listed; today that is the create prospect flow (“Prospect aanmaken”), which shoots in a new prospect. Draft and archived flows, and flows the actor may not start, are not listed. This is read-only.
{}Each entry in flows has its id, name, flowTypeId and flowTypeName,
the questions of its form and its own inputs:
{ "flows": [ { "id": "6f1c2b9e-1d1f-4c55-9a43-2f3f7a4d9b10", "name": "Website leads", "flowTypeId": "2d34c6f1-a377-41f2-9520-20731cf5ed7c", "flowTypeName": "Prospect aanmaken", "questions": [ { "key": "0b3f8f8e-5c43-4f63-9a6f-0e3a7b0c1d22", "fieldKey": "primary_contact_person", "dataFieldId": "0b3f8f8e-5c43-4f63-9a6f-0e3a7b0c1d22", "label": "Contact person", "type": "contact_person", "requiredSubFields": ["first_name", "last_name"], "requiredAnyOf": ["email", "phone"] } ], "inputs": [ { "key": "source_id", "type": "string", "description": "Where the prospect comes from: the id of one of the workspace's prospect sources. Ignored when the flow has a fixed source." }, { "key": "opt_in", "type": "boolean", "description": "Whether the prospect agreed to the opt-in the flow's form asks (its consent question); the answer to that question wins. Ignored when the form asks no opt-in." } ] } ]}Answer each question under its key (the data field id, else the form field
key). type is the form block type; required questions must be answered
unless they are conditional. Choice questions list their options. A
contact_person or company answer is an object whose subFields it offers
(empty is all), with requiredSubFields and at least one of requiredAnyOf.
A consent question is the form’s opt-in: its label is the statement the
person agrees to and its answer true or false; a required one must be
true.
POST /public-api/publicapi.v1.Flow/ListApiFlows Lists the enabled flows the API key actor may start through the API: only flow types that opt in (for example "Prospect aanmaken", which creates a prospect), with the questions of each flow's form and the flow's own inputs. Use one with SubmitFlow.
No fields.
| Field | Type |
|---|---|
flows | repeated ApiFlow |