---
title: "Get preview data for an asset"
method: GET
path: "/assets/preview/{id}"
tags: ["assets"]
---

# Get preview data for an asset

`GET /assets/preview/{id}`

Fetches sample data from the asset's data source. Requires assets:preview permission.

## Path parameters

- `id` string, required

## Response `200`

OK

- PreviewResponse
  - `column_names` string[]
  - `rows` array[]
    - unknown[]
      - unknown
  - `total_rows` integer

## Other responses

- `400` — Bad Request
- `403` — Missing assets:preview permission
- `404` — Not Found
- `500` — Internal Server Error
- `501` — Data preview not supported for this asset

## Changes

- **2026-08-20** `cadebfd78fef` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/marmotdata/apis/marmot-api/changes/assets/preview/:id/get.md)

---

[API](https://skmtc.dev/marmotdata/apis/marmot-api.md) · [All operations](https://skmtc.dev/marmotdata/apis/marmot-api/llms.txt) · [OpenAPI document](https://skmtc.dev/marmotdata/apis/marmot-api/revisions/cadebfd78fef?raw)
