Open a migration run
const url = 'https://api.replifier.com/v1/migration-sources/mgs_01hx0000000000000000000000:start';const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{"declared":{"lists":1,"fields":1,"subscribers":1,"suppressions":1,"blocked_domains":1,"templates":1,"campaigns":1,"links":1,"rules":1,"segments":1},"audiences":["example"],"chunks":[{"seq":1,"sha256":"example"}]}'};
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:start \ --header 'Content-Type: application/json' \ --data '{ "declared": { "lists": 1, "fields": 1, "subscribers": 1, "suppressions": 1, "blocked_domains": 1, "templates": 1, "campaigns": 1, "links": 1, "rules": 1, "segments": 1 }, "audiences": [ "example" ], "chunks": [ { "seq": 1, "sha256": "example" } ] }'Admins with a session only (credentials.manage). Sendy: the body is the extractor’s manifest.json (totals per entity and sha256 of each chunk). Mailchimp: no body, or optionally audiences to migrate only those audiences (an id that does not exist returns 400 on the first step); Replifier counts what is in the account on the first step. If the source already has an open run, that one is returned. A source already migrated (done) responds 409 until an admin reopens it.
Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Example
mgs_01hx0000000000000000000000Request Bodyrequired
Section titled “Request Bodyrequired”Run manifest. Sendy: the extractor’s manifest.json (totals and chunks). Mailchimp: optionally audiences, the ids of the audiences to migrate (all if omitted).
object
object
object
Example generated
{ "declared": { "lists": 1, "fields": 1, "subscribers": 1, "suppressions": 1, "blocked_domains": 1, "templates": 1, "campaigns": 1, "links": 1, "rules": 1, "segments": 1 }, "audiences": [ "example" ], "chunks": [ { "seq": 1, "sha256": "example" } ]}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" }}