List the brand's flows, newest first (cursor-paginated)
GET
/v1/brands/{brand}/flows
const url = 'https://api.replifier.com/v1/brands/brd_01hx0000000000000000000000/flows?status=draft';const options = {method: 'GET'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url 'https://api.replifier.com/v1/brands/brd_01hx0000000000000000000000/flows?status=draft'Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”brand
required
string
Example
brd_01hx0000000000000000000000Query Parameters
Section titled “Query Parameters”limit
string
cursor
string
status
string
Responses
Section titled “Responses”Flows
Media typeapplication/json
object
data
required
Array<object>
object
id
required
string
brandId
required
string
name
required
string
status
required
string
currentVersionId
required
string
currentVersion
required
number
draftGraph
required
object
key
additional properties
settings
required
object
key
additional properties
approval
required
If awaiting approval: what was requested (activate, version or resume), by whom, and the estimated reach against the threshold. With version the flow stays active or paused on its previous version until the new one is approved
object
kind
required
string
requestedBy
required
string
requestedAt
required
string
recipients
required
integer
threshold
required
integer
version
required
integer
statusInfo
required
Unified status with reason (if applicable) and recommended action as i18n keys, same as Campaign.statusInfo
object
status
required
string
reason
required
Full i18n key of the reason (e.g. flow.pause_reason.manual or flow.approval_reason.activate); null if not applicable
string
recommendedAction
required
Full i18n key of the recommended action (e.g. flow.action.resume_or_archive)
string
createdBy
required
string
createdAt
required
string
updatedAt
required
string
nextCursor
required
string
Example
{ "data": [ { "status": "draft", "approval": { "kind": "activate" }, "statusInfo": { "status": "draft" } } ]}Invalid data
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
cause
required
string
fix
required
string
requestId
required
string
Example
{ "error": { "code": "not_found" }}No session, expired session, or invalid, expired or revoked API key
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
cause
required
string
fix
required
string
requestId
required
string
Example
{ "error": { "code": "not_found" }}Does not exist or is not visible to you
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
cause
required
string
fix
required
string
requestId
required
string
Example
{ "error": { "code": "not_found" }}Internal error
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
cause
required
string
fix
required
string
requestId
required
string
Example
{ "error": { "code": "not_found" }}