Scrub API
POST/v1/tools/list_dealsfree

List deals

The deals in this workspace's CRM, free: each with its id (de_…), title, amount and currency, stage (lead, qualified, proposal, won or lost), the day it closes, its company and its people (pe_…), notes and who added it. Narrow by words, stage, a company's id or a person's id.

Fields

FieldTypeDefaultWhat it is
searchstringNoneWords in a title or company
stageone ofNone
leadqualifiedproposalwonlost
companystringNoneA company's id, co_…
personstringNoneA person's id, pe_…

Call it

Request

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