curl --request GET \
--url https://api.example.com/diagnosticsimport requests
url = "https://api.example.com/diagnostics"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.example.com/diagnostics', 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://api.example.com/diagnostics",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$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://api.example.com/diagnostics"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.example.com/diagnostics")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/diagnostics")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"ctx": {},
"input": "<unknown>"
}
]
}Anonymized diagnostics or usage records
Returns selected anonymized diagnostics categories.
Reuses :func:bioptimus.observability.probes.snapshot to capture
versions, host, GPU, dependencies, disk, and loaded-model state for the
models currently held by this worker, and :func:read_recent_logs to
read the tail of the server’s log file. Both are anonymized so the
response is safe to attach to a support request. The snapshot is
fail-safe: a failing probe degrades to an error section rather than
failing the request. Logs are empty when no log file is configured.
When the optional categories query parameter is omitted, the
response keeps the historical full-diagnostics shape. When provided,
usage returns only model-request usage log entries and
diagnostics returns the full diagnostics payload under a
diagnostics key.
Security: this endpoint is unauthenticated and returns the server’s environment and recent activity, so it must sit behind the same VPN or network protection as the rest of the deployment rather than being exposed publicly.
curl --request GET \
--url https://api.example.com/diagnosticsimport requests
url = "https://api.example.com/diagnostics"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.example.com/diagnostics', 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://api.example.com/diagnostics",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$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://api.example.com/diagnostics"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.example.com/diagnostics")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/diagnostics")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"ctx": {},
"input": "<unknown>"
}
]
}Query Parameters
Optional data categories to share. Use 'usage' for model-request usage records only, or 'diagnostics' for the full diagnostics payload.
Response
Successful Response

