Skip to main content

Top Categories

Retrieve aggregated data showing the most frequently occurring incident categories within a given date range.

Endpoint

GET /hubspot/stats/top-categories/:startDate/:endDate

URL Parameters

Request Headers

Note: This endpoint does not accept a request body.

Response

Success Response (HTTP 200)

  • categories: List of categories ranked or aggregated for the date range.

Error Response (HTTP 400–500)

Any non-200 status code indicates an error.

Authentication

Provide a valid token using the Authorization header.

Example Request (cURL)

Example Request (JavaScript - fetch)

Notes

  • Dates must follow YYYY-MM-DD format.
  • The endpoint returns an empty array when no categories are found.