/applications/totals - Get application statistics

GET /applications/totals

Get statistics about applications including counts by type and status

Responses

  • 200 application/json

    Application totals retrieved successfully

    Hide response attributes Show response attributes object
    • code integer
    • message string
    • data object

      Application statistics

      Hide data attributes Show data attributes object
      • total integer

        Total number of applications

      • unassigned integer

        Number of unassigned applications

      • assigned integer

        Number of assigned applications

      • with_errors integer

        Number of applications with service errors

      • by_type object

        Count by application type

        Hide by_type attribute Show by_type attribute object
        • * integer Additional properties
      • by_status object

        Count by status

        Hide by_status attribute Show by_status attribute object
        • * integer Additional properties
  • 401 application/json

    Unauthorized - invalid or missing token

    Hide response attributes Show response attributes object
    • code integer
    • message string
    • data object | null
  • 403 application/json

    Forbidden - insufficient permissions

    Hide response attributes Show response attributes object
    • code integer
    • message string
    • data object | null
GET /applications/totals
curl \
 --request GET 'https://api.your-domain.com/api/applications/totals' \
 --header "Authorization: Bearer $ACCESS_TOKEN"
Response examples (200)
{
  "code": 200,
  "message": "application totals retrieved successfully",
  "data": {
    "total": 150,
    "unassigned": 25,
    "assigned": 125,
    "with_errors": 5,
    "by_type": {
      "mail": 30,
      "webtop": 25,
      "nethvoice": 20,
      "nextcloud": 15
    },
    "by_status": {
      "assigned": 125,
      "unassigned": 25
    }
  }
}
Response examples (401)
{
  "code": 401,
  "message": "invalid token",
  "data": {}
}
Response examples (403)
{
  "code": 403,
  "message": "insufficient permissions",
  "data": {}
}