POST
/v1/tools/list_dealsfreeList 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
| Field | Type | Default | What it is |
|---|---|---|---|
search | string | None | Words in a title or company |
stage | one of | None | leadqualifiedproposalwonlost |
company | string | None | A company's id, co_… |
person | string | None | A 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.