Skip to main content

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 range
  • compliments: Number of compliment-type tickets
  • percentage: 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 the Authorization header.

Example Request (cURL)

Example Request (JavaScript - fetch)

Notes

  • Dates must be provided in YYYY-MM-DD format.
  • Percentages are computed based on the compliment count relative to the total tickets.