Scrub API
POST/v1/tools/upload_statusfree

Check an upload

Checks whether a file has arrived at a file_id from create_upload, and for a photo, scan or PDF how many pages it has. Free. Use it once the upload has finished, before passing the file_id to a tool.

Fields

FieldTypeDefaultWhat it is
file_idstringRequired

Call it

Request

curl -X POST https://app.scrub.app/v1/tools/upload_status \
  -H "Authorization: Bearer $SCRUB_KEY" \
  -H "Content-Type: application/json" \
  -d '{"file_id":"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.