Skip to content

Open a migration run

POST
/v1/migration-sources/{source}:start
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.

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

Example

mgs_01hx0000000000000000000000
Media typeapplication/json

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
declared
object
lists
integer
fields
integer
subscribers
integer
suppressions
integer
blocked_domains
integer
templates
integer
campaigns
integer
links
integer
rules
integer
segments
integer
audiences
Array<string>
>= 1 items <= 500 items
chunks
Array<object>
>= 1 items <= 100000 items
object
seq
required
integer
<= 1000000
sha256
required
string
/^[0-9a-f]{64}$/

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

Run with its report

Media typeapplication/json

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
id
required
string
sourceId
required
string
kind
required
string
Allowed values: sendy mailchimp
status
required
string
Allowed values: running completed
complete
required
boolean
declared
required
object
key
additional properties
number
counts
required
object
key
additional properties
object
migrated
required
number
skipped
required
object
key
additional properties
number
pending
number
warnings
object
key
additional properties
number
reconciliation
required
object
key
additional properties
object
declared
required
number
nullable
migrated
required
number
skipped
required
number
difference
required
number
nullable
matches
required
boolean
chunks
required
object
expected
required
Array<number>
received
required
Array<number>
importJobIds
required
Array<string>
warnings
required
Array<object>

Report warning (something migrated that is worth reviewing), with its text in the requester’s language.

object
entity
required
string
Allowed values: lists fields subscribers suppressions blocked_domains templates campaigns links rules segments
code
required
string
Allowed values: segment_static_tag tag_limit_reached segments_not_exported
count
required
integer
message
required
string
startedAt
required
string
finishedAt
required
string
nullable

Example

{
"kind": "sendy",
"status": "running",
"warnings": [
{
"entity": "lists",
"code": "segment_static_tag"
}
]
}

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