Confirm the import (step 2): `expectedImportable` is what was seen in the review (create + update). Creates the new mapping fields and starts applying; repeat `:step` until `completed`. Re-checks every row (new unsubscribes and suppressions are respected)
POST
/v1/imports/{import}:confirm
const url = 'https://api.replifier.com/v1/imports/imp_01hx0000000000000000000000:confirm';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"expectedImportable":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/imports/imp_01hx0000000000000000000000:confirm \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "expectedImportable": 1 }'Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”import
required
string
Example
imp_01hx0000000000000000000000Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
expectedImportable
required
integer
Example generated
{ "expectedImportable": 1}Responses
Section titled “Responses”Import after the action
Media typeapplication/json
object
id
required
string
brandId
required
string
source
required
string
status
required
string
fileName
required
string
fileBytes
required
number
encoding
required
string
delimiter
required
string
sheet
required
string
sheets
required
Array<string>
headerRow
required
number
headers
required
Array<string>
rowsTotal
required
number
options
required
object
key
additional properties
mapping
required
object
key
additional properties
progress
required
object
phase
required
string
read
required
number
total
required
number
totals
required
object
analysis
object
read
required
number
blank
required
number
create
required
number
update
required
number
skipped
required
object
key
additional properties
number
warnings
required
object
key
additional properties
number
apply
object
read
required
number
blank
required
number
create
required
number
update
required
number
skipped
required
object
key
additional properties
number
warnings
required
object
key
additional properties
number
reasons
required
Skip reasons and warnings of the current phase (analysis before confirming; apply afterwards), with their text in the Accept-Language language.
Array<object>
object
code
required
string
outcome
required
string
count
required
number
label
required
string
explanation
required
string
examples
required
Up to 5 rows per reason of the current phase.
Array<object>
object
row
required
number
email
required
string
outcome
required
string
reason
required
string
detail
required
object
key
additional properties
preview
required
First 20 data records (only before analysis).
Array<Array<string>>
plan
required
Plan limits that affect this import (only before confirming).
object
plan
required
string
contactLimit
required
number
contactsNow
required
number
monthlyNewLimit
required
number
monthlyNewUsed
required
number
overContactLimit
required
boolean
nextStep
required
string
failure
required
object
key
additional properties
createdBy
required
string
confirmedBy
required
string
confirmedAt
required
string
analyzedAt
required
string
completedAt
required
string
lastActivityAt
required
string
createdAt
required
string
expiresAt
required
string
Example
{ "source": "csv", "status": "uploaded", "progress": { "phase": "analysis" }, "reasons": [ { "outcome": "skipped" } ], "examples": [ { "outcome": "skipped" } ], "plan": { "plan": "free" }, "nextStep": "map"}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" }}Service temporarily unavailable
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" }}