Skip to content

Download files

The response of the get file API request contains a download url when a file is successfully uploaded, which can be used to download the file.

By default, download urls are valid for 60 minutes. The validity period can be customized by setting the urlDuration query parameter. The url duration may be between five minutes(5m) and seven days(7d).

  • A file should be created. To know more about uploading a file refer here
  1. Get the download URL for an existing file (by file ID):
GET {baseUrl}/spaces/{spaceId}/files/{fileId}?urlDuration=5m&complete=true
  • HEADER:

    • Authorization: Bearer {tid token}
  1. Use the download URL to access the file:

    GET {DOWNLOAD URL}

    —OR—

    Use a browser to go to the download URL.

For more information on files, see Upload a file.