> This page is for version v1.3 (default).
> For other versions, use one of these documentation indexes:
> - v1.3 (default): https://docs.twelvelabs.io/v1.3/llms.txt

> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.twelvelabs.io/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.twelvelabs.io/_mcp/server.

# Retrieve an import

GET https://api.twelvelabs.io/v1.3/connections/{connection_id}/imports/{import_id}

This method retrieves a single import. For each file, the response includes the `action` field, which indicates the outcome of the import operation, and the `status` field, which reflects the current status of the asset each time you retrieve the import.


Reference: https://docs.twelvelabs.io/api-reference/data-connectors/imports/retrieve-an-import

## Authentication

- `x-api-key` header (required) — Your API key. You can find your API key on the API Keys page.

## Request

### Path parameters

- `connection_id` (string, required) — The unique identifier of the connection to retrieve the import from.
- `import_id` (string, required) — The unique identifier of the import to retrieve.

## Response

### 200

The import has been successfully retrieved.

- `_id` (string, optional) — The unique identifier of the import.
- `connection_id` (string, optional) — The unique identifier of the connection the files were imported through.
- `provider` (enum, optional) — The data connector provider.
  - Allowed values: `google_drive`
- `custom_id` (string, optional) — The label you supplied when you [authorized the connection](/v1.3/api-reference/data-connectors/authorize-a-connection), copied when the import was created. Present only when you supplied one.
- `item_count` (integer, optional) — The number of files requested in this import. If an imported asset is later deleted, it is omitted from the `items` array returned by the [Retrieve an import](/v1.3/api-reference/data-connectors/imports/retrieve-an-import) endpoint, so the `items` array can contain fewer entries than `item_count`.
- `created_at` (string, optional) — The date and time, in the RFC 3339 format ("YYYY-MM-DDTHH:mm:ssZ"), when the import was created.
- `items` (list of ImportItem, optional) — One entry per requested file, in request order, with its `action` value and the current status of its asset.

## Errors

### 400 Bad Request Error

The request has failed.

- `code` (string, optional) — A string representing the code associated with the error. See the [Error codes](/v1.3/api-reference/error-codes) page for details.
- `message` (string, optional) — A human-readable string describing the error, intended to be suitable for display in a user interface.

### 404 Not Found Error

The specified import does not exist.

- `code` (string, optional) — A string representing the code associated with the error. See the [Error codes](/v1.3/api-reference/error-codes) page for details.
- `message` (string, optional) — A human-readable string describing the error, intended to be suitable for display in a user interface.
- `docs_url` (string, optional) — The URL of the relevant documentation page.

## Types

### ImportItem

An import item, including the `action` value and the current status of its asset. The `action` field does not change. The `status` field reflects the current status of the asset. An item rejected before an asset was created has no value in its `status` field; its `error` object describes the reason instead.

- `source_id` (string, optional) — The identifier of the file at the provider. For Google Drive, this is the identifier Google Drive assigns to the file.
- `action` (enum, optional) — The action taken for this file: created, skipped, retried, or rejected. The platform sets this value while processing the request, and the value does not change afterward. The [Import files](/v1.3/api-reference/data-connectors/imports/import-files) endpoint always returns this field. The [Retrieve an import](/v1.3/api-reference/data-connectors/imports/retrieve-an-import) endpoint omits it for imports from before this field existed. Treat an absent value as unknown rather than as a specific action. The `skipped` and `retried` values both mean the file was already imported through this account: for the `skipped` action, the platform returns the existing asset; for the `retried` action, the earlier fetch had failed, so the platform fetches the file again. See [The import object](/v1.3/api-reference/data-connectors/imports/the-import-object#item-actions) for the meaning of each value.
  - Allowed values: `created`, `skipped`, `retried`, `rejected`
- `asset_id` (string, optional) — The unique identifier of the asset for this file. When the `action` field is `created`, this identifies a new asset; when it is `skipped` or `retried`, this identifies the asset from the earlier import of the same file. Absent when the item was rejected before an asset was created.
- `status` (enum, optional) — The status of the asset. See [The import object](/v1.3/api-reference/data-connectors/imports/the-import-object#item-statuses) for the possible values. Absent when the item was rejected before an asset was created, in which case an `error` object is present.
  - Allowed values: `processing`, `ready`, `failed`
- `error` (ImportItemError, optional) — Details of the rejection. Present when the item was rejected before an asset was created, in which case the `status` field is absent.

### ImportItemError

Details of the rejection. Present when the item was rejected before an asset was created, in which case the `status` field is absent.

- `code` (string, optional) — A string representing the code associated with the error. For the possible values, see the [Error codes](/v1.3/api-reference/error-codes#the-connections-endpoints) page.
- `message` (string, optional) — A human-readable string describing the error, intended to be suitable for display in a user interface.

## Examples

**Response**

```json
{
  "_id": "665f0afe9b1e4d0012a3f7d0",
  "connection_id": "665f0a2c9b1e4d0012a3f7c9",
  "provider": "google_drive",
  "custom_id": "end-user-1234",
  "item_count": 2,
  "created_at": "2026-05-29T12:01:00Z",
  "items": [
    {
      "source_id": "1AbCDef_drive_file_id_x",
      "action": "created",
      "asset_id": "665f0b1f9b1e4d0012a3f7e1",
      "status": "processing",
      "error": {
        "code": "source_unavailable",
        "message": "The file could not be accessed."
      }
    }
  ]
}
```

**SDK Code**

```python
import requests

url = "https://api.twelvelabs.io/v1.3/connections/665f0a2c9b1e4d0012a3f7c9/imports/665f0afe9b1e4d0012a3f7d0"

headers = {"x-api-key": "<apiKey>"}

response = requests.get(url, headers=headers)

print(response.json())
```

```javascript
const url = 'https://api.twelvelabs.io/v1.3/connections/665f0a2c9b1e4d0012a3f7c9/imports/665f0afe9b1e4d0012a3f7d0';
const options = {method: 'GET', headers: {'x-api-key': '<apiKey>'}};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "https://api.twelvelabs.io/v1.3/connections/665f0a2c9b1e4d0012a3f7c9/imports/665f0afe9b1e4d0012a3f7d0"

	req, _ := http.NewRequest("GET", url, nil)

	req.Header.Add("x-api-key", "<apiKey>")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby
require 'uri'
require 'net/http'

url = URI("https://api.twelvelabs.io/v1.3/connections/665f0a2c9b1e4d0012a3f7c9/imports/665f0afe9b1e4d0012a3f7d0")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<apiKey>'

response = http.request(request)
puts response.read_body
```

```java
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.get("https://api.twelvelabs.io/v1.3/connections/665f0a2c9b1e4d0012a3f7c9/imports/665f0afe9b1e4d0012a3f7d0")
  .header("x-api-key", "<apiKey>")
  .asString();
```

```php
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://api.twelvelabs.io/v1.3/connections/665f0a2c9b1e4d0012a3f7c9/imports/665f0afe9b1e4d0012a3f7d0', [
  'headers' => [
    'x-api-key' => '<apiKey>',
  ],
]);

echo $response->getBody();
```

```csharp
using RestSharp;

var client = new RestClient("https://api.twelvelabs.io/v1.3/connections/665f0a2c9b1e4d0012a3f7c9/imports/665f0afe9b1e4d0012a3f7d0");
var request = new RestRequest(Method.GET);
request.AddHeader("x-api-key", "<apiKey>");
IRestResponse response = client.Execute(request);
```

```swift
import Foundation

let headers = ["x-api-key": "<apiKey>"]

let request = NSMutableURLRequest(url: NSURL(string: "https://api.twelvelabs.io/v1.3/connections/665f0a2c9b1e4d0012a3f7c9/imports/665f0afe9b1e4d0012a3f7d0")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```