curl --request GET \
--url https://apiweb.mile.app/api/v4/users \
--header 'Authorization: Bearer <token>'import requests
url = "https://apiweb.mile.app/api/v4/users"
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/users', 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/users",
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/users"
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/users")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://apiweb.mile.app/api/v4/users")
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,
"data": [
{
"_id": "68db98a7094228379a0d74d6",
"email": "rina@example.com",
"name": "Rina Wijaya",
"organizationId": "65c1f4eeca7c4816d94587b2",
"roleId": "68db98a7094228379a0d74d4",
"status": "active",
"language": "en",
"hubId": [
"65c1f68ea735b522d370ea25"
],
"teamId": [],
"phoneNumber": "+6281234567890",
"lastLogin": "2026-11-18 09:12:40",
"cloudAuthenticatorEnabled": false,
"firstLogin": false,
"role": {
"_id": "68db98a7094228379a0d74d4",
"name": "Driver"
},
"extendedData": [
{
"_id": "6abd01c2143a6b09ec0bf700",
"dataTypeId": "6abd0190a138a6318d023f10",
"entityId": "68db98a7094228379a0d74d6",
"dataId": "user:68db98a7094228379a0d74d6",
"hubId": "65c1f68ea735b522d370ea25",
"licenseNumber": "SIM-B1-3201",
"organizationId": "65c1f4eeca7c4816d94587b2",
"createdTime": "2026-10-02 03:15:00",
"updatedTime": "2026-10-02 03:15:00"
}
]
}
],
"dataVersion": "1795063027"
}{
"status": false,
"message": "Bad request - invalid parameters provided."
}{
"status": false,
"message": "Internal server error, please contact support@mile.app."
}Read users
Returns the users of your organization, oldest first. There is no paging; use limit to cap the count.
Unless the caller is an owner or has no team, only users in the caller’s teams and users with no team are returned (scopeTeam).
When no user matches, the response is 200 with status false, an empty data and failedCode user-040.
Same as GET /api/v3/users, plus the include parameter.
Requires permission view/user.
curl --request GET \
--url https://apiweb.mile.app/api/v4/users \
--header 'Authorization: Bearer <token>'import requests
url = "https://apiweb.mile.app/api/v4/users"
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/users', 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/users",
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/users"
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/users")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://apiweb.mile.app/api/v4/users")
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,
"data": [
{
"_id": "68db98a7094228379a0d74d6",
"email": "rina@example.com",
"name": "Rina Wijaya",
"organizationId": "65c1f4eeca7c4816d94587b2",
"roleId": "68db98a7094228379a0d74d4",
"status": "active",
"language": "en",
"hubId": [
"65c1f68ea735b522d370ea25"
],
"teamId": [],
"phoneNumber": "+6281234567890",
"lastLogin": "2026-11-18 09:12:40",
"cloudAuthenticatorEnabled": false,
"firstLogin": false,
"role": {
"_id": "68db98a7094228379a0d74d4",
"name": "Driver"
},
"extendedData": [
{
"_id": "6abd01c2143a6b09ec0bf700",
"dataTypeId": "6abd0190a138a6318d023f10",
"entityId": "68db98a7094228379a0d74d6",
"dataId": "user:68db98a7094228379a0d74d6",
"hubId": "65c1f68ea735b522d370ea25",
"licenseNumber": "SIM-B1-3201",
"organizationId": "65c1f4eeca7c4816d94587b2",
"createdTime": "2026-10-02 03:15:00",
"updatedTime": "2026-10-02 03:15:00"
}
]
}
],
"dataVersion": "1795063027"
}{
"status": false,
"message": "Bad request - invalid parameters provided."
}{
"status": false,
"message": "Internal server error, please contact support@mile.app."
}Query Parameters
Pass extendedData to add each user's extendedData: the record of your organization's user extension data type (the custom fields added under Extended data). Off by default, and only the exact value extendedData turns it on.
When your organization has no user extension, the field is left out. When it has one but this user has no record yet, the field is null.
When the extension is kept per hub, extendedData is an array with one record per hub. Add hubId to get only that hub's record as an object, or null when it has none.
Example: extendedData
extendedData Response
Success
The response is of type object.