Upload a CSV, an Excel file (.xlsx) or pasted text and create the import job. Imports nothing
const url = 'https://api.replifier.com/v1/brands/brd_01hx0000000000000000000000/imports';const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
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/brands/brd_01hx0000000000000000000000/imports \ --header 'Authorization: Bearer <token>'Multipart: file (up to 25 MB; CSV in UTF-8, UTF-16 with BOM or Windows-1252/Latin-1, delimiter , ; or tab, or .xlsx), sheet (Excel sheet, the first one by default) and headerRow (header record, 1 by default; 0 if there is none). Also JSON: { "text": "...", "headerRow": 0 } (pasted text, up to 10,000 lines). A single column of emails without a header is detected automatically. The response includes the header, a preview and a suggested mapping. Files are stored in private R2 and deleted after 30 days.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Example
brd_01hx0000000000000000000000Responses
Section titled “Responses”Job created (status uploaded)
object
object
object
object
object
object
object
object
object
object
object
Skip reasons and warnings of the current phase (analysis before confirming; apply afterwards), with their text in the Accept-Language language.
object
Up to 5 rows per reason of the current phase.
object
object
First 20 data records (only before analysis).
Plan limits that affect this import (only before confirming).
object
object
Example
{ "source": "csv", "status": "uploaded", "progress": { "phase": "analysis" }, "reasons": [ { "outcome": "skipped" } ], "examples": [ { "outcome": "skipped" } ], "plan": { "plan": "free" }, "nextStep": "map"}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" }}Error
object
object
Example
{ "error": { "code": "not_found" }}Internal error
object
object
Example
{ "error": { "code": "not_found" }}Service temporarily unavailable
object
object
Example
{ "error": { "code": "not_found" }}