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
| Parameter | Type | Required | Description |
|---|---|---|---|
startDate | string | ✅ | Start date of the range (YYYY-MM-DD) |
endDate | string | ✅ | End date of the range (YYYY-MM-DD) |
Request Headers
| Header | Value | Description |
|---|---|---|
Authorization | Bearer <token> | Authentication token |
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.