> ## Documentation Index
> Fetch the complete documentation index at: https://docsy3.mile.app/llms.txt
> Use this file to discover all available pages before exploring further.

# Import/Export

> Import data from files and export tasks and configurations

## Overview

The Import/Export API provides endpoints for bulk data operations in the platform. You can import data sources, tasks, visits, and routes from files, as well as export tasks and configure export templates for recurring exports.

## API Categories

### Data Import

Import data from files into the platform. Supports multiple import types with background queue processing.

| Endpoint | Description |
| - | - |
| `POST /data/import` | Import data source from file |
| `GET /import-monitoring` | List import monitoring records |
| `GET /import-monitoring/{id}` | Get import monitoring by ID |

> [card] [Import Data](https://docsy3.mile.app/api-reference/importexport/data-import/import-data-source-from-file.md)
>
> Import data from CSV or Excel files

> [card] [Monitor Import](https://docsy3.mile.app/api-reference/importexport/data-import/read-import-monitoring-records.md)
>
> Track import job progress and status

#### Supported Import Types

| Type | Description |
| - | - |
| `datasource` | Import data source records |
| `task` | Import tasks in bulk |
| `visit` | Import visits for route optimization |
| `route` | Import route data |

> [!NOTE]
>
> Import operations are processed asynchronously in a background queue. Use the import monitoring endpoints to track progress.

### Export Task

Export tasks and data sources to files for reporting and backup purposes.

| Endpoint | Description |
| - | - |
| `POST /data/export` | Export data source to file |
| `POST /tasks/export` | Export tasks to file |
| `GET /tasks/export-log` | Get task export history |

> [card] [Export Tasks](https://docsy3.mile.app/api-reference/importexport/export-task/export-tasks.md)
>
> Export tasks to CSV or Excel

> [card] [Export Log](https://docsy3.mile.app/api-reference/importexport/export-task/get-export-log-history.md)
>
> View export history and download files

### Export Configuration

Create and manage export templates for consistent, repeatable exports.

| Endpoint | Description |
| - | - |
| `GET /export-configs` | List all export configurations |
| `GET /export-config/{exportConfigId}` | Get export config by ID |
| `POST /export-config` | Create new export configuration |
| `PUT /export-config/{exportConfigId}` | Update export configuration |
| `DELETE /export-config/{exportConfigId}` | Delete export configuration |

> [card] [List Configs](https://docsy3.mile.app/api-reference/importexport/export-config/read-export-config.md)
>
> View all export configurations

> [card] [Create Config](https://docsy3.mile.app/api-reference/importexport/export-config/create-export-config.md)
>
> Create a new export template

## Export Configuration Features

Export configurations allow you to:

* **Define field mappings** - Map task fields to export columns
* **Set default filters** - Pre-configure which tasks to export
* **Schedule exports** - Automate recurring exports
* **Customize formats** - Choose output format and structure

## File Formats

### Supported Import Formats

| Format | Extension | Notes |
| - | - | - |
| CSV | `.csv` | Comma-separated values |
| Excel | `.xlsx` | Microsoft Excel format |
| Excel (Legacy) | `.xls` | Legacy Excel format |

### Supported Export Formats

| Format | Extension | Notes |
| - | - | - |
| CSV | `.csv` | Comma-separated values |
| Excel | `.xlsx` | Microsoft Excel format |

## Common Operations

> [card] [Import Data](https://docsy3.mile.app/api-reference/importexport/data-import/import-data-source-from-file.md)
>
> Upload and import data files

> [card] [Export Tasks](https://docsy3.mile.app/api-reference/importexport/export-task/export-tasks.md)
>
> Export tasks to files

> [card] [Monitor Jobs](https://docsy3.mile.app/api-reference/importexport/data-import/read-import-monitoring-records.md)
>
> Track import/export progress

> [card] [Manage Templates](https://docsy3.mile.app/api-reference/importexport/export-config/read-export-config.md)
>
> Configure export templates

## Permissions

| Operation | Required Permission |
| - | - |
| Import Data | `Import Data` |
| Export Tasks | `Export Task` |
| Export Configs | `View Export Config`, `Edit Export Config` |

## Related Resources

* [Task](https://docsy3.mile.app/api-reference/task/overview.md) - Manage individual tasks
* [Data](https://docsy3.mile.app/api-reference/data/overview.md) - Data source management
* [Flow](https://docsy3.mile.app/api-reference/flow/overview.md) - Configure task templates


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.