Resolution Times SLA
Returns statistics showing how many incidents were resolved within SLA, how many missed SLA, and the overall compliance percentage.Endpoint
GET /hubspot/stats/resolution-times-sla/: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 |
No request body is required.
Response
Success Response (HTTP 200)
resolutionSLA: SLA statisticswithinSLA: Number of incidents resolved within SLAafterSLA: Number of incidents resolved after SLApercentage: Percentage of incidents resolved within SLA
Error Response (HTTP 400–500)
Any non-200 response indicates an error.
Authentication
A valid JWT token must be included in theAuthorization header.
Example Request (cURL)
Example Request (JavaScript - fetch)
Notes
- Dates must be in the
YYYY-MM-DDformat. - SLA statistics are calculated from incident resolution times within the date range.