Skip to main content

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.
EndpointDescription
POST /data/importImport data source from file
GET /import-monitoringList import monitoring records
GET /import-monitoring/{id}Get import monitoring by ID

Supported Import Types

TypeDescription
datasourceImport data source records
taskImport tasks in bulk
visitImport visits for route optimization
routeImport 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.
EndpointDescription
POST /data/exportExport data source to file
POST /tasks/exportExport tasks to file
GET /tasks/export-logGet task export history

Export Configuration

Create and manage export templates for consistent, repeatable exports.
EndpointDescription
GET /export-configsList all export configurations
GET /export-config/{exportConfigId}Get export config by ID
POST /export-configCreate 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

File Formats

Supported Import Formats

FormatExtensionNotes
CSV.csvComma-separated values
Excel.xlsxMicrosoft Excel format
Excel (Legacy).xlsLegacy Excel format

Supported Export Formats

FormatExtensionNotes
CSV.csvComma-separated values
Excel.xlsxMicrosoft Excel format

Common Operations

Permissions

OperationRequired Permission
Import DataImport Data
Export TasksExport Task
Export ConfigsView Export Config, Edit Export Config
  • Task - Manage individual tasks
  • Data - Data source management
  • Flow - Configure task templates