POST
/v1/tools/upload_statusfreeCheck 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
| Field | Type | Default | What it is |
|---|---|---|---|
file_id | string | Required |
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.