# Retrieve an import

`GET https://api.cademi.com.br/api/v3/imports/{import_id}`

Operation ID: `imports.get` · API v3

Retrieves an import by its public ID, including imports in the trash, which are returned with `deleted` set to `true`.

File-level errors, such as an unreadable spreadsheet or a missing required column, are reported in `failure_reason`.

The response includes an `ETag` representing the current revision. Send this value in the `If-Match` header when updating the import to avoid overwriting a newer version.

Required permissions: `imports.read`.

## Parameters

| Name | In | Type | Required | Description |
|---|---|---|---|---|
| `import_id` | path | string | yes |  |

## Responses

### 200

Returns the requested import.

Body: `data`: Import.

Fields of Import:

| Field | Type | Required | Description |
|---|---|---|---|
| `created_at` | string (date-time) | yes |  |
| `current_operation_id` | string or null | yes | Public ID of the operation in progress on the import, prefixed with op_. |
| `deleted` | boolean | yes |  |
| `duplicate_policy` | string, one of `skip`, `update` | yes |  |
| `failure_reason` | string or null | yes | Reason the file as a whole was rejected, such as an unreadable spreadsheet, a missing column, or exceeding the allowed limit. Does not cover errors in individual rows. |
| `file_id` | string or null | yes | Public ID of the source file, prefixed with file_. |
| `id` | string | yes | Public ID of the import, prefixed with imp_. |
| `mapping` | object | yes | Fixed spreadsheet column mapping. Read-only in this API version. |
| `object` | string, one of `import` | yes |  |
| `revision` | string | yes |  |
| `rows` | object | yes | Row counts from the analysis. All values are zero until the analysis has run. |
| `status` | string, one of `pending`, `analyzed`, `processing`, `processed`, `failed` | yes |  |
| `type` | string, one of `students_access` | yes |  |
| `updated_at` | string (date-time) | yes |  |

### 401

The credential is missing, malformed, expired, or revoked.

Body: Error.

### 403

The current credentials do not have the permission required by this operation.

Body: Error.

### 404

The import was not found or is not accessible with the current credentials.

Body: Error.

Full schema: https://cademi.dev/openapi/v3.json
