Skip to main content

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

Request Headers

Note: No request body is required.

Response

Success Response (HTTP 200)

Field descriptions:
  • resolutionTimes: Statistical metrics for how long incidents took to resolve
    • min: Smallest resolution time
    • max: Largest resolution time
    • average: Arithmetic mean
    • median: 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 the Authorization header.

Example Request (cURL)


Example Request (JavaScript - fetch)


Notes

  • Dates must follow the YYYY-MM-DD format.
  • Metrics are based on calculated resolution times for all incidents in the range.