Files
Download a file
GET
Redirects (302) to a signed URL with Content-Disposition: attachment. With redirect=false, returns the URL as JSON. With inline=true, an image, PDF, audio, or text file gets Content-Disposition: inline and a type a browser shows (text is always text/plain), for a preview in the page.
bearer files:readheader
AuthorizationBearer <token>An API key, an OAuth access token, or a signed-in session token.
Scope: files:read
id*stringLength
1 <= lengthredirect?stringDefault
"true"Value in
"true""false"original?stringDefault
"false"Value in
"true""false"inline?stringDefault
"false"Value in
"true""false"Signed URL (redirect=false)
application/json- response
url*stringFormat
uriexpiresAt*stringFormat
date-timecurl -X GET 'https://fastwater.app/v1/files/string/download'Example Response
{ "url": "http://example.com", "expiresAt": "2019-08-24T14:15:22Z"}