Resolution Times
Returns statistical resolution time metrics for incidents occurring within the specified date range.Endpoint
GET /hubspot/stats/resolution-times/: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: No request body is required.
Response
Success Response (HTTP 200)
resolutionTimes: Statistical metrics for how long incidents took to resolvemin: Smallest resolution timemax: Largest resolution timeaverage: Arithmetic meanmedian: Middle value in the sorted dataset
Error Response (HTTP 400–500)
Any non-200 response indicates an error.
Authentication
A valid JWT token must be provided in theAuthorization header.
Example Request (cURL)
Example Request (JavaScript - fetch)
Notes
- Dates must follow the
YYYY-MM-DDformat. - Metrics are based on calculated resolution times for all incidents in the range.