Scrub API
POST/v1/tools/save_personfree

Save a person

Saves a person in this workspace's CRM, free. A new person needs a name or an email; give person (pe_…) to change one, and only the fields given change. An email someone here already has is refused, naming them. company is a company's id (co_…) or its exact name, or empty for none; a company that is not here is refused, never made. A new person with a work email and no company given joins the company with that website, and says so. type is customer, lead, partner, supplier, investor or team.

Fields

FieldTypeDefaultWhat it is
personstringNoneIts id, pe_…, to change it
namestringNone
emailstringNone
phonestringNone
job_titlestringNone
companystringNoneA company's id (co_…) or exact name; empty for none
typeone ofNone
customerleadpartnersupplierinvestorteam
notesstringNone

Call it

Request

curl -X POST https://app.scrub.app/v1/tools/save_person \
  -H "Authorization: Bearer $SCRUB_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'

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.