Files uploaded to Linear, such as images and attachments, are stored in Linear's private cloud storage. You must authenticate to access these files. These files are accessible from the https://uploads.linear.app hostname.
You can pass the same access token and authorization header as you would when making requests to our GraphQL API when requesting files from storage. This is usually the best option when downloading files in a server environment. An example request might look something like:
When using the GraphQL API, you can request that all URLs in responses pointing to file storage include a signature which allows temporary access to the file. This is achieved by passing the public-file-urls-expire-in header with an integer value representing the signature expiration in seconds.
With the TypeScript SDK this header can be set directly on the client. Here is an example to receive signatures that are valid for 1 minute: