A representation is an alternative asset for a file stored in Box. These assets can be PDFs, thumbnails, or text extractions. Representations allow you to access content in different formats without manually converting files, such as by extracting text from documents to send to language models for processing. Representations are automatically generated for the supported file types, either when uploading to Box or when requesting the asset. These representations are exposed through theDocumentation Index
Fetch the complete documentation index at: https://developer.box.com/llms.txt
Use this file to discover all available pages before exploring further.
GET /files/:id endpoint by using
the fields=representations query parameter and the x-rep-hints header.
The workflow involves:
- Getting the list of available representations for a file.
-
Checking a specific representation’s status and retrieving its
url_template. - Downloading the representation if available.
file.get_representation_info(rep_hints) method to access these capabilities.