Process a segment import
POST
/api/v1/audience-import/process
const url = 'https://renotify.app/api/v1/audience-import/process';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"path":"imports/audience.csv","mapping":{"phone":"Mobile","email":"Email"},"audience_name":"Webinar Leads","create_new_entities":true}'};
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://renotify.app/api/v1/audience-import/process \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "path": "imports/audience.csv", "mapping": { "phone": "Mobile", "email": "Email" }, "audience_name": "Webinar Leads", "create_new_entities": true }'Queue a segment import job using a previously uploaded file and column mapping.
Authorizations
Section titled “Authorizations”Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
path
required
The temporary upload path returned by the preview endpoint.
string
Example
imports/audience.csvmapping
required
The detected or adjusted column mapping.
object
phone
The CSV column containing phone numbers.
string
Example
Mobileemail
The CSV column containing email addresses.
string
Example
Emailname
The CSV column containing names.
string
Example
Full NameExample
{ "phone": "Mobile", "email": "Email"}audience_name
required
The name of the segment to create.
string
Example
Webinar Leadscreate_new_entities
Whether new contacts should be created for unmatched rows.
boolean
Example
true