Read task import records
curl --request GET \
--url https://apiweb.mile.app/api/v3/tasks/import-monitoring \
--header 'Authorization: Bearer <token>'import requests
url = "https://apiweb.mile.app/api/v3/tasks/import-monitoring"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://apiweb.mile.app/api/v3/tasks/import-monitoring', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://apiweb.mile.app/api/v3/tasks/import-monitoring",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://apiweb.mile.app/api/v3/tasks/import-monitoring"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://apiweb.mile.app/api/v3/tasks/import-monitoring")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://apiweb.mile.app/api/v3/tasks/import-monitoring")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"status": true,
"message": "Success",
"data": {
"current_page": 1,
"data": [
{
"_id": "670f9a1b2c3d4e5f6a7b8c9d",
"organizationId": "64d99303be0ad015c461c932",
"flowName": "Delivery",
"hubId": "64d9932e2beb9037735ff022",
"filename": "tasks-16-oct.xlsx",
"totalRows": 120,
"totalValid": 118,
"totalInvalid": 2,
"status": "finished",
"fileFailedImported": "https://apistorage.mile.app/production/import/failed/tasks-16-oct.xlsx",
"createdTime": "2026-10-16T03:00:00.000000Z",
"updatedTime": "2026-10-16T03:00:00.000000Z"
}
],
"per_page": 10,
"total": 1
}
}{
"status": false,
"message": "Bad request - invalid parameters provided."
}Import
Read task import records
Lists task imports of the last 30 days, newest first, with their progress: totalRows, totalValid, totalInvalid and status. When rows fail, fileFailedImported links to a file with the failed rows.
Any signed-in user can call this.
GET
/
tasks
/
import-monitoring
Read task import records
curl --request GET \
--url https://apiweb.mile.app/api/v3/tasks/import-monitoring \
--header 'Authorization: Bearer <token>'import requests
url = "https://apiweb.mile.app/api/v3/tasks/import-monitoring"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://apiweb.mile.app/api/v3/tasks/import-monitoring', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://apiweb.mile.app/api/v3/tasks/import-monitoring",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://apiweb.mile.app/api/v3/tasks/import-monitoring"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://apiweb.mile.app/api/v3/tasks/import-monitoring")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://apiweb.mile.app/api/v3/tasks/import-monitoring")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"status": true,
"message": "Success",
"data": {
"current_page": 1,
"data": [
{
"_id": "670f9a1b2c3d4e5f6a7b8c9d",
"organizationId": "64d99303be0ad015c461c932",
"flowName": "Delivery",
"hubId": "64d9932e2beb9037735ff022",
"filename": "tasks-16-oct.xlsx",
"totalRows": 120,
"totalValid": 118,
"totalInvalid": 2,
"status": "finished",
"fileFailedImported": "https://apistorage.mile.app/production/import/failed/tasks-16-oct.xlsx",
"createdTime": "2026-10-16T03:00:00.000000Z",
"updatedTime": "2026-10-16T03:00:00.000000Z"
}
],
"per_page": 10,
"total": 1
}
}{
"status": false,
"message": "Bad request - invalid parameters provided."
}