List the flow templates (starting points) a draft can be created from
GET
/v1/brands/{brand}/flow-templates
const url = 'https://api.replifier.com/v1/brands/brd_01hx0000000000000000000000/flow-templates';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/flow-templatesParameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”brand
required
string
Example
brd_01hx0000000000000000000000Responses
Section titled “Responses”Templates
Media typeapplication/json
object
data
required
Array<object>
object
id
required
string
name
required
Template name in the request language (Accept-Language; English if missing)
string
description
required
What the template does, in the request language (English if missing)
string
subjects
required
Suggested subject for each email, in order, in the request language; emailCount items
Array<string>
needs
required
What target must be: a list id, a segment id, a contact date field or an event name
string
defaultEvent
Usual event name when needs is event
string
emailCount
required
How many subjects the template takes
integer
Example
{ "data": [ { "id": "welcome", "needs": "list" } ]}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" }}