Get stats for one error code (internal)

Add MCP server to your AI tool

Allow AI tools and LLMs to interact with the API documentation portal through MCP.

MCP server URL

https://docs.usehearsay.com/mcp

Standard setup for AI tools providing an mcp.json file

mcp.json
{
  "integrations MCP server": {
    "url": "https://docs.usehearsay.com/mcp"
  }
}

Close
GET /admin/collection-ops/errors/{errorCode}/stats

For one error code over the last days (default 30, at most 365): its catalog entry, how many times it fired, how many extraction codes it affected and how many of those later completed. Returns 400 for a malformed code. Super admin only; 404 while the collection-ops console is turned off.

Path parameters

  • errorCode string Required

    Raw error code, e.g. DEVICE_UNPLUGGED

Query parameters

  • days number

    Minimum value is 1, maximum value is 365. Default value is 30.

Responses

  • 200 application/json
    Hide response attributes Show response attributes object
    • data object Required
      Hide data attributes Show data attributes object
      • errorCode string
      • days number
      • error object
        Hide error attributes Show error attributes object
        • title string
        • explanation string
        • category string

          Values are connection, disk, permission, device, encryption, server, or unknown.

        • severity string

          Values are info, warning, or error.

      • hits number
      • codesAffected number
      • laterCompleted number
      • neverCompleted number
    • statusCode number Required
    • timestamp string(date-time) Required
GET /admin/collection-ops/errors/{errorCode}/stats
curl \
 --request GET 'http://api.example.com/admin/collection-ops/errors/{errorCode}/stats' \
 --header "Authorization: Bearer $ACCESS_TOKEN"
Response examples (200)
{
  "data": {
    "errorCode": "DEVICE_UNPLUGGED",
    "days": 30,
    "error": {
      "title": "Device unplugged",
      "explanation": "string",
      "category": "connection",
      "severity": "info"
    },
    "hits": 17,
    "codesAffected": 9,
    "laterCompleted": 6,
    "neverCompleted": 3
  },
  "statusCode": 200,
  "timestamp": "2026-01-15T10:15:00.000Z"
}