Skip to content

Migrate autoresponders and automations to draft Replifier flows

POST
/v1/migration-sources/{source}:migrate-flows
curl --request POST \
--url https://api.replifier.com/v1/migration-sources/mgs_01hx0000000000000000000000:migrate-flows \
--header 'Content-Type: application/json' \
--data '{ "sendyAutoresponders": [ { "id": "example", "name": "example", "list_id": "example", "type": "drip", "delays": [ 1 ], "trigger_field": "example", "offset_days": 1, "segment_ids": [ 1 ], "emails": [ { "id": "example", "subject": "example", "from_name": "example", "from_email": "example", "reply_to": "example", "html": "example", "plain_text": "example", "days": 1 } ] } ] }'

Converts Sendy autoresponders and Mailchimp classic automations into Replifier flows. All migrated flows are created in draft status and are never activated automatically. Each email is migrated as a pending send_email node (with no connection or sender): the flow cannot be published until it is completed, and the pending steps are listed in pendingSteps. Returns the count of converted, skipped (already migrated) and those that could not be converted, with their reason.

source
required
string
/^mgs_[a-z0-9]{26}$/

Example

mgs_01hx0000000000000000000000
Media typeapplication/json

Sendy: list of autoresponders exported by the extractor. Mailchimp: empty (Replifier fetches them directly).

object
sendyAutoresponders
Array<object>
<= 500 items
object
id
required
string
<= 255 characters
name
required
string
<= 500 characters
list_id
required
string
<= 255 characters
type
required
string
Allowed values: drip annual date
delays
Array<integer>
<= 50 items
trigger_field
string
<= 255 characters
offset_days
integer
segment_ids
Array<integer>
<= 100 items
emails
Array<object>
<= 100 items
object
id
required
string
<= 255 characters
subject
required
string
<= 998 characters
from_name
string
nullable <= 255 characters
from_email
string
nullable <= 320 characters
reply_to
string
nullable <= 320 characters
html
string
nullable <= 2000000 characters
plain_text
string
nullable <= 2000000 characters
days
integer

Flow migration result

Media typeapplication/json
object
converted
required
integer
skipped
required
integer
nonConvertible
required
Array<object>
object
legacyId
required
string
name
required
string
reason
required
string
Allowed values: unsupported_sendy_type drip_no_delays date_no_field customer_journey automation_no_emails
detail
required
string
pendingSteps
required
Array<object>
object
legacyId
required
string
name
required
string
node
required
string
reason
required
string
Allowed values: email_send_pending
detail
required
string
warnings
required
Array<object>
object
legacyId
required
string
name
required
string
reason
required
string
Allowed values: segment_not_migrated
detail
required
string

Example

{
"nonConvertible": [
{
"reason": "unsupported_sendy_type"
}
],
"pendingSteps": [
{
"reason": "email_send_pending"
}
],
"warnings": [
{
"reason": "segment_not_migrated"
}
]
}

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