Read log automation by ID
curl --request GET \
--url https://apiweb.mile.app/api/v3/automation-log/{logId} \
--header 'Authorization: Bearer <token>'import requests
url = "https://apiweb.mile.app/api/v3/automation-log/{logId}"
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/automation-log/{logId}', 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/automation-log/{logId}",
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/automation-log/{logId}"
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/automation-log/{logId}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://apiweb.mile.app/api/v3/automation-log/{logId}")
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": "elasticData",
"data": {
"automationId": "62f25ada1c0cd810800157c2",
"automationName": "Notify customer on finish",
"automationType": "webhook",
"automationEvent": "onTaskFinished",
"automationUrl": "https://hooks.example.com/mileapp",
"dataType": "task",
"referenceId": "62f25af61c0cd810800157c3",
"organizationId": "64d99303be0ad015c461c932",
"isSuccess": "true",
"statusCode": "200",
"attempt": "0",
"request": "{\"title\":\"Delivery to Bandung\"}",
"response": "{\"received\":true}",
"startRequestTime": "2026-10-15 07:34:31.6996",
"finishRequestTime": "2026-10-15 07:34:31",
"responseTime": "0.043",
"@timestamp": "2026-10-15T07:34:34.873Z"
},
"params": {
"query": {
"bool": {
"must": [
{
"term": {
"_id": "-DethoIBewA7zVXNTstW"
}
},
{
"term": {
"organizationId.keyword": "64d99303be0ad015c461c932"
}
}
]
}
}
}
}{
"status": false,
"message": "Bad request - invalid parameters provided."
}{
"status": false,
"message": "Internal server error, please contact [email protected]."
}Automation
Read log automation by ID
Returns one automation run log: what was sent, what came back, and whether it succeeded. Use the _id of an entry from GET /automation-log.
Requires permission view/automation.
GET
/
automation-log
/
{logId}
Read log automation by ID
curl --request GET \
--url https://apiweb.mile.app/api/v3/automation-log/{logId} \
--header 'Authorization: Bearer <token>'import requests
url = "https://apiweb.mile.app/api/v3/automation-log/{logId}"
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/automation-log/{logId}', 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/automation-log/{logId}",
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/automation-log/{logId}"
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/automation-log/{logId}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://apiweb.mile.app/api/v3/automation-log/{logId}")
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": "elasticData",
"data": {
"automationId": "62f25ada1c0cd810800157c2",
"automationName": "Notify customer on finish",
"automationType": "webhook",
"automationEvent": "onTaskFinished",
"automationUrl": "https://hooks.example.com/mileapp",
"dataType": "task",
"referenceId": "62f25af61c0cd810800157c3",
"organizationId": "64d99303be0ad015c461c932",
"isSuccess": "true",
"statusCode": "200",
"attempt": "0",
"request": "{\"title\":\"Delivery to Bandung\"}",
"response": "{\"received\":true}",
"startRequestTime": "2026-10-15 07:34:31.6996",
"finishRequestTime": "2026-10-15 07:34:31",
"responseTime": "0.043",
"@timestamp": "2026-10-15T07:34:34.873Z"
},
"params": {
"query": {
"bool": {
"must": [
{
"term": {
"_id": "-DethoIBewA7zVXNTstW"
}
},
{
"term": {
"organizationId.keyword": "64d99303be0ad015c461c932"
}
}
]
}
}
}
}{
"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.
Path Parameters
The log entry identifier (the _id of an entry in GET /automation-log).
Example: -DethoIBewA7zVXNTstW