Skip to content

A file of a detailed public report — no account

GET
/public/report/{token}/files/{fileId}
curl --request GET \
--url https://beta-api.plune.ai/public/report/example/files/example

One picture or video of a failed test that the owner marked when the link was made (#3077), for whoever holds the report’s address: no credential, no cookie. The link answers first, exactly as GET /public/report/{token} does — the same 404 for no such link, 410 after expiresAt, 401 password_required or wrong_password (X-Report-Password, checked before the date), the same count of wrong passwords per token and the same 429s. Then the file: 404, with the body of a token nobody holds, unless the link’s level is detailed and fileId is one of the ids marked on THIS link — another file of the same run, a trace, a file marked on another link and an invented id are all that 404. A marked file is held to the report as it reads now: once its result is superseded by a retry, or its test is muted, the report no longer lists it and this answers 404. The answer is the file’s bytes (X-Content-Type-Options: nosniff, a sandboxing Content-Security-Policy, Content-Disposition: inline for a picture and attachment otherwise), wherever the file is kept. A file in a bucket is read by the server and handed on as a stream with those same headers, and Content-Length when the bucket states one: no address of the bucket is ever given out, so after a revoke or the link’s end nothing answers. When the bucket is no longer connected, cannot be reached or does not have the object the answer is 404. A process reads at most 4 such files at once: another is 429 with Retry-After: 1. Sent with Cache-Control: no-store, X-Robots-Tag: noindex, nofollow and Referrer-Policy: no-referrer. 120 a minute for a client address, counted together with the report’s reads; a client may send 100 of these a minute with a password (a page asks for up to 50 files), counted apart from the report’s 30, and at most 2 derivations run at once in a process: another is 429 with Retry-After: 1, so a page reads its files a few at a time and tries again.

token
required
string

43 characters of base64url.

fileId
required
string

An id from failures[].files of the report.

X-Report-Password
string

The report’s password, when it has one. Printable ASCII, at most 128 characters.

The bytes of the file

string format: binary

A password is set and none was sent (code: password_required), or the one sent is wrong (code: wrong_password)

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

No such report, or it is off or revoked; or the report is not detailed, or the file is not one marked on this link; or the file is in a bucket that did not give it

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

The link has expired (code: expired)

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

Rate limit exceeded, or too many wrong passwords for this token; or busy (Retry-After: 1): too many password checks, or too many files being read from a bucket, at once

Retry-After
integer