Read briefs
curl --request GET \
--url https://apiweb.mile.app/api/v4/briefs \
--header 'Authorization: Bearer <token>'import requests
url = "https://apiweb.mile.app/api/v4/briefs"
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/briefs', 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/briefs",
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/briefs"
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/briefs")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://apiweb.mile.app/api/v4/briefs")
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": "6738a1f2c4e9b10012ab34cd",
"name": "SOP Servis Berkala 10.000 km",
"type": "string",
"sourceType": "upload",
"url": "https://storage.example.com/production/5f1a2b3c4d5e6f7081920a1b/brief/2026/11/16/1763270400_sop-servis-berkala.pdf",
"fileName": "sop-servis-berkala.pdf",
"fileSize": 2483112,
"roleIds": [
"64b0c1d2e3f4a5b6c7d8e9f0",
"64b0c1d2e3f4a5b6c7d8e9f1"
],
"roles": [
{
"_id": "64b0c1d2e3f4a5b6c7d8e9f0",
"name": "Mekanik"
},
{
"_id": "64b0c1d2e3f4a5b6c7d8e9f1",
"name": "Service Advisor"
}
],
"createdBy": "admin@artaboga.example",
"updatedBy": "admin@artaboga.example",
"createdTime": "2026-11-16T03:20:00.000000Z",
"updatedTime": "2026-11-16T03:20:00.000000Z"
},
{
"_id": "6738a20bc4e9b10012ab34ce",
"name": "Panduan Oli Mesin 2026",
"type": "string",
"sourceType": "link",
"url": "https://docs.example.com/oli-mesin-2026.pdf",
"fileName": null,
"fileSize": null,
"roleIds": [],
"roles": [],
"createdBy": "admin@artaboga.example",
"updatedBy": "admin@artaboga.example",
"createdTime": "2026-11-15T08:02:11.000000Z",
"updatedTime": "2026-11-15T08:02:11.000000Z"
}
],
"first_page_url": "https://apiweb.mile.app/api/v4/briefs?page=1",
"from": 1,
"last_page": 1,
"last_page_url": "https://apiweb.mile.app/api/v4/briefs?page=1",
"next_page_url": null,
"path": "https://apiweb.mile.app/api/v4/briefs",
"per_page": 20,
"prev_page_url": null,
"to": 2,
"total": 2
}
}{
"status": false,
"message": "The limit field must not be greater than 100.",
"data": null,
"failedCode": "brief-009"
}{
"status": false,
"message": "Internal server error, please contact support@mile.app."
}Brief
Read briefs
Returns the briefs of your organization, newest update first. Used by the web Brief page and by the mobile app.
No permission is needed to call it; the list is filtered for the caller: The owner role sees every brief. Every other role, admins included and whatever Brief permissions it has, sees the briefs shared with their own role plus the briefs shared with every role (empty roleIds).
GET
/
briefs
Read briefs
curl --request GET \
--url https://apiweb.mile.app/api/v4/briefs \
--header 'Authorization: Bearer <token>'import requests
url = "https://apiweb.mile.app/api/v4/briefs"
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/briefs', 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/briefs",
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/briefs"
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/briefs")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://apiweb.mile.app/api/v4/briefs")
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": "6738a1f2c4e9b10012ab34cd",
"name": "SOP Servis Berkala 10.000 km",
"type": "string",
"sourceType": "upload",
"url": "https://storage.example.com/production/5f1a2b3c4d5e6f7081920a1b/brief/2026/11/16/1763270400_sop-servis-berkala.pdf",
"fileName": "sop-servis-berkala.pdf",
"fileSize": 2483112,
"roleIds": [
"64b0c1d2e3f4a5b6c7d8e9f0",
"64b0c1d2e3f4a5b6c7d8e9f1"
],
"roles": [
{
"_id": "64b0c1d2e3f4a5b6c7d8e9f0",
"name": "Mekanik"
},
{
"_id": "64b0c1d2e3f4a5b6c7d8e9f1",
"name": "Service Advisor"
}
],
"createdBy": "admin@artaboga.example",
"updatedBy": "admin@artaboga.example",
"createdTime": "2026-11-16T03:20:00.000000Z",
"updatedTime": "2026-11-16T03:20:00.000000Z"
},
{
"_id": "6738a20bc4e9b10012ab34ce",
"name": "Panduan Oli Mesin 2026",
"type": "string",
"sourceType": "link",
"url": "https://docs.example.com/oli-mesin-2026.pdf",
"fileName": null,
"fileSize": null,
"roleIds": [],
"roles": [],
"createdBy": "admin@artaboga.example",
"updatedBy": "admin@artaboga.example",
"createdTime": "2026-11-15T08:02:11.000000Z",
"updatedTime": "2026-11-15T08:02:11.000000Z"
}
],
"first_page_url": "https://apiweb.mile.app/api/v4/briefs?page=1",
"from": 1,
"last_page": 1,
"last_page_url": "https://apiweb.mile.app/api/v4/briefs?page=1",
"next_page_url": null,
"path": "https://apiweb.mile.app/api/v4/briefs",
"per_page": 20,
"prev_page_url": null,
"to": 2,
"total": 2
}
}{
"status": false,
"message": "The limit field must not be greater than 100.",
"data": null,
"failedCode": "brief-009"
}{
"status": false,
"message": "Internal server error, please contact support@mile.app."
}