Skip to main content
GET
/
v1
/
stats
/
processing
Get processing performance statistics
curl --request GET \
  --url http://localhost:8000/v1/stats/processing \
  --header 'Authorization: Bearer <token>'
{
  "period": {
    "start": "<string>",
    "end": "<string>"
  },
  "throughput": {
    "documents_per_day": 123,
    "pages_per_day": 123
  },
  "latency": {
    "avg_seconds": 123,
    "p50_seconds": 123,
    "p95_seconds": 123,
    "p99_seconds": 123
  },
  "top_errors": [
    {
      "message": "<string>",
      "count": 123
    }
  ],
  "error_rate": 123
}

Authorizations

Authorization
string
header
required

API Key authentication. Format: dk_test_ or dk_live_

Query Parameters

start_date
string<date> | null

Start date (ISO 8601, default: 30 days ago)

end_date
string<date> | null

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.

period
StatsPeriod · object
required

Time period covered

Example:
{
"end": "2025-12-07",
"start": "2025-11-07"
}
throughput
ProcessingThroughput · object
required

Documents and pages processed per day

Example:
{
"documents_per_day": 45.2,
"pages_per_day": 1823.5
}
latency
ProcessingLatency · object
required

Processing time percentiles

Example:
{
"avg_seconds": 11.8,
"p50_seconds": 8.2,
"p95_seconds": 28.7,
"p99_seconds": 45.3
}
top_errors
TopError · object[]
required

Most common error messages

error_rate
number | null

Ratio of failed to total jobs (0.0-1.0)