Skip to main content
GET
/
import-monitoring
cURL
curl -X GET "https://apiweb.mile.app/api/v3/import-monitoring?type=datasource&status=onprocess&limit=20&page=1" \
  -H "Authorization: Bearer YOUR_ACCESS_TOKEN"
{
  "status": true,
  "message": "Success",
  "data": {
    "current_page": 1,
    "data": [
      {
        "_id": "65f8a4c2d9e3b1234567890a",
        "organizationId": "63c61d865347e356d05e3052",
        "type": "string",
        "hubId": "63c63ab1b6972d3150348172",
        "filename": "outlets_import.xlsx",
        "totalRows": 150,
        "totalValid": 145,
        "totalInvalid": 5,
        "status": "partially",
        "dataTypeId": "63db2fb476bc679c540369c4",
        "dataTypeName": "OutletDetail",
        "fileTemplate": "https://staticdev.mile.app/dev-mile/templates/template_OutletDetail.xlsx",
        "fileFailedImported": "https://staticdev.mile.app/dev-mile/failed/failed_outlets_import_65f8a4c2d9e3b1234567890a.xlsx",
        "processedAt": "2024-03-18 10:32:15",
        "processingDuration": 90,
        "totalChunks": 3,
        "processedChunks": 3,
        "createdBy": "john.doe@mile.app",
        "updatedBy": "system",
        "createdTime": "2024-03-18 10:30:45",
        "updatedTime": "2024-03-18 10:32:15"
      },
      {
        "_id": "65f8a3b1c8d2a0123456789b",
        "organizationId": "63c61d865347e356d05e3052",
        "type": "string",
        "hubId": "63c63ab1b6972d3150348172",
        "filename": "tasks_import.csv",
        "totalRows": 500,
        "totalValid": 500,
        "totalInvalid": 0,
        "status": "success",
        "flowId": "63d8c9b0dbd5ef20a627dd86",
        "flowName": "Delivery",
        "fileTemplate": "https://staticdev.mile.app/dev-mile/templates/template_task_import.xlsx",
        "processedAt": "2024-03-18 10:25:30",
        "processingDuration": 120,
        "totalChunks": 5,
        "processedChunks": 5,
        "createdBy": "jane.smith@mile.app",
        "updatedBy": "system",
        "createdTime": "2024-03-18 10:23:30",
        "updatedTime": "2024-03-18 10:25:30"
      }
    ],
    "first_page_url": "https://apiweb.mile.app/api/v3/import-monitoring?page=1",
    "from": 1,
    "last_page": 5,
    "last_page_url": "https://apiweb.mile.app/api/v3/import-monitoring?page=5",
    "links": [
      {
        "url": null,
        "label": "« Previous",
        "active": false
      },
      {
        "url": "https://apiweb.mile.app/api/v3/import-monitoring?page=1",
        "label": "1",
        "active": true
      },
      {
        "url": "https://apiweb.mile.app/api/v3/import-monitoring?page=2",
        "label": "2",
        "active": false
      },
      {
        "url": "https://apiweb.mile.app/api/v3/import-monitoring?page=2",
        "label": "Next »",
        "active": false
      }
    ],
    "next_page_url": "https://apiweb.mile.app/api/v3/import-monitoring?page=2",
    "path": "https://apiweb.mile.app/api/v3/import-monitoring",
    "per_page": 20,
    "prev_page_url": null,
    "to": 20,
    "total": 95
  }
}

Authorizations

Authorization
string
header
required

Use a valid Bearer token to authenticate.

Query Parameters

page
integer

Page number for pagination. Example: 1 Default: 1

limit
integer

Number of records per page. Example: 20 Default: 20 Max: 100

type
string

Filter by import type. Comma-separated for multiple types. enum: datasource, task, visit, route Example: datasource,task

status
string

Filter by import status. Comma-separated for multiple statuses. enum: onprocess, success, partially, failed Example: onprocess,success

dataTypeId
string

Filter by data type ID (for datasource imports only). Use GET /data-types API to get the list of Data Type IDs. Example: 63db2fb476bc679c540369c4

sortBy
string

Sort by field. Example: createdTime, updatedTime, status Default: createdTime

sortOrder
string

Sort order. enum: asc, desc Default: desc

Response

Success

status
boolean

Status of response.

message
string

Message of API response.

data
object

Paginated list of import monitoring records.