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
| 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> | User authentication token |
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 theAuthorization 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.