Get a cached preview of a value

GET /Platform/dtypes/{dtype_hash}/preview

Get a cached preview of a value. The preview is bytes-free.

Reads cached preview fields (waveform, thumbnail, header) directly from the KV store — never calls to_bytes() on the raw data key. When force=True triggers a one-time compute for missing fields so the next request serves from cache.

Audio, image, PDF and file previews also carry media_url: a signed link a browser <audio>/<img> element or a new tab can load directly (audio as mp3, seekable), bound to the organization this request acted in (an element or a new tab cannot send the org header itself). Whoever holds it can load the value for one hour.

Path parameters

Query parameters

Returns

DtypePreview

Example request

curl -X GET "https://api.hilus.ai/Platform/dtypes/{dtype_hash}/preview" \
  -H "Authorization: Bearer $HILUS_API_KEY"