Get processing performance statistics
curl --request GET \
--url http://localhost:8000/v1/stats/processing \
--header 'Authorization: Bearer <token>'import requests
url = "http://localhost:8000/v1/stats/processing"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('http://localhost:8000/v1/stats/processing', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_PORT => "8000",
CURLOPT_URL => "http://localhost:8000/v1/stats/processing",
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 := "http://localhost:8000/v1/stats/processing"
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("http://localhost:8000/v1/stats/processing")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("http://localhost:8000/v1/stats/processing")
http = Net::HTTP.new(url.host, url.port)
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"error_rate": 0.033,
"latency": {
"avg_seconds": 11.8,
"p50_seconds": 8.2,
"p95_seconds": 28.7,
"p99_seconds": 45.3
},
"period": {
"end": "2025-12-07",
"start": "2025-12-01"
},
"throughput": {
"documents_per_day": 45.2,
"pages_per_day": 1823.5
},
"top_errors": [
{
"count": 3,
"message": "Document AI timeout"
},
{
"count": 2,
"message": "Invalid PDF format"
}
]
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}stats
Get processing performance statistics
Get processing performance statistics.
Returns processing throughput, latency percentiles, error rates, and top errors. Useful for operations monitoring and performance dashboards.
GET
/
v1
/
stats
/
processing
Get processing performance statistics
curl --request GET \
--url http://localhost:8000/v1/stats/processing \
--header 'Authorization: Bearer <token>'import requests
url = "http://localhost:8000/v1/stats/processing"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('http://localhost:8000/v1/stats/processing', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_PORT => "8000",
CURLOPT_URL => "http://localhost:8000/v1/stats/processing",
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 := "http://localhost:8000/v1/stats/processing"
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("http://localhost:8000/v1/stats/processing")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("http://localhost:8000/v1/stats/processing")
http = Net::HTTP.new(url.host, url.port)
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"error_rate": 0.033,
"latency": {
"avg_seconds": 11.8,
"p50_seconds": 8.2,
"p95_seconds": 28.7,
"p99_seconds": 45.3
},
"period": {
"end": "2025-12-07",
"start": "2025-12-01"
},
"throughput": {
"documents_per_day": 45.2,
"pages_per_day": 1823.5
},
"top_errors": [
{
"count": 3,
"message": "Document AI timeout"
},
{
"count": 2,
"message": "Invalid PDF format"
}
]
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Authorizations
API Key authentication. Format: dk_test_ or dk_live_
Query Parameters
Start date (ISO 8601, default: 30 days ago)
End date (ISO 8601, default: today)
Response
Processing throughput, latency, and error metrics
Response for processing stats (GET /v1/stats/processing).
Processing performance metrics for operations monitoring.
Time period covered
Show child attributes
Show child attributes
Example:
{
"end": "2025-12-07",
"start": "2025-11-07"
}
Documents and pages processed per day
Show child attributes
Show child attributes
Example:
{
"documents_per_day": 45.2,
"pages_per_day": 1823.5
}
Processing time percentiles
Show child attributes
Show child attributes
Example:
{
"avg_seconds": 11.8,
"p50_seconds": 8.2,
"p95_seconds": 28.7,
"p99_seconds": 45.3
}
Most common error messages
Show child attributes
Show child attributes
Ratio of failed to total jobs (0.0-1.0)