---
title: "Get Import History"
method: GET
path: "/imports/history/{history_id}"
tags: ["imports"]
---

# Get Import History

`GET /imports/history/{history_id}`

Get detailed import history record including data and metadata.

Args:
    history_id: Import history record ID
    db: Database session
    current_user: Authenticated user

Returns:
    Complete import history record with data and metadata

Raises:
    HTTPException: If record doesn't exist or access denied

## Path parameters

- `history_id` string, uuid, required

## Response `200`

Successful Response

- ImportHistoryResponse — Response schema for import history creation and retrieval.
  - `id` string, uuid, required — Import history record ID
  - `workspace_id` string, uuid, required — Workspace ID
  - `username` string, required — Username who created the import
  - `filename` string, required — Import filename
  - `created_at` string, date-time, required — Creation timestamp
  - `data` object, nullable — Tabular dataframe data (only in detailed view)
  - `metadata` object, nullable — Import metadata with status and files (in list and detailed view)

## Other responses

- `400` — Bad Request
- `403` — Forbidden
- `404` — Not Found
- `409` — Conflict
- `422` — Unprocessable Content
- `500` — Internal Server Error

---

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