Overview
The Import/Export API provides endpoints for bulk data operations in MileApp. 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 MileApp. 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 |
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 |
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 |
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 |
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
| Format | Extension | Notes |
|---|
| CSV | .csv | Comma-separated values |
| Excel | .xlsx | Microsoft Excel format |
| Excel (Legacy) | .xls | Legacy Excel format |
| Format | Extension | Notes |
|---|
| CSV | .csv | Comma-separated values |
| Excel | .xlsx | Microsoft Excel format |
Common Operations
Permissions
| Operation | Required Permission |
|---|
| Import Data | Import Data |
| Export Tasks | Export Task |
| Export Configs | View Export Config, Edit Export Config |
- Task - Manage individual tasks
- Data - Data source management
- Flow - Configure task templates