Count device uploads (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
POST /admin/report/device-uploads

Counts devices with a completed backup that shared conversations, created between startDate and endDate (both optional, whole days), split into Android, iOS and other, plus the organizations whose cases hold them with their email, device count and plan type. Returns { isSuccess, message } instead when no backup matches. Super admin only.

application/json

Body Required

  • startDate string
  • endDate string

Responses

  • 200 application/json
    Hide response attributes Show response attributes object
    • data object Required
      Hide data attributes Show data attributes object
      • totalBackups number
      • android number
      • ios number
      • others number
      • organizations array[object]
        Hide organizations attributes Show organizations attributes object
        • organization string
        • email string
        • deviceCount number
        • plan string
    • statusCode number Required
    • timestamp string(date-time) Required
POST /admin/report/device-uploads
curl \
 --request POST 'http://api.example.com/admin/report/device-uploads' \
 --header "Authorization: Bearer $ACCESS_TOKEN" \
 --header "Content-Type: application/json" \
 --data '{
  "startDate": "string",
  "endDate": "string"
}'
Request examples
{
  "startDate": "string",
  "endDate": "string"
}
Response examples (200)
{
  "data": {
    "totalBackups": 12,
    "android": 5,
    "ios": 6,
    "others": 1,
    "organizations": [
      {
        "organization": "Example Firm",
        "email": "admin@example.com",
        "deviceCount": 3,
        "plan": "tier6"
      }
    ]
  },
  "statusCode": 200,
  "timestamp": "2026-01-15T10:15:00.000Z"
}