List the flow's enrollments, newest first (cursor-paginated), by status or by contact
GET
/v1/flows/{flow}/enrollments
const url = 'https://api.replifier.com/v1/flows/flw_01hx0000000000000000000000/enrollments?status=active';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/flows/flw_01hx0000000000000000000000/enrollments?status=active'Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”flow
required
string
Example
flw_01hx0000000000000000000000Query Parameters
Section titled “Query Parameters”limit
string
cursor
string
status
string
contact
string
Responses
Section titled “Responses”Enrollments
Media typeapplication/json
object
data
required
Array<object>
object
id
required
string
flowId
required
string
versionId
required
string
contactId
required
string
status
required
string
currentNode
required
string
nextRunAt
required
string
source
required
string
attempts
required
number
lastError
required
Code of the node’s last failure (failed after 5 attempts)
string
exitReason
required
string
enteredAt
required
string
finishedAt
required
string
nextCursor
required
string
Example
{ "data": [ { "status": "active" } ]}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" }}