Get all Flows
Get all Flows for your organization.
curl --request GET \
--url https://api.frigade.com/v1/public/flows \
--header 'Authorization: Bearer <token>'
{
"data": [
{
"id": 123,
"name": "New User Announcement",
"data": "{\"steps\": [{\"id\": \"step_1\", \"title\": \"Welcome to my app!\", \"subtitle\": \"Let me show you around.\"}]}",
"targetingLogic": "user.property('isAdmin') == true",
"type": "CHECKLIST",
"slug": "flow_abc",
"createdAt": "2024-01-01T00:00:00Z",
"modifiedAt": "2024-01-01T00:00:00Z",
"version": 1,
"status": "ACTIVE",
"codeSnippet": "<Frigade.Announcement flowId=\"my-flow-id\" />"
}
],
"offset": 0,
"limit": 100
}
Authorizations
Authentication header of the form Bearer: <token>
, where <token>
is either your public or private API key. See when to use which
Response
The data returned by the query
The numeric ID of the Flow. This number will be different depending on the version used
The name of the Flow
"New User Announcement"
JSON encoded raw data of the Flow as defined in the Flow's YAML configuration
"{\"steps\": [{\"id\": \"step_1\", \"title\": \"Welcome to my app!\", \"subtitle\": \"Let me show you around.\"}]}"
The targeting logic for the Flow
"user.property('isAdmin') == true"
The type of Flow
ANNOUNCEMENT
, BANNER
, CARD
, CHECKLIST
, CUSTOM
, FORM
, SURVEY
, TOUR
"CHECKLIST"
A unique identifier for the Flow such as flow_abc
. Slugs stay the same between environment and versions.
"flow_abc"
The data the Flow was created in ISO 8601 format
"2024-01-01T00:00:00Z"
The data the Flow was last modified in ISO 8601 format
"2024-01-01T00:00:00Z"
The version of the Flow
1
The status of the Flow
ACTIVE
, ARCHIVED
, DRAFT
"ACTIVE"
The original code snippet for the Flow when it was created
"<Frigade.Announcement flowId=\"my-flow-id\" />"
The current pagination offset (if any)
0
The total number of records returned in this response
100
curl --request GET \
--url https://api.frigade.com/v1/public/flows \
--header 'Authorization: Bearer <token>'
{
"data": [
{
"id": 123,
"name": "New User Announcement",
"data": "{\"steps\": [{\"id\": \"step_1\", \"title\": \"Welcome to my app!\", \"subtitle\": \"Let me show you around.\"}]}",
"targetingLogic": "user.property('isAdmin') == true",
"type": "CHECKLIST",
"slug": "flow_abc",
"createdAt": "2024-01-01T00:00:00Z",
"modifiedAt": "2024-01-01T00:00:00Z",
"version": 1,
"status": "ACTIVE",
"codeSnippet": "<Frigade.Announcement flowId=\"my-flow-id\" />"
}
],
"offset": 0,
"limit": 100
}