POST
/v1/tools/look_at_filesfreeLook at files
A quick look at a stack of files before reading them: what kind of document each is, how many pages, and the columns worth reading. Free. For Read documents into a table (read_fields). Use it to offer what to read before a run.
Fields
| Field | Type | Default | What it is |
|---|---|---|---|
action | one of | Required | read_fields |
file_ids | array | Required |
Call it
Request
curl -X POST https://app.scrub.app/v1/tools/look_at_files \
-H "Authorization: Bearer $SCRUB_KEY" \
-H "Content-Type: application/json" \
-d '{"action":"read_fields","file_ids":["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.