Create import config
curl --request POST \
--url https://apiweb.mile.app/api/v3/import-config \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "Delivery Order Import - Flow A",
"description": "Column mapping preset for daily delivery order import",
"collection": "task",
"referenceType": "flow",
"referenceId": "66a988d53ae08a7ab52867c2",
"fields": [
{
"id": "orderNumber",
"headerColumn": "Order No"
},
{
"id": "customerName",
"headerColumn": "Customer"
},
{
"id": "billItem",
"sheet": "Bill Items",
"fields": [
{
"id": "name",
"headerColumn": "Item Name"
},
{
"id": "qty",
"headerColumn": "Quantity"
},
{
"id": "unitPrice",
"headerColumn": "Price"
}
]
}
]
}
'import requests
url = "https://apiweb.mile.app/api/v3/import-config"
payload = {
"name": "Delivery Order Import - Flow A",
"description": "Column mapping preset for daily delivery order import",
"collection": "task",
"referenceType": "flow",
"referenceId": "66a988d53ae08a7ab52867c2",
"fields": [
{
"id": "orderNumber",
"headerColumn": "Order No"
},
{
"id": "customerName",
"headerColumn": "Customer"
},
{
"id": "billItem",
"sheet": "Bill Items",
"fields": [
{
"id": "name",
"headerColumn": "Item Name"
},
{
"id": "qty",
"headerColumn": "Quantity"
},
{
"id": "unitPrice",
"headerColumn": "Price"
}
]
}
]
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
name: 'Delivery Order Import - Flow A',
description: 'Column mapping preset for daily delivery order import',
collection: 'task',
referenceType: 'flow',
referenceId: '66a988d53ae08a7ab52867c2',
fields: [
{id: 'orderNumber', headerColumn: 'Order No'},
{id: 'customerName', headerColumn: 'Customer'},
{
id: 'billItem',
sheet: 'Bill Items',
fields: [
{id: 'name', headerColumn: 'Item Name'},
{id: 'qty', headerColumn: 'Quantity'},
{id: 'unitPrice', headerColumn: 'Price'}
]
}
]
})
};
fetch('https://apiweb.mile.app/api/v3/import-config', 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/import-config",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'name' => 'Delivery Order Import - Flow A',
'description' => 'Column mapping preset for daily delivery order import',
'collection' => 'task',
'referenceType' => 'flow',
'referenceId' => '66a988d53ae08a7ab52867c2',
'fields' => [
[
'id' => 'orderNumber',
'headerColumn' => 'Order No'
],
[
'id' => 'customerName',
'headerColumn' => 'Customer'
],
[
'id' => 'billItem',
'sheet' => 'Bill Items',
'fields' => [
[
'id' => 'name',
'headerColumn' => 'Item Name'
],
[
'id' => 'qty',
'headerColumn' => 'Quantity'
],
[
'id' => 'unitPrice',
'headerColumn' => 'Price'
]
]
]
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://apiweb.mile.app/api/v3/import-config"
payload := strings.NewReader("{\n \"name\": \"Delivery Order Import - Flow A\",\n \"description\": \"Column mapping preset for daily delivery order import\",\n \"collection\": \"task\",\n \"referenceType\": \"flow\",\n \"referenceId\": \"66a988d53ae08a7ab52867c2\",\n \"fields\": [\n {\n \"id\": \"orderNumber\",\n \"headerColumn\": \"Order No\"\n },\n {\n \"id\": \"customerName\",\n \"headerColumn\": \"Customer\"\n },\n {\n \"id\": \"billItem\",\n \"sheet\": \"Bill Items\",\n \"fields\": [\n {\n \"id\": \"name\",\n \"headerColumn\": \"Item Name\"\n },\n {\n \"id\": \"qty\",\n \"headerColumn\": \"Quantity\"\n },\n {\n \"id\": \"unitPrice\",\n \"headerColumn\": \"Price\"\n }\n ]\n }\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://apiweb.mile.app/api/v3/import-config")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"Delivery Order Import - Flow A\",\n \"description\": \"Column mapping preset for daily delivery order import\",\n \"collection\": \"task\",\n \"referenceType\": \"flow\",\n \"referenceId\": \"66a988d53ae08a7ab52867c2\",\n \"fields\": [\n {\n \"id\": \"orderNumber\",\n \"headerColumn\": \"Order No\"\n },\n {\n \"id\": \"customerName\",\n \"headerColumn\": \"Customer\"\n },\n {\n \"id\": \"billItem\",\n \"sheet\": \"Bill Items\",\n \"fields\": [\n {\n \"id\": \"name\",\n \"headerColumn\": \"Item Name\"\n },\n {\n \"id\": \"qty\",\n \"headerColumn\": \"Quantity\"\n },\n {\n \"id\": \"unitPrice\",\n \"headerColumn\": \"Price\"\n }\n ]\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://apiweb.mile.app/api/v3/import-config")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"name\": \"Delivery Order Import - Flow A\",\n \"description\": \"Column mapping preset for daily delivery order import\",\n \"collection\": \"task\",\n \"referenceType\": \"flow\",\n \"referenceId\": \"66a988d53ae08a7ab52867c2\",\n \"fields\": [\n {\n \"id\": \"orderNumber\",\n \"headerColumn\": \"Order No\"\n },\n {\n \"id\": \"customerName\",\n \"headerColumn\": \"Customer\"\n },\n {\n \"id\": \"billItem\",\n \"sheet\": \"Bill Items\",\n \"fields\": [\n {\n \"id\": \"name\",\n \"headerColumn\": \"Item Name\"\n },\n {\n \"id\": \"qty\",\n \"headerColumn\": \"Quantity\"\n },\n {\n \"id\": \"unitPrice\",\n \"headerColumn\": \"Price\"\n }\n ]\n }\n ]\n}"
response = http.request(request)
puts response.read_body{
"status": true,
"code": 201,
"message": "Import Config has been added successfully.",
"data": {
"name": "Delivery Order Import - Flow A",
"description": "Column mapping preset for daily delivery order import",
"collection": "task",
"referenceType": "flow",
"referenceId": "66a988d53ae08a7ab52867c2",
"fields": [
{
"id": "orderNumber",
"headerColumn": "Order No"
},
{
"id": "customerName",
"headerColumn": "Customer"
},
{
"id": "billItem",
"sheet": "Bill Items",
"fields": [
{
"id": "name",
"headerColumn": "Item Name"
},
{
"id": "qty",
"headerColumn": "Quantity"
},
{
"id": "unitPrice",
"headerColumn": "Price"
}
]
}
],
"organizationId": "66791b2bf001a712b77b3622",
"updatedTime": "2026-02-19T08:30:00.000000Z",
"createdTime": "2026-02-19T08:30:00.000000Z",
"_id": "67b5a1234567890abcdef001"
}
}{
"status": false,
"message": "Bad request - invalid parameters provided."
}{
"status": false,
"message": "Internal server error, please contact support@mile.app."
}Import Config
Create import config
POST
/
import-config
Create import config
curl --request POST \
--url https://apiweb.mile.app/api/v3/import-config \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "Delivery Order Import - Flow A",
"description": "Column mapping preset for daily delivery order import",
"collection": "task",
"referenceType": "flow",
"referenceId": "66a988d53ae08a7ab52867c2",
"fields": [
{
"id": "orderNumber",
"headerColumn": "Order No"
},
{
"id": "customerName",
"headerColumn": "Customer"
},
{
"id": "billItem",
"sheet": "Bill Items",
"fields": [
{
"id": "name",
"headerColumn": "Item Name"
},
{
"id": "qty",
"headerColumn": "Quantity"
},
{
"id": "unitPrice",
"headerColumn": "Price"
}
]
}
]
}
'import requests
url = "https://apiweb.mile.app/api/v3/import-config"
payload = {
"name": "Delivery Order Import - Flow A",
"description": "Column mapping preset for daily delivery order import",
"collection": "task",
"referenceType": "flow",
"referenceId": "66a988d53ae08a7ab52867c2",
"fields": [
{
"id": "orderNumber",
"headerColumn": "Order No"
},
{
"id": "customerName",
"headerColumn": "Customer"
},
{
"id": "billItem",
"sheet": "Bill Items",
"fields": [
{
"id": "name",
"headerColumn": "Item Name"
},
{
"id": "qty",
"headerColumn": "Quantity"
},
{
"id": "unitPrice",
"headerColumn": "Price"
}
]
}
]
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
name: 'Delivery Order Import - Flow A',
description: 'Column mapping preset for daily delivery order import',
collection: 'task',
referenceType: 'flow',
referenceId: '66a988d53ae08a7ab52867c2',
fields: [
{id: 'orderNumber', headerColumn: 'Order No'},
{id: 'customerName', headerColumn: 'Customer'},
{
id: 'billItem',
sheet: 'Bill Items',
fields: [
{id: 'name', headerColumn: 'Item Name'},
{id: 'qty', headerColumn: 'Quantity'},
{id: 'unitPrice', headerColumn: 'Price'}
]
}
]
})
};
fetch('https://apiweb.mile.app/api/v3/import-config', 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/import-config",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'name' => 'Delivery Order Import - Flow A',
'description' => 'Column mapping preset for daily delivery order import',
'collection' => 'task',
'referenceType' => 'flow',
'referenceId' => '66a988d53ae08a7ab52867c2',
'fields' => [
[
'id' => 'orderNumber',
'headerColumn' => 'Order No'
],
[
'id' => 'customerName',
'headerColumn' => 'Customer'
],
[
'id' => 'billItem',
'sheet' => 'Bill Items',
'fields' => [
[
'id' => 'name',
'headerColumn' => 'Item Name'
],
[
'id' => 'qty',
'headerColumn' => 'Quantity'
],
[
'id' => 'unitPrice',
'headerColumn' => 'Price'
]
]
]
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://apiweb.mile.app/api/v3/import-config"
payload := strings.NewReader("{\n \"name\": \"Delivery Order Import - Flow A\",\n \"description\": \"Column mapping preset for daily delivery order import\",\n \"collection\": \"task\",\n \"referenceType\": \"flow\",\n \"referenceId\": \"66a988d53ae08a7ab52867c2\",\n \"fields\": [\n {\n \"id\": \"orderNumber\",\n \"headerColumn\": \"Order No\"\n },\n {\n \"id\": \"customerName\",\n \"headerColumn\": \"Customer\"\n },\n {\n \"id\": \"billItem\",\n \"sheet\": \"Bill Items\",\n \"fields\": [\n {\n \"id\": \"name\",\n \"headerColumn\": \"Item Name\"\n },\n {\n \"id\": \"qty\",\n \"headerColumn\": \"Quantity\"\n },\n {\n \"id\": \"unitPrice\",\n \"headerColumn\": \"Price\"\n }\n ]\n }\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://apiweb.mile.app/api/v3/import-config")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"Delivery Order Import - Flow A\",\n \"description\": \"Column mapping preset for daily delivery order import\",\n \"collection\": \"task\",\n \"referenceType\": \"flow\",\n \"referenceId\": \"66a988d53ae08a7ab52867c2\",\n \"fields\": [\n {\n \"id\": \"orderNumber\",\n \"headerColumn\": \"Order No\"\n },\n {\n \"id\": \"customerName\",\n \"headerColumn\": \"Customer\"\n },\n {\n \"id\": \"billItem\",\n \"sheet\": \"Bill Items\",\n \"fields\": [\n {\n \"id\": \"name\",\n \"headerColumn\": \"Item Name\"\n },\n {\n \"id\": \"qty\",\n \"headerColumn\": \"Quantity\"\n },\n {\n \"id\": \"unitPrice\",\n \"headerColumn\": \"Price\"\n }\n ]\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://apiweb.mile.app/api/v3/import-config")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"name\": \"Delivery Order Import - Flow A\",\n \"description\": \"Column mapping preset for daily delivery order import\",\n \"collection\": \"task\",\n \"referenceType\": \"flow\",\n \"referenceId\": \"66a988d53ae08a7ab52867c2\",\n \"fields\": [\n {\n \"id\": \"orderNumber\",\n \"headerColumn\": \"Order No\"\n },\n {\n \"id\": \"customerName\",\n \"headerColumn\": \"Customer\"\n },\n {\n \"id\": \"billItem\",\n \"sheet\": \"Bill Items\",\n \"fields\": [\n {\n \"id\": \"name\",\n \"headerColumn\": \"Item Name\"\n },\n {\n \"id\": \"qty\",\n \"headerColumn\": \"Quantity\"\n },\n {\n \"id\": \"unitPrice\",\n \"headerColumn\": \"Price\"\n }\n ]\n }\n ]\n}"
response = http.request(request)
puts response.read_body{
"status": true,
"code": 201,
"message": "Import Config has been added successfully.",
"data": {
"name": "Delivery Order Import - Flow A",
"description": "Column mapping preset for daily delivery order import",
"collection": "task",
"referenceType": "flow",
"referenceId": "66a988d53ae08a7ab52867c2",
"fields": [
{
"id": "orderNumber",
"headerColumn": "Order No"
},
{
"id": "customerName",
"headerColumn": "Customer"
},
{
"id": "billItem",
"sheet": "Bill Items",
"fields": [
{
"id": "name",
"headerColumn": "Item Name"
},
{
"id": "qty",
"headerColumn": "Quantity"
},
{
"id": "unitPrice",
"headerColumn": "Price"
}
]
}
],
"organizationId": "66791b2bf001a712b77b3622",
"updatedTime": "2026-02-19T08:30:00.000000Z",
"createdTime": "2026-02-19T08:30:00.000000Z",
"_id": "67b5a1234567890abcdef001"
}
}{
"status": false,
"message": "Bad request - invalid parameters provided."
}{
"status": false,
"message": "Internal server error, please contact support@mile.app."
}Authorizations
Use a valid Bearer token to authenticate.
Body
application/json
The name of the import config. Maximum 200 characters.
Example: Delivery Order Import - Flow A
The collection type for the import.
Example: task
The type of reference for this config.
Example: flow
The ID of the referenced resource (e.g., flow ID). Use Flow /flows API to get the list of flow IDs.
Example: 66a988d53ae08a7ab52867c2
Array of field mapping objects. Each object maps a flow field to an Excel header column. For complex components (bill, list, subpage), include sheet and nested fields.
Show child attributes
Show child attributes
⌘I