curl --request POST \
--url https://www.closient.com/byos/api/log/ \
--header 'Access-Token: <api-key>' \
--header 'Content-Type: application/json' \
--data '{
"log": {}
}'import requests
url = "https://www.closient.com/byos/api/log/"
payload = { "log": {} }
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: {}})
};
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' => [
]
]),
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}")
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}")
.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}"
response = http.request(request)
puts response.read_body{
"status": 200
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"detail": "<string>",
"error_code": "<string>",
"retryable": true,
"timestamp": "2023-11-07T05:31:56Z"
}{}{
"type": "<string>",
"title": "<string>",
"status": 123,
"detail": "<string>",
"error_code": "<string>",
"retryable": true,
"timestamp": "2023-11-07T05:31:56Z"
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"detail": "<string>",
"error_code": "<string>",
"retryable": true,
"timestamp": "2023-11-07T05:31:56Z"
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"detail": "<string>",
"error_code": "<string>",
"retryable": true,
"timestamp": "2023-11-07T05:31:56Z"
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"detail": "<string>",
"error_code": "<string>",
"retryable": true,
"timestamp": "2023-11-07T05:31:56Z"
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"detail": "<string>",
"error_code": "<string>",
"retryable": true,
"timestamp": "2023-11-07T05:31:56Z"
}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": {}
}'import requests
url = "https://www.closient.com/byos/api/log/"
payload = { "log": {} }
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: {}})
};
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' => [
]
]),
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}")
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}")
.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}"
response = http.request(request)
puts response.read_body{
"status": 200
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"detail": "<string>",
"error_code": "<string>",
"retryable": true,
"timestamp": "2023-11-07T05:31:56Z"
}{}{
"type": "<string>",
"title": "<string>",
"status": 123,
"detail": "<string>",
"error_code": "<string>",
"retryable": true,
"timestamp": "2023-11-07T05:31:56Z"
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"detail": "<string>",
"error_code": "<string>",
"retryable": true,
"timestamp": "2023-11-07T05:31:56Z"
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"detail": "<string>",
"error_code": "<string>",
"retryable": true,
"timestamp": "2023-11-07T05:31:56Z"
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"detail": "<string>",
"error_code": "<string>",
"retryable": true,
"timestamp": "2023-11-07T05:31:56Z"
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"detail": "<string>",
"error_code": "<string>",
"retryable": true,
"timestamp": "2023-11-07T05:31:56Z"
}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).