---
title: "Get import dataset schema"
method: GET
path: "/import/datasets/{id}/schema"
tags: ["Import Datasets"]
---

# Get import dataset schema

`GET /import/datasets/{id}/schema`

Get the historical schema of an import dataset.

## Path parameters

- `id` string, required

## Response `200`

OK

- object
  - `status` 'success', required
  - `data` GetDatasetSchemaResponse, required
    - `columns` DatasetSchemaColumn[], required
      - `column_name` string, required — The name of the column in the dataset.
      - `prequel_type` string, required — The most recent normalized Prequel data type for this column.
      - `source_type` string, required — The most recent raw data type from the source for this column.
      - `seen_source_types` string[], required — All distinct raw source types seen historically for this column.
      - `seen_prequel_types` string[], required — All distinct normalized Prequel types seen historically for this column.
      - `in_latest_extract` boolean, required — Indicates if this column was present in the most recent successful extract.
      - `first_seen_at` string, required — The timestamp when this column was first extracted.
      - `last_seen_at` string, required — The timestamp when this column was most recently extracted.
  - `message` string, required

## Other responses

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

---

[API](https://skmtc.net/prequel/apis/prequel-data-export.md) · [All operations](https://skmtc.net/prequel/apis/prequel-data-export/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/prequel/prequel-data-export/versions/09c662a871f8/schema)
