Compliments Count
Returns aggregated count of compliments out of total feedbacks within a given date range.Endpoint
GET /hubspot/stats/compliments-count/:startDate/:endDate
URL Parameters
Request Headers
Note: This endpoint does not accept a request body.
Response
Success Response (HTTP 200)
total: Total number of tickets in the given date rangecompliments: Number of compliment-type ticketspercentage: Compliments expressed as a percentage of total tickets
Error Response (HTTP 400–500)
Any non-200 status code indicates an error.
Authentication
Provide a valid token using theAuthorization header.
Example Request (cURL)
Example Request (JavaScript - fetch)
Notes
- Dates must be provided in
YYYY-MM-DDformat. - Percentages are computed based on the compliment count relative to the total tickets.