I am trying to retrieve a data preview of a file stored in my Qlik Cloud tenant using the following API endpoint:
GET /api/v1/data-files/${id}
When I call this endpoint, the response only returns the file metadata, such as name, size, and creation date. However, what I actually need is to preview the file content itself, for example the first few rows of a CSV or Excel file, similar to what Qlik Cloud shows in the UI when you open a data file.
My questions are:
Is it possible to retrieve a data preview through this endpoint, and if so, what parameters are needed?
If this endpoint only returns metadata, is there another endpoint in the Qlik Cloud API that supports data file content preview?