To download files, you need to request a signed URL first.
Send a GET request to:
https://api.turbofiles.io/files/{fileId}
Downloading Your File
Once you receive the response, locate the signed URL in data.links.download.
Use this URL to download your file by sending a GET request.
Anyone with this url can download files. The URL will expire in 1 hour.
Anyone with this URL can download the file.
POST /files/{fileId} HTTP/1.1
Accept: application/vnd.api+json
Content-Type: application/vnd.api+json
{
"jsonapi": {
"version": "1.1"
},
"data": {
"type": "files",
"id": "8fhd83jpk",
"attributes": {
"format": "image/png",
"size": 504233,
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
},
"links": {
"self": "<string>",
"upload": "<string>",
"download": "<string>"
}
},
"links": {
"self": "<string>"
}
}