Skip to main content
GET
Download or preview a file

Restrictions

Usage

  • Success has two forms: a 302 redirect to a short-lived presigned object-storage URL (files stored in S3-compatible storage), or a 200 binary stream (files hosted on a self-hosted runner). Follow redirects.
  • Responses carry Cache-Control: private, no-store — they are never cached by the gateway.

Authorizations

app_key
string
query
required

App key issued from the Flashduty console. Required on every public API call. Keep it secret — it grants the same access as the owning account.

Query Parameters

t
string
required

Signed token issued by POST /safari/artifact/sign. Bound to the calling account and person; valid for 5 minutes.

mode
enum<string>
default:download

download (default) serves the file as an attachment; preview serves it inline for browser display. Any other value falls back to download.

Available options:
download,
preview

Response

File bytes, proxied, when the file is hosted on a self-hosted runner. Content-Disposition follows mode.

The response is of type file.