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