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

# Get import errors

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

## Request

- Base URL: `https://api.youscan.io/api/external`
- URL: `https://api.youscan.io/api/external/topics/{topicId}/imports/{importId}/errors`
- 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/errors/get.ts> (a function with typed inputs; its response is checked against the schema)

Get a list of errors that occurred during the import process.

## Path parameters

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

## Response `200`

Import errors.

- object
  - `errors` ImportError[]
    - `permaLink` string: URL of the mention that failed.
    - `error` string: Error description.
    - `errorCode` string, nullable: Error code.
    - `attemptCount` integer: Number of processing attempts.
    - `createdAt` string, date-time: Error timestamp (ISO 8601).

## 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)
