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

# Get Import History

`GET /imports/history/{history_id}`

## Request

- Base URL: `https://extralit-public-demo.hf.space/api/v1`
- URL: `https://extralit-public-demo.hf.space/api/v1/imports/history/{history_id}`
- Auth: one of:
  - API key in header `X-Extralit-Api-Key`
  - HTTP bearer

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.dev/hf/apis/extralit-v1.md) - [All operations](https://skmtc.dev/hf/apis/extralit-v1/llms.txt) - [OpenAPI document](https://skmtc.dev/hf/apis/extralit-v1/revisions/ca32894f988c?raw)
