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

# Get preview data for an asset

`GET /api/v1/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

---

[API](https://skmtc.net/marmotdata/apis/marmot-api.md) · [All operations](https://skmtc.net/marmotdata/apis/marmot-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/marmotdata/marmot-api/versions/ba1b1c4be2e7/schema)
