POST
/v1/tools/searchfreeSearch Scrub
Finds anything in Scrub by words, in one call, sorted by kind: tools (every Tool and Action that can be run, by the words people ask with), jobs (runs and drafts, newest first), flows, files (by name, in any folder), crm (people, companies and deals), chats (the signed-in person’s own conversations) and help (Scrub’s guides). Each kind says how many matched and gives the first few, each with the id the other tools take (a tool’s name, a job_id, a flow’s name, a file_id, a pe_/co_/de_ id, a conversation, a guide). Give kind to search one kind and get more of it. Free.
Fields
| Field | Type | Default | What it is |
|---|---|---|---|
q | string | Required | The words to find, such as a file’s name or a person |
kind | one of | None | Only this kind, and more of ittoolsjobsflowsfilescrmchatshelp |
Call it
Request
curl -X POST https://app.scrub.app/v1/tools/search \
-H "Authorization: Bearer $SCRUB_KEY" \
-H "Content-Type: application/json" \
-d '{"q":"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.