Skip to main content

Top Affiliates Involved

Retrieve aggregated data showing which affiliates were involved in incidents during the selected date range.

Endpoint

GET /hubspot/stats/top-affiliates-involved/:startDate/:endDate

URL Parameters

Request Headers

Note: No request body is required.

Response

Success Response (HTTP 200)

  • affiliates: An array of affiliates involved in incidents during the date range.

Error Response (HTTP 400–500)

Any non-200 status code represents an error.

Authentication

This endpoint requires a valid authentication token via the Authorization header.

Example Request (cURL)

Example Request (JavaScript - fetch)

Notes

  • The endpoint returns an empty array when no affiliates are found.
  • Date format must be YYYY-MM-DD.
  • Success is based solely on HTTP status code.