Close the run with its reconciliation
const url = 'https://api.replifier.com/v1/migration-sources/mgs_01hx0000000000000000000000:finish?run=example';const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{"forgetCredential":false,"allowIncomplete":false}'};
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:finish?run=example' \ --header 'Content-Type: application/json' \ --data '{ "forgetCredential": false, "allowIncomplete": false }'Admins with a session only (credentials.manage). Saves the reconciliation (what the source declared against what was migrated and skipped), closes the imports and leaves the source in done. If chunks or steps are missing it responds 409, unless allowIncomplete is set. forgetCredential deletes the stored Mailchimp API key.
Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Example
mgs_01hx0000000000000000000000Query Parameters
Section titled “Query Parameters”Request Bodyrequired
Section titled “Request Bodyrequired”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" }}