Skip to content

The bytes of a result’s file

GET
/v1/files/{id}
curl --request GET \
--url https://beta-api.plune.ai/v1/files/example \
--header 'Authorization: Bearer <token>'

Served with the type it was uploaded with, nosniff and a sandbox CSP, so a picture is only ever a picture (ADR 0040). A text — JSON too — is served as text/plain; charset=utf-8, whatever it looks like: never as HTML, and never as a JSON document a browser would open (#928); the stored type is ResultFile.contentType. Immutable under its id. A file of a run in the Bin reads as not found until the run is restored.

id
required
string

The file

string format: binary

No / invalid token or session

Not found or not yours

Media type application/json
object
error
required
string
Example generated
{
"error": "example"
}