---
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

## Changes

> 56 revisions in range; 1 not diffed.

- **2026-08-24** `0bd802afff21` — 2 info
  - the endpoint scheme security `ApiKeyAuth` was added to the API
  - the endpoint scheme security `BearerAuth` was added to the API
- **2026-08-20** `cadebfd78fef` — 1 breaking
  - api path removed without deprecation
- **2026-04-22** `c7fd9db35b56` — 1 info
  - endpoint added
- **2025-06-02** `0c070796939d` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/marmotdata/apis/marmot-api/changes/api/v1/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-service-production.skmtc.workers.dev/v1/apis/marmotdata/marmot-api/revisions/0bd802afff21/schema)
