POST
/v1/tools/import_contactsfreeImport contacts
Imports a contacts export into this workspace's CRM, free, as read_contacts_file says it would: adds the new people and the companies they name, gives people already here only what Scrub does not know yet (a phone, a job title, a company), and leaves out rows with no name or email or an email twice. Nothing a person wrote is replaced. Says what to delete and set back to undo it. Pass file, a file_id from create_upload.
Fields
| Field | Type | Default | What it is |
|---|---|---|---|
file | string | Required | A file_id from create_upload |
Call it
Request
curl -X POST https://app.scrub.app/v1/tools/import_contacts \
-H "Authorization: Bearer $SCRUB_KEY" \
-H "Content-Type: application/json" \
-d '{"file":"w/…/file_id"}'Answer
{
"ok": true,
"result": {
"…": "…"
}
}What result holds is said above.
Every call can also answer an error: what comes back. Try it with your key from Account.