Scrub API
POST/v1/tools/look_at_filesfree

Look 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

FieldTypeDefaultWhat it is
actionone ofRequired
read_fields
file_idsarrayRequired

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.