Scrub API
POST/v1/tools/download_filefree

Download a file

A link to download one of this workspace's files, an upload or a result, named as the person knows it. It works for an hour. Free.

Fields

FieldTypeDefaultWhat it is
file_idstringRequiredFrom list_files

Call it

Request

curl -X POST https://app.scrub.app/v1/tools/download_file \
  -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.