curl --request POST \
--url https://www.closient.com/byos/api/log/ \
--header 'Access-Token: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"log": {
"battery_voltage": 3.41,
"level": "warn",
"message": "Low battery — 3.41V",
"uptime_seconds": 86400
}
}
'import requests
url = "https://www.closient.com/byos/api/log/"
payload = { "log": {
"battery_voltage": 3.41,
"level": "warn",
"message": "Low battery — 3.41V",
"uptime_seconds": 86400
} }
headers = {
"Access-Token": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Access-Token': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
log: {
battery_voltage: 3.41,
level: 'warn',
message: 'Low battery — 3.41V',
uptime_seconds: 86400
}
})
};
fetch('https://www.closient.com/byos/api/log/', 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://www.closient.com/byos/api/log/",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'log' => [
'battery_voltage' => 3.41,
'level' => 'warn',
'message' => 'Low battery — 3.41V',
'uptime_seconds' => 86400
]
]),
CURLOPT_HTTPHEADER => [
"Access-Token: <api-key>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://www.closient.com/byos/api/log/"
payload := strings.NewReader("{\n \"log\": {\n \"battery_voltage\": 3.41,\n \"level\": \"warn\",\n \"message\": \"Low battery — 3.41V\",\n \"uptime_seconds\": 86400\n }\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Access-Token", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://www.closient.com/byos/api/log/")
.header("Access-Token", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"log\": {\n \"battery_voltage\": 3.41,\n \"level\": \"warn\",\n \"message\": \"Low battery — 3.41V\",\n \"uptime_seconds\": 86400\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://www.closient.com/byos/api/log/")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Access-Token"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"log\": {\n \"battery_voltage\": 3.41,\n \"level\": \"warn\",\n \"message\": \"Low battery — 3.41V\",\n \"uptime_seconds\": 86400\n }\n}"
response = http.request(request)
puts response.read_body{
"status": 200
}{
"type": "https://closient.com/docs/errors/not_found",
"title": "Not Found",
"status": 404,
"detail": "The requested resource was not found.",
"error_code": "not_found",
"retryable": false,
"timestamp": "2026-03-31T12:00:00+00:00"
}{}{
"type": "https://closient.com/docs/errors/not_found",
"title": "Not Found",
"status": 404,
"detail": "The requested resource was not found.",
"error_code": "not_found",
"retryable": false,
"timestamp": "2026-03-31T12:00:00+00:00"
}{
"type": "https://closient.com/docs/errors/not_found",
"title": "Not Found",
"status": 404,
"detail": "The requested resource was not found.",
"error_code": "not_found",
"retryable": false,
"timestamp": "2026-03-31T12:00:00+00:00"
}{
"type": "https://closient.com/docs/errors/not_found",
"title": "Not Found",
"status": 404,
"detail": "The requested resource was not found.",
"error_code": "not_found",
"retryable": false,
"timestamp": "2026-03-31T12:00:00+00:00"
}{
"type": "https://closient.com/docs/errors/not_found",
"title": "Not Found",
"status": 404,
"detail": "The requested resource was not found.",
"error_code": "not_found",
"retryable": false,
"timestamp": "2026-03-31T12:00:00+00:00"
}{
"type": "https://closient.com/docs/errors/not_found",
"title": "Not Found",
"status": 404,
"detail": "The requested resource was not found.",
"error_code": "not_found",
"retryable": false,
"timestamp": "2026-03-31T12:00:00+00:00"
}TRMNL device log
Accept a diagnostic log payload from a TRMNL device. Firmware posts these on error or warning conditions (low battery, image decode failures, etc.) — Closient persists the payload verbatim because TRMNL’s schema is informally specified and may evolve. The staff admin surface renders the JSON for operator triage.
Auth: Access-Token header.
200— payload accepted.401— missing, unknown, or disabledAccess-Token.
curl --request POST \
--url https://www.closient.com/byos/api/log/ \
--header 'Access-Token: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"log": {
"battery_voltage": 3.41,
"level": "warn",
"message": "Low battery — 3.41V",
"uptime_seconds": 86400
}
}
'import requests
url = "https://www.closient.com/byos/api/log/"
payload = { "log": {
"battery_voltage": 3.41,
"level": "warn",
"message": "Low battery — 3.41V",
"uptime_seconds": 86400
} }
headers = {
"Access-Token": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Access-Token': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
log: {
battery_voltage: 3.41,
level: 'warn',
message: 'Low battery — 3.41V',
uptime_seconds: 86400
}
})
};
fetch('https://www.closient.com/byos/api/log/', 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://www.closient.com/byos/api/log/",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'log' => [
'battery_voltage' => 3.41,
'level' => 'warn',
'message' => 'Low battery — 3.41V',
'uptime_seconds' => 86400
]
]),
CURLOPT_HTTPHEADER => [
"Access-Token: <api-key>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://www.closient.com/byos/api/log/"
payload := strings.NewReader("{\n \"log\": {\n \"battery_voltage\": 3.41,\n \"level\": \"warn\",\n \"message\": \"Low battery — 3.41V\",\n \"uptime_seconds\": 86400\n }\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Access-Token", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://www.closient.com/byos/api/log/")
.header("Access-Token", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"log\": {\n \"battery_voltage\": 3.41,\n \"level\": \"warn\",\n \"message\": \"Low battery — 3.41V\",\n \"uptime_seconds\": 86400\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://www.closient.com/byos/api/log/")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Access-Token"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"log\": {\n \"battery_voltage\": 3.41,\n \"level\": \"warn\",\n \"message\": \"Low battery — 3.41V\",\n \"uptime_seconds\": 86400\n }\n}"
response = http.request(request)
puts response.read_body{
"status": 200
}{
"type": "https://closient.com/docs/errors/not_found",
"title": "Not Found",
"status": 404,
"detail": "The requested resource was not found.",
"error_code": "not_found",
"retryable": false,
"timestamp": "2026-03-31T12:00:00+00:00"
}{}{
"type": "https://closient.com/docs/errors/not_found",
"title": "Not Found",
"status": 404,
"detail": "The requested resource was not found.",
"error_code": "not_found",
"retryable": false,
"timestamp": "2026-03-31T12:00:00+00:00"
}{
"type": "https://closient.com/docs/errors/not_found",
"title": "Not Found",
"status": 404,
"detail": "The requested resource was not found.",
"error_code": "not_found",
"retryable": false,
"timestamp": "2026-03-31T12:00:00+00:00"
}{
"type": "https://closient.com/docs/errors/not_found",
"title": "Not Found",
"status": 404,
"detail": "The requested resource was not found.",
"error_code": "not_found",
"retryable": false,
"timestamp": "2026-03-31T12:00:00+00:00"
}{
"type": "https://closient.com/docs/errors/not_found",
"title": "Not Found",
"status": 404,
"detail": "The requested resource was not found.",
"error_code": "not_found",
"retryable": false,
"timestamp": "2026-03-31T12:00:00+00:00"
}{
"type": "https://closient.com/docs/errors/not_found",
"title": "Not Found",
"status": 404,
"detail": "The requested resource was not found.",
"error_code": "not_found",
"retryable": false,
"timestamp": "2026-03-31T12:00:00+00:00"
}Authorizations
Body
Payload for POST /api/log/.
TRMNL firmware posts {log: {...}}. The log body's schema is
owned by TRMNL and is not formally specified — Closient persists it
verbatim for diagnosis.
Free-form JSON object posted by TRMNL firmware. Persisted verbatim — schema is owned by firmware.
Response
OK
Empty-ish ACK returned from POST /api/log/.
Always 200 on accept. Non-2xx is reserved for malformed payloads (rejected upstream by Pydantic).