Contact imports API
An import brings a CSV file of up to 4 GiB, millions of rows, into a campaign or a contact list. The file goes straight to storage and is imported in the background.
POST /v1/contact-imports → PUT each part → POST /v1/contact-imports/:id/startScopes contacts:writecontacts:read6 endpointsShow
How an import runs
Besides contacts:write (and contacts:read to follow it), the key needs campaigns:write to import into a campaign, or contact_lists:write for a list, with campaigns:write as well when the list feeds an outbound campaign.
Create the import
POST /v1/contact-importswith the target, the file's name and size, and its columns. It answers an upload URL per 32 MiB part of the file.Upload the parts
PUTeach part's bytes to itsurl(a file up to 32 MiB has one part:upload_url). The URLs last two hours;POST /v1/contact-imports/:id/uploadanswers fresh ones for the parts still missing.Start it
POST /v1/contact-imports/:id/start. People join the campaign as their rows land, so an active campaign calls the first ones while the rest of the file is still being read; a draft or paused campaign holds them until it starts.Follow it
GET /v1/contact-imports/:idevery few seconds until it iscompleted, thenGET /v1/contact-imports/:id/rejectsfor the rows that were not imported.
/v1/contact-importsCreate an import
Starts a background import of a CSV file into a campaign (its duplicates rule applies) or a contact list, and answers one signed upload URL per part of the file. PUT each part's bytes to its URL (upload_url is the first part's; a file up to 32 MiB has only that one), then call POST /v1/contact-imports/{id}/start. Every number is checked as in the dashboard: Mexico, the United States and Canada, a mobile or landline.
contacts:writeTakes an Idempotency-KeyUpload each part with PUT <url>, the part's bytes (byte_start up to byte_end, exclusive) as the body and Content-Type: text/csv. A part uploaded again replaces itself.
The URLs are valid for two hours, and replaying this call with the same Idempotency-Key answers the same URLs: when an upload takes longer, POST /v1/contact-imports/{id}/upload answers fresh ones for the parts still missing.
The first row is the header. Values may be quoted, span lines and use "" for a quote; rows of empty cells are skipped. Row numbers count as a spreadsheet shows them (the header is row 1).
A number repeated in the file is imported once (its first row). For a campaign, a person already enrolled follows its duplicates rule: skip, update_only (the lead data is replaced) or re_enroll (enrolled again; a person who is being called or has a callback booked keeps their place, and only their lead data is replaced).
The campaign dials while the import runs: people of an active campaign are queued as their rows land; a draft or paused campaign holds them until it starts.
Request body
campaign_iduuidImport into this campaign (or send contact_list_id).
contact_list_iduuidImport into this list (or send campaign_id).
file_namestring · up to 255requiredThe file's name, shown in the dashboard.
file_sizeinteger · 1–4,294,967,296requiredThe file's exact size in bytes (it decides the parts: 32 MiB each).
columnsobjectrequiredWhich column holds what. Only phone is required.
columns.phonestringrequiredThe phone number. A column of your file: its header text ("Teléfono", matched without case or accents), its zero-based position (0), or {"index": 0, "header": "Teléfono"}.
columns.namestringFull name. A column of your file: its header text ("Teléfono", matched without case or accents), its zero-based position (0), or {"index": 0, "header": "Teléfono"}.
columns.first_namestringFirst name. A column of your file: its header text ("Teléfono", matched without case or accents), its zero-based position (0), or {"index": 0, "header": "Teléfono"}.
columns.last_namestringLast name. A column of your file: its header text ("Teléfono", matched without case or accents), its zero-based position (0), or {"index": 0, "header": "Teléfono"}.
columns.emailstringEmail (an invalid one is dropped). A column of your file: its header text ("Teléfono", matched without case or accents), its zero-based position (0), or {"index": 0, "header": "Teléfono"}.
columns.companystringCompany (fills the contact's when empty). A column of your file: its header text ("Teléfono", matched without case or accents), its zero-based position (0), or {"index": 0, "header": "Teléfono"}.
columns.notesstringNotes for the agent. A column of your file: its header text ("Teléfono", matched without case or accents), its zero-based position (0), or {"index": 0, "header": "Teléfono"}.
columns.external_idstringYour id for the person, kept on the contact as crm_ids[source]. A column of your file: its header text ("Teléfono", matched without case or accents), its zero-based position (0), or {"index": 0, "header": "Teléfono"}.
columns.customobject[] · 0–200 itemsColumns kept as custom fields: in the enrollment's lead data under key, and as fields of the campaign's contact list (or of the list) that workflow conditions can read.
phone_countryMX | US | nullThe country of numbers written without their country code: MX (+52) or US (+1, the US and Canada). Without it they are read in the country your workspace or the campaign's caller ID says, except a number a contact already holds, with or without the code. Those rows, and all of them where nothing says, are refused, never guessed.
delimiter, | ; | | | | nullThe separator; detected from the file when omitted.
encodingutf-8 | windows-1252 | nullThe text encoding; detected when omitted (Excel's "CSV" in Spanish is windows-1252).
sourcestringOrigin label for the enrollments (lowercase letters, digits, - and _, up to 40), and the key of external_id. Platform labels are refused, as in /campaigns/{id}/contacts/import. Default: api.
Show 14 more fields
Errors
400validation_errorThe body is not JSON, or a field is missing or invalid (details.errors lists each field).404not_foundNo campaign or contact list with this id in your workspace (ids of other workspaces answer the same).403forbiddenThe key lacks campaigns:write (a campaign, or a list that feeds an outbound campaign) or contact_lists:write (a list).409campaign_not_activeThe campaign is not active and API import is off in its settings (turn it on to hold the people until it starts).409campaign_not_acceptingThe campaign is completed or archived.409CAMPAIGN_ENDEDThe campaign ended at its finish time (details.ends_at, details.ended_at). Send a later ends_at, or null, with PATCH /v1/campaigns/{id} and start it to add contacts.Plus the errors every request can return (401, 403, 429, 500): Errors.
curl -X POST https://www.nutalk.ai/v1/contact-imports \
-H "Authorization: Bearer $NUTALK_API_KEY" \
-H "Idempotency-Key: $(uuidgen)" \
-H "Content-Type: application/json" \
-d '{
"campaign_id": "f8d1c003-b292-448d-b8d8-1dd521b94b3b",
"file_name": "base-octubre.csv",
"file_size": 148210544,
"phone_country": "MX",
"columns": {
"phone": "Teléfono",
"name": "Nombre",
"email": "Correo",
"custom": [
{
"column": "Interés",
"key": "interes"
}
]
}
}'{
"success": true,
"data": {
"id": "3c9a0f7e-5d21-4b8e-9a47-6f1e2d3c4b5a",
"status": "awaiting_upload",
"campaign_id": "f8d1c003-b292-448d-b8d8-1dd521b94b3b",
"contact_list_id": null,
"file_name": "base-octubre.csv",
"file_size": 148210544,
"progress": {
"bytes_processed": 0,
"percent": 0,
"estimated_total_rows": null
},
"rows": {
"processed": 0,
"added": 0,
"updated": 0,
"reenrolled": 0,
"duplicates": 0,
"rejected": 0
},
"rejected_by_reason": {},
"rejects_available": 0,
"contacts_created": 0,
"error": null,
"created_at": "2026-10-07T15:02:11.512Z",
"started_at": null,
"completed_at": null,
"upload_url": "https://api.nutalk.ai/storage/v1/object/upload/sign/contact-imports/…/part-0001.csv?token=…",
"upload": {
"method": "PUT",
"part_size": 33554432,
"expires_at": "2026-10-07T17:02:11.512Z",
"parts": [
{
"part": 1,
"url": "https://api.nutalk.ai/storage/v1/object/upload/sign/contact-imports/…/part-0001.csv?token=…",
"byte_start": 0,
"byte_end": 33554432
},
{
"part": 2,
"url": "https://api.nutalk.ai/storage/v1/object/upload/sign/contact-imports/…/part-0002.csv?token=…",
"byte_start": 33554432,
"byte_end": 67108864
}
]
}
}
}/v1/contact-imports/:id/uploadRenew the upload URLs
Fresh upload URLs (valid for two hours) for the parts of the file not uploaded yet, or uploaded with another size. Parts already in place keep their bytes.
contacts:writePath parameters
iduuidrequiredThe import id.
Errors
404not_foundNo import with this id in your workspace (ids of other workspaces answer the same).409already_uploadedThe import already started (or was cancelled): its file needs no upload.Plus the errors every request can return (401, 403, 429, 500): Errors.
curl -X POST https://www.nutalk.ai/v1/contact-imports/3c9a0f7e-5d21-4b8e-9a47-6f1e2d3c4b5a/upload \ -H "Authorization: Bearer $NUTALK_API_KEY"
{
"success": true,
"data": {
"id": "3c9a0f7e-5d21-4b8e-9a47-6f1e2d3c4b5a",
"status": "awaiting_upload",
"campaign_id": "f8d1c003-b292-448d-b8d8-1dd521b94b3b",
"contact_list_id": null,
"file_name": "base-octubre.csv",
"file_size": 148210544,
"progress": {
"bytes_processed": 0,
"percent": 0,
"estimated_total_rows": null
},
"rows": {
"processed": 0,
"added": 0,
"updated": 0,
"reenrolled": 0,
"duplicates": 0,
"rejected": 0
},
"rejected_by_reason": {},
"rejects_available": 0,
"contacts_created": 0,
"error": null,
"created_at": "2026-10-07T15:02:11.512Z",
"started_at": null,
"completed_at": null,
"upload_url": "https://api.nutalk.ai/storage/v1/object/upload/sign/contact-imports/…/part-0002.csv?token=…",
"upload": {
"method": "PUT",
"part_size": 33554432,
"expires_at": "2026-10-07T19:05:40.208Z",
"parts": [
{
"part": 2,
"url": "https://api.nutalk.ai/storage/v1/object/upload/sign/contact-imports/…/part-0002.csv?token=…",
"byte_start": 33554432,
"byte_end": 67108864
}
]
}
}
}/v1/contact-imports/:id/startStart an import
Call it once every part is uploaded: the import starts in the background (about 2,000,000 rows in under two hours). Starting an import that already started answers it as it is.
contacts:writeCan wait for approvalPath parameters
iduuidrequiredThe import id.
Nothing changes yet: the call answers 202 with data.change_request, and runs once an owner or admin approves it in Settings → API keys. Follow it with GET /v1/change-requests/:id.
Errors
404not_foundNo import with this id in your workspace (ids of other workspaces answer the same).409upload_incompleteA part is missing or has another size (details.missing_parts). Upload it and call again.409campaign_not_acceptingThe campaign was completed or archived since the import was created.409CAMPAIGN_ENDEDThe campaign ended at its finish time since the import was created (details.ends_at, details.ended_at). Send a later ends_at, or null, with PATCH /v1/campaigns/{id}, start it, then start the import again.409campaign_not_activeThe campaign is no longer active and API import is off in its settings (it was paused, or the setting turned off, during the upload).409not_startableThe import was cancelled or failed.Plus the errors every request can return (401, 403, 429, 500): Errors.
curl -X POST https://www.nutalk.ai/v1/contact-imports/3c9a0f7e-5d21-4b8e-9a47-6f1e2d3c4b5a/start \ -H "Authorization: Bearer $NUTALK_API_KEY"
{
"success": true,
"data": {
"id": "3c9a0f7e-5d21-4b8e-9a47-6f1e2d3c4b5a",
"status": "queued",
"campaign_id": "f8d1c003-b292-448d-b8d8-1dd521b94b3b",
"contact_list_id": null,
"file_name": "base-octubre.csv",
"file_size": 148210544,
"progress": {
"bytes_processed": 61340112,
"percent": 41,
"estimated_total_rows": 2000480
},
"rows": {
"processed": 827950,
"added": 801204,
"updated": 0,
"reenrolled": 0,
"duplicates": 9112,
"rejected": 17634
},
"rejected_by_reason": {
"invalid_phone": 16920,
"missing_phone": 410,
"do_not_contact": 304
},
"rejects_available": 17634,
"contacts_created": 786015,
"error": null,
"created_at": "2026-10-07T15:02:11.512Z",
"started_at": "2026-10-07T15:04:40.031Z",
"completed_at": null
}
}/v1/contact-imports/:idGet an import's progress
Status, bytes read, and what happened to the rows so far. Poll it every few seconds while it runs.
contacts:readThe fields of an import:
id: The import id.
status: awaiting_upload until you call /start; queued then processing while it runs; paused from the dashboard; completed, failed (see error) or cancelled.
campaign_id: The campaign the rows join.
contact_list_id: The list the rows join.
file_name: The name you gave the file.
file_size: The file's size in bytes.
progress: How far the import got.
rows: Every row lands in one of added, updated, duplicates or rejected.
rejected_by_reason: Refused rows by reason: missing_phone, invalid_phone (not a Mexican, US or Canadian mobile or landline, or no country code with no country to read it in, or a contact already holds it), agent_number (one of your own numbers), do_not_contact (the person asked not to be contacted), cooldown.
rejects_available: Refused rows you can download (the first 250,000).
contacts_created: Contacts the import created (the rest already existed).
error: Why a failed import stopped (code, message); while it retries, the last error. campaign_scope: the list came to feed an outbound campaign during the import, and the key that started it lacks campaigns:write.
created_at: When the import was created.
started_at: When processing started.
completed_at: When it finished.
Path parameters
iduuidrequiredThe import id.
Errors
404not_foundNo import with this id in your workspace (ids of other workspaces answer the same).Plus the errors every request can return (401, 403, 429, 500): Errors.
curl https://www.nutalk.ai/v1/contact-imports/3c9a0f7e-5d21-4b8e-9a47-6f1e2d3c4b5a \ -H "Authorization: Bearer $NUTALK_API_KEY"
{
"success": true,
"data": {
"id": "3c9a0f7e-5d21-4b8e-9a47-6f1e2d3c4b5a",
"status": "processing",
"campaign_id": "f8d1c003-b292-448d-b8d8-1dd521b94b3b",
"contact_list_id": null,
"file_name": "base-octubre.csv",
"file_size": 148210544,
"progress": {
"bytes_processed": 61340112,
"percent": 41,
"estimated_total_rows": 2000480
},
"rows": {
"processed": 827950,
"added": 801204,
"updated": 0,
"reenrolled": 0,
"duplicates": 9112,
"rejected": 17634
},
"rejected_by_reason": {
"invalid_phone": 16920,
"missing_phone": 410,
"do_not_contact": 304
},
"rejects_available": 17634,
"contacts_created": 786015,
"error": null,
"created_at": "2026-10-07T15:02:11.512Z",
"started_at": "2026-10-07T15:04:40.031Z",
"completed_at": null
}
}/v1/contact-imports/:id/cancelCancel an import
Stops the import for good and deletes its file. Rows already imported stay imported (enrolled people may already be called). Cancelling a cancelled import answers it as it is.
contacts:writePath parameters
iduuidrequiredThe import id.
Errors
404not_foundNo import with this id in your workspace (ids of other workspaces answer the same).409not_cancellableThe import already completed or failed.Plus the errors every request can return (401, 403, 429, 500): Errors.
curl -X POST https://www.nutalk.ai/v1/contact-imports/3c9a0f7e-5d21-4b8e-9a47-6f1e2d3c4b5a/cancel \ -H "Authorization: Bearer $NUTALK_API_KEY"
{
"success": true,
"data": {
"id": "3c9a0f7e-5d21-4b8e-9a47-6f1e2d3c4b5a",
"status": "cancelled",
"campaign_id": "f8d1c003-b292-448d-b8d8-1dd521b94b3b",
"contact_list_id": null,
"file_name": "base-octubre.csv",
"file_size": 148210544,
"progress": {
"bytes_processed": 61340112,
"percent": 41,
"estimated_total_rows": 2000480
},
"rows": {
"processed": 827950,
"added": 801204,
"updated": 0,
"reenrolled": 0,
"duplicates": 9112,
"rejected": 17634
},
"rejected_by_reason": {
"invalid_phone": 16920,
"missing_phone": 410,
"do_not_contact": 304
},
"rejects_available": 17634,
"contacts_created": 786015,
"error": null,
"created_at": "2026-10-07T15:02:11.512Z",
"started_at": "2026-10-07T15:04:40.031Z",
"completed_at": null
}
}/v1/contact-imports/:id/rejectsDownload the refused rows
The rows the import did not take, as CSV: your file's columns and separator, each row as written, then why it was not imported and its row number. Fix them and import the file again.
contacts:readPath parameters
iduuidrequiredThe import id.
Query parameters
localeen | esThe language of the reason column. Default: en.
Errors
404not_foundNo import with this id in your workspace (ids of other workspaces answer the same).Plus the errors every request can return (401, 403, 429, 500): Errors.
curl "https://www.nutalk.ai/v1/contact-imports/3c9a0f7e-5d21-4b8e-9a47-6f1e2d3c4b5a/rejects?locale=es" \ -H "Authorization: Bearer $NUTALK_API_KEY"