> For the complete documentation index, see [llms.txt](https://codemash.gitbook.io/codemash/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://codemash.gitbook.io/codemash/sdks/database/imports/analyze-import-file.md).

# Analyze Import File

Analyze Import File.

**Imports** load records into a collection from an uploaded CSV, with a column-to-field mapping. Analyzes the import file.

This method is on the **Hub** surface (`norbix.hub.database`) — call it from admin tooling or IaC.

{% hint style="info" %}
These examples assume the SDK is installed and your credentials are set as environment variables — each client reads them automatically, so the constructors below take no arguments. See [Install a Norbix SDK](/codemash/sdks/install.md).
{% endhint %}

{% tabs %}
{% tab title="JavaScript / TypeScript" %}

```ts
import { Norbix } from '@norbix.ai/ts';
const norbix = new Norbix();

const result = await norbix.hub.database.analyzeImportFile({
  delimiter: 'example-value',
  hasHeader: true,
});
```

{% endtab %}

{% tab title=".NET" %}

```csharp
using Norbix.Sdk;
using Norbix.Sdk.Types.Hub;

using var client = new NorbixClient();

var result = await client.Database.AnalyzeImportFileAsync(new AnalyzeImportFileRequest
{
    Delimiter = "example-value",
    HasHeader = true,
});
```

{% endtab %}

{% tab title="Python" %}

```python
from norbix_python import NorbixHub

norbix = NorbixHub()

result = norbix.database.analyze_import_file(
    delimiter="example-value",
    hasHeader=True,
)
```

{% endtab %}

{% tab title="Go" %}

```go
c, _ := norbix.New(norbix.Options{})
ctx := context.Background()

var result map[string]any
err := c.Hub.Database.AnalyzeImportFile(ctx, map[string]any{
	"delimiter": "example-value",
	"hasHeader": true,
}, &result)
```

{% endtab %}

{% tab title="Dart / Flutter" %}

```dart
import 'package:norbix/norbix_hub.dart';

final hub = NorbixHub();

final result = await hub.database.analyzeImportFile(body: {
  'delimiter': 'example-value',
  'hasHeader': true,
});
```

{% endtab %}

{% tab title="Swift" %}

```swift
import NorbixHub

let client = try NorbixHubClient()

let result = try await client.database.analyzeImportFile([
    "delimiter": "example-value",
    "hasHeader": true,
])
```

{% endtab %}

{% tab title="Kotlin" %}

```kotlin
import ai.norbix.sdk.hub.NorbixHub

val hub = NorbixHub()

val result = hub.database.analyzeImportFile(mapOf(
    "delimiter" to "example-value",
    "hasHeader" to true,
))
```

{% endtab %}

{% tab title="CLI" %}

```sh
norbix hub db import file analyze --delimiter example-value --hasHeader true
```

{% endtab %}
{% endtabs %}

## In Cloud

Manage this visually in Cloud — see [Database → Imports](/codemash/cloud/database.md).

## API reference

Full request and response for this endpoint: [Analyze Import File](/codemash/api-reference/database/imports/analyze-import-file.md).
