Scrub API
POST/v1/tools/read_contacts_filefree

Read a contacts export

Reads a contacts export, free, such as the CSV HubSpot's Contacts page exports, and says what importing it would do, row by row, without adding anything: the new people, the people already here (matched by email) and what each would get that Scrub does not know yet, the rows left out and why, and the new companies its Company Name column names. Pass file, a file_id from create_upload.

Fields

FieldTypeDefaultWhat it is
filestringRequiredA file_id from create_upload

Call it

Request

curl -X POST https://app.scrub.app/v1/tools/read_contacts_file \
  -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.