Skip to main content
GET
/
analytics
/
failures
Failure analysis and trends
curl --request GET \
  --url https://api.autoprintfarm.com/public/v1/analytics/failures \
  --header 'Authorization: Bearer <token>'
{
  "success": true,
  "data": {
    "date_range": {
      "from": "<string>",
      "to": "<string>"
    },
    "summary": {
      "total_failures": 123,
      "resolved": 123,
      "unresolved": 123,
      "resolution_rate": 123
    },
    "by_type": [
      {
        "failure_type": "<string>",
        "count": 123
      }
    ],
    "by_printer": [
      {
        "printer_id": "<string>",
        "printer_name": "<string>",
        "count": 123
      }
    ],
    "daily_trend": [
      {
        "date": "<string>",
        "count": 123
      }
    ],
    "recent": [
      {
        "id": "<string>",
        "printer_id": "<string>",
        "printer_name": "<string>",
        "file_name": "<string>",
        "failure_type": "<string>",
        "failure_reason": "<string>",
        "error_code": "<string>",
        "progress_at_failure": 123,
        "layer_at_failure": 123,
        "resolved_at": "<string>",
        "created_at": "<string>"
      }
    ]
  }
}

Authorizations

Authorization
string
header
required

API keys are minted in the AutoPrintFarm web app under Settings → API Keys. Send as Authorization: Bearer apf_live_.... Keys are shown exactly once at creation and can be revoked at any time.

Query Parameters

from
string

Start of the reporting window (ISO date, e.g. 2026-01-01). Defaults to 30 days ago.

to
string

End of the reporting window (ISO date). Defaults to today.

printer_id
string

Filter by printer ID

Response

Failure analysis report

success
enum<boolean>
required
Available options:
true
data
object
required