Read custom module by ID
curl --request GET \
--url https://apiweb.mile.app/api/v4/custom-module/{id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://apiweb.mile.app/api/v4/custom-module/{id}"
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/v4/custom-module/{id}', 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/v4/custom-module/{id}",
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/v4/custom-module/{id}"
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/v4/custom-module/{id}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://apiweb.mile.app/api/v4/custom-module/{id}")
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": {
"_id": "698d8dc98114b58cb20686d2",
"name": "Route Planner",
"label": "route-Planner-65c1f4eeca7c4816d94587b2",
"type": "string",
"url": null,
"target": "_self",
"placement": "submenu",
"parentPath": "/planning",
"icon": "map",
"displayLabel": "Route Planner",
"path": "route-planner",
"pages": [
{
"path": "overview",
"label": "Overview"
},
{
"path": "history",
"label": "History"
}
],
"resourceFile": "route-planner.js",
"resourceUrl": "https://files.mile.app/plugins/route-planner.js",
"createdFrom": "WEB-V4",
"organizationId": "65c1f4eeca7c4816d94587b2",
"updatedTime": "2026-02-12T08:22:33.040000Z",
"createdTime": "2026-02-12T08:22:33.040000Z"
}
}{
"status": false,
"message": "Data not found"
}{
"status": false,
"message": "Internal server error, please contact [email protected]."
}Custom Module
Read custom module by ID
Returns one custom module of your organization.
An unknown id returns 404 with failedCode cmod-033.
Compared with v3, a v4 read also returns PLUGIN modules and add-ons installed from the v4 web app, and the v4 fields placement (menu or submenu), parentPath, icon, displayLabel, path and pages (the screens a plugin declares).
Requires permission view/customModule.
GET
/
custom-module
/
{id}
Read custom module by ID
curl --request GET \
--url https://apiweb.mile.app/api/v4/custom-module/{id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://apiweb.mile.app/api/v4/custom-module/{id}"
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/v4/custom-module/{id}', 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/v4/custom-module/{id}",
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/v4/custom-module/{id}"
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/v4/custom-module/{id}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://apiweb.mile.app/api/v4/custom-module/{id}")
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": {
"_id": "698d8dc98114b58cb20686d2",
"name": "Route Planner",
"label": "route-Planner-65c1f4eeca7c4816d94587b2",
"type": "string",
"url": null,
"target": "_self",
"placement": "submenu",
"parentPath": "/planning",
"icon": "map",
"displayLabel": "Route Planner",
"path": "route-planner",
"pages": [
{
"path": "overview",
"label": "Overview"
},
{
"path": "history",
"label": "History"
}
],
"resourceFile": "route-planner.js",
"resourceUrl": "https://files.mile.app/plugins/route-planner.js",
"createdFrom": "WEB-V4",
"organizationId": "65c1f4eeca7c4816d94587b2",
"updatedTime": "2026-02-12T08:22:33.040000Z",
"createdTime": "2026-02-12T08:22:33.040000Z"
}
}{
"status": false,
"message": "Data not found"
}{
"status": false,
"message": "Internal server error, please contact [email protected]."
}