---
title: "Get import status"
method: GET
path: "/topics/{topicId}/imports/{importId}"
tags: ["Data Import"]
---

# Get import status

`GET /topics/{topicId}/imports/{importId}`

## Request

- Base URL: `https://api.youscan.io/api/external`
- URL: `https://api.youscan.io/api/external/topics/{topicId}/imports/{importId}`
- Auth: one of:
  - API key in header `X-API-KEY`
  - API key in query parameter `apiKey`
- TypeScript: <https://skmtc.dev/youscan/apis/youscan-api/docs/topics/:topicId/imports/:importId/get.ts> (a function with typed inputs; its response is checked against the schema)

Get the current status of a data import job.

## Path parameters

- `topicId` integer, required
- `importId` integer, required

## Response `200`

Import status.

- ImportStatus
  - `importId` integer: Unique import identifier.
  - `name` string, nullable: Import name.
  - `totalMentions` integer: Total number of mentions in the import.
  - `savedCount` integer: Number of successfully saved mentions.
  - `failedCount` integer: Number of failed mentions.
  - `status` 'Pending' | 'Processing' | 'Completed' | 'Failed' | 'Aborted': Current import status.
  - `createdAt` string, date-time: Creation timestamp (ISO 8601).
  - `startedAt` string, date-time, nullable: Processing start timestamp (ISO 8601).
  - `completedAt` string, date-time, nullable: Completion timestamp (ISO 8601).
  - `lastError` string, nullable: Last error message.
  - `source` string: Where the import was created from (e.g. "Api", "Ui").
  - `userEmail` string, nullable: Email of the user who created the import.
  - `userName` string, nullable: Name of the user who created the import.
  - `canShowMentions` boolean: Whether the imported mentions can be viewed in the topic.

## Other responses

- `401`: The API key is missing or invalid.
- `404`: Import not found, or the topic isn't found or accessible.

---

[API](https://skmtc.dev/youscan/apis/youscan-api.md) - [All operations](https://skmtc.dev/youscan/apis/youscan-api/llms.txt) - [OpenAPI document](https://skmtc.dev/youscan/apis/youscan-api/revisions/f5bef260f153?raw)
