Apply a chunk (Sendy) or a step (Mailchimp) of the run
const url = 'https://api.replifier.com/v1/migration-sources/mgs_01hx0000000000000000000000:migrate?run=example';const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{"format":"replifier-sendy/1","seq":1,"lists":[],"subscribers":[],"suppressions":[],"blocked_domains":[],"templates":[],"campaigns":[],"segments":[],"segment_members":[],"links":[],"rules":[]}'};
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?run=example' \ --header 'Content-Type: application/json' \ --data '{ "format": "replifier-sendy/1", "seq": 1, "lists": [], "subscribers": [], "suppressions": [], "blocked_domains": [], "templates": [], "campaigns": [], "segments": [], "segment_members": [], "links": [], "rules": [] }'Sendy: the body is an extractor chunk AS IS (its sha256 must match the one in the manifest); repeating an already applied chunk does not count twice. Mailchimp: no body; each call migrates a page of contacts or a group of templates, until complete. Contacts go through the import engine (M4.2): an unsubscribe or suppression is never resubscribed.
Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Example
mgs_01hx0000000000000000000000Query Parameters
Section titled “Query Parameters”Request Body
Section titled “Request Body”A chunk from the Sendy extractor (scripts/sendy-extractor.php), exactly as it wrote it.
object
object
object
object
object
object
object
object
object
object
object
object
object
object
object
Responses
Section titled “Responses”Run with its report
A migration run and its report: per entity (lists, fields, subscribers, suppressions, blocked_domains, templates, campaigns, links, rules, segments) what was migrated and what was skipped with its reason, the reconciliation against what the source declares, and the warnings (warnings, e.g. segments that ended up as a static tag). Per-contact detail is in the imports listed in importJobIds (M4.2).
object
object
object
object
object
object
object
object
object
Report warning (something migrated that is worth reviewing), with its text in the requester’s language.
object
Example
{ "kind": "sendy", "status": "running", "warnings": [ { "entity": "lists", "code": "segment_static_tag" } ]}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" }}