---
title: "Browse a data-source import preview as a tree"
method: GET
path: "/datasources/import-preview/{preview_id}"
tags: ["datasources"]
---

# Browse a data-source import preview as a tree

`GET /datasources/import-preview/{preview_id}`

Lists one lazily-loaded level of a previously created import preview's unified file tree; each file is tagged valid/invalid/review. Pass `path` (relative to the business root, empty for the root) to list a folder's children, and `page_token` from a previous response to continue a large level. Folders may recur across pages and must be de-duplicated by path.

## Path parameters

- `preview_id` string, required

## Query parameters

- `path` string
- `page_token` string
- `limit` integer

## Response `200`

OK

- ModelsPreviewTreeResponse
  - `files` ModelsPreviewTreeFile[]
    - `key` string
    - `name` string
    - `part_number` string
    - `reason` string
    - `status` string
  - `folders` ModelsPreviewTreeFolder[]
    - `name` string
    - `path` string
  - `next_page_token` string

## Other responses

- `400` — Bad Request
- `401` — Unauthorized
- `404` — Not Found
- `500` — Internal Server Error

---

[API](https://skmtc.net/resourcly/apis/resourcly-api.md) · [All operations](https://skmtc.net/resourcly/apis/resourcly-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/resourcly/resourcly-api/revisions/7f97d8cd0f1e/schema)
