GET
/
files
/
{file_id}
curl --request GET \
  --url https://api.togai.com/files/{file_id} \
  --header 'Authorization: Bearer <token>'
This response does not have an example.

This API returns a 302 Redirect response with appropriate Location header such that the download of the file is initiated when the API is triggered from a webapp on a browser.

If the requirement is to get an auth-less URL which can be easily shared, refer Generate download URL API

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

file_id
string
required
Example:

"file.20aUyEZSuYq.SoGbS"

Response

302
_mintlify/placeholder

Redirects to the file url