Read reports
curl --request GET \
--url https://apiweb.mile.app/api/v3/reports \
--header 'Authorization: Bearer <token>'import requests
url = "https://apiweb.mile.app/api/v3/reports"
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/reports', 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/reports",
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/reports"
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/reports")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://apiweb.mile.app/api/v3/reports")
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,
"code": 200,
"message": "Success",
"data": {
"current_page": 1,
"data": [
{
"_id": "66f1a2b3c4d5e6f7a8b9c0d1",
"organizationId": "64d99303be0ad015c461c932",
"name": "Monthly delivery report",
"type": "string",
"flowId": "64e5b1c2d3e4f5a6b7c8d9e0",
"fields": [
"title",
"assignee",
"status",
"doneTime"
],
"hubIds": [
"64d9932e2beb9037735ff022"
],
"defaultFilters": {
"datePreset": "monthly",
"status": [
"DONE"
],
"assignee": []
},
"createdBy": "[email protected]",
"updatedBy": "[email protected]",
"updatedTime": "2026-10-01T03:15:20.000000Z",
"createdTime": "2026-10-01T03:15:20.000000Z"
},
{
"_id": "66f1a2b3c4d5e6f7a8b9c0d2",
"organizationId": "64d99303be0ad015c461c932",
"name": "Customer list",
"type": "string",
"dataTypeId": "64f0a1b2c3d4e5f6a7b8c9d0",
"fields": [
"name",
"phone",
"address"
],
"hubIds": [],
"createdBy": "[email protected]",
"updatedBy": "[email protected]",
"updatedTime": "2026-09-28T08:00:00.000000Z",
"createdTime": "2026-09-28T08:00:00.000000Z"
}
],
"first_page_url": "https://apiweb.mile.app/api/v3/reports?page=1",
"from": 1,
"last_page": 1,
"last_page_url": "https://apiweb.mile.app/api/v3/reports?page=1",
"links": [
{
"url": null,
"label": "« Previous",
"active": false
},
{
"url": "https://apiweb.mile.app/api/v3/reports?page=1",
"label": "1",
"active": true
},
{
"url": null,
"label": "Next »",
"active": false
}
],
"next_page_url": null,
"path": "https://apiweb.mile.app/api/v3/reports",
"per_page": 20,
"prev_page_url": null,
"to": 2,
"total": 2
}
}{
"status": false,
"message": "Bad request - invalid parameters provided."
}{
"status": false,
"message": "Internal server error, please contact [email protected]."
}Report
Read reports
Returns the saved report configurations of your organization, newest first, paginated. A report configuration stores which source, hubs and columns a report uses; it does not contain report rows.
Requires permission view/report.
GET
/
reports
Read reports
curl --request GET \
--url https://apiweb.mile.app/api/v3/reports \
--header 'Authorization: Bearer <token>'import requests
url = "https://apiweb.mile.app/api/v3/reports"
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/reports', 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/reports",
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/reports"
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/reports")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://apiweb.mile.app/api/v3/reports")
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,
"code": 200,
"message": "Success",
"data": {
"current_page": 1,
"data": [
{
"_id": "66f1a2b3c4d5e6f7a8b9c0d1",
"organizationId": "64d99303be0ad015c461c932",
"name": "Monthly delivery report",
"type": "string",
"flowId": "64e5b1c2d3e4f5a6b7c8d9e0",
"fields": [
"title",
"assignee",
"status",
"doneTime"
],
"hubIds": [
"64d9932e2beb9037735ff022"
],
"defaultFilters": {
"datePreset": "monthly",
"status": [
"DONE"
],
"assignee": []
},
"createdBy": "[email protected]",
"updatedBy": "[email protected]",
"updatedTime": "2026-10-01T03:15:20.000000Z",
"createdTime": "2026-10-01T03:15:20.000000Z"
},
{
"_id": "66f1a2b3c4d5e6f7a8b9c0d2",
"organizationId": "64d99303be0ad015c461c932",
"name": "Customer list",
"type": "string",
"dataTypeId": "64f0a1b2c3d4e5f6a7b8c9d0",
"fields": [
"name",
"phone",
"address"
],
"hubIds": [],
"createdBy": "[email protected]",
"updatedBy": "[email protected]",
"updatedTime": "2026-09-28T08:00:00.000000Z",
"createdTime": "2026-09-28T08:00:00.000000Z"
}
],
"first_page_url": "https://apiweb.mile.app/api/v3/reports?page=1",
"from": 1,
"last_page": 1,
"last_page_url": "https://apiweb.mile.app/api/v3/reports?page=1",
"links": [
{
"url": null,
"label": "« Previous",
"active": false
},
{
"url": "https://apiweb.mile.app/api/v3/reports?page=1",
"label": "1",
"active": true
},
{
"url": null,
"label": "Next »",
"active": false
}
],
"next_page_url": null,
"path": "https://apiweb.mile.app/api/v3/reports",
"per_page": 20,
"prev_page_url": null,
"to": 2,
"total": 2
}
}{
"status": false,
"message": "Bad request - invalid parameters provided."
}{
"status": false,
"message": "Internal server error, please contact [email protected]."
}Authorizations
Use a valid Bearer token to authenticate.
Query Parameters
Filters by report name (case-insensitive contains). Maximum 200 characters.
Example: delivery
Only reports created at or after this date/time.
Example: 2026-10-01
Only reports created at or before this date/time.
Example: 2026-10-31T23:59:59Z
Number of reports per page. Minimum 1, maximum 100. Default 20.
Example: 20
Required range:
1 <= x <= 100The page number of results to retrieve. Example: 2