Explain why a contact is where it is: its recent enrollments, each step with its reason, the email status, why a trigger did not enroll it and whether it would enter now. Text in the request's language
GET
/v1/flows/{flow}/explain
const url = 'https://api.replifier.com/v1/flows/flw_01hx0000000000000000000000/explain?contact=example';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/explain?contact=example'Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”flow
required
string
Example
flw_01hx0000000000000000000000Query Parameters
Section titled “Query Parameters”contact
required
string
Responses
Section titled “Responses”Explanation
Media typeapplication/json
object
contactId
required
string
enrollments
required
Array<object>
object
id
required
string
status
required
string
version
required
number
isTest
required
boolean
enteredAt
required
string
finishedAt
required
string
currentNode
required
string
notEntered
required
Example generated
{ "contactId": "example", "enrollments": [ { "id": "example", "status": "example", "version": 1, "isTest": true, "enteredAt": "example", "finishedAt": "example", "currentNode": "example", "lines": [ { "code": "example", "params": { "additionalProperty": "example" }, "at": "example", "node": "example", "text": "example" } ] } ], "notEntered": { "code": "example", "params": { "additionalProperty": "example" }, "at": "example", "node": "example", "text": "example" }, "now": { "code": "example", "params": { "additionalProperty": "example" }, "at": "example", "node": "example", "text": "example" }}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" }}