Migrate autoresponders and automations to draft Replifier flows
const url = 'https://api.replifier.com/v1/migration-sources/mgs_01hx0000000000000000000000:migrate-flows';const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{"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}]}]}'};
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/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.
Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Example
mgs_01hx0000000000000000000000Request Bodyrequired
Section titled “Request Bodyrequired”Sendy: list of autoresponders exported by the extractor. Mailchimp: empty (Replifier fetches them directly).
object
object
object
Responses
Section titled “Responses”Flow migration result
object
object
object
object
Example
{ "nonConvertible": [ { "reason": "unsupported_sendy_type" } ], "pendingSteps": [ { "reason": "email_send_pending" } ], "warnings": [ { "reason": "segment_not_migrated" } ]}Invalid data
object
object
Example
{ "error": { "code": "not_found" }}No session, expired session, or invalid, expired or revoked API key
object
object
Example
{ "error": { "code": "not_found" }}Not allowed, API key missing the scope, IP not allowed, or request rejected (csrf_rejected)
object
object
Example
{ "error": { "code": "not_found" }}Does not exist or is not visible to you
object
object
Example
{ "error": { "code": "not_found" }}Conflict
object
object
Example
{ "error": { "code": "not_found" }}Internal error
object
object
Example
{ "error": { "code": "not_found" }}