Files
A file is one we made for you: a report run’s result. Download it with your key from its url, /files/{id}/contents: a path on the API’s host, not a full address, so put the base URL before it, https://api.dev.novaro.ink/files/{id}/contents. The answer is a 302 to the file itself, a link good for 60 seconds, and never cached: follow the redirect at once, without your key, and call the URL again for a new link. Its Location may be a path on the API’s host rather than a full address: resolve it against the base URL, as a browser and curl do. Every download is recorded. Files take a secret key (sk_); a CLI key (rk_) gets 403 api_key_permission.
A file of another account, or of a run your key cannot read, is 404 resource_missing, as for a file that does not exist. A file past its expires_at is 400 file_expired.
Endpoints
GET/files/{id}/contentsGetFileContents
Loading the reference…