Skip to content

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
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" }'
flow
required
string
/^flw_[a-z0-9]{26}$/

Example

flw_01hx0000000000000000000000
Media typeapplication/json
object
items
required
Array<object>
>= 1 items <= 10000 items
object
contactId
string
/^con_[a-z0-9]{26}$/
email
string format: email
<= 254 characters
startAt

First run (default: now). Up to one year ahead

string format: date-time
variables

Data for this enrollment (e.g. sendAt or the paragraph the AI chose); used by waits and emails

object
key
additional properties
Any of:
string
<= 5000 characters
source

ai if an AI scheduled the journey

string
Allowed values: api ai

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"
}
}