Enroll up to 10,000 contacts (by id or email) with their start time and variables. Those that do not enter say why
POST
/v1/flows/{flow}/enrollments
const url = 'https://api.replifier.com/v1/flows/flw_01hx0000000000000000000000/enrollments';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"items":[{"contactId":"example","email":"hello@example.com","startAt":"2026-04-15T12:00:00Z","variables":{"additionalProperty":"example"}}],"source":"api"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://api.replifier.com/v1/flows/flw_01hx0000000000000000000000/enrollments \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "items": [ { "contactId": "example", "email": "hello@example.com", "startAt": "2026-04-15T12:00:00Z", "variables": { "additionalProperty": "example" } } ], "source": "api" }'Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”flow
required
string
Example
flw_01hx0000000000000000000000Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
items
required
Array<object>
object
contactId
string
email
string format: email
startAt
First run (default: now). Up to one year ahead
string format: date-time
source
ai if an AI scheduled the journey
string
Responses
Section titled “Responses”Per-item result
Media typeapplication/json
object
enrolled
required
number
skipped
required
number
results
required
Array<object>
object
index
required
number
enrollmentId
string
reason
string
Example generated
{ "enrolled": 1, "skipped": 1, "results": [ { "index": 1, "enrollmentId": "example", "reason": "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" }}Not allowed, API key missing the scope, IP not allowed, or request rejected (csrf_rejected)
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" }}Conflict
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" }}