Contractors
Contractors
Contractors
Get Filtered Metrics By Contractor Id
Changed onReturns contractor monthly metrics filtered by contractor ID, property type, and tags. Metrics include permit count, average duration, and average pass rate.
get/contractors/{id}/metrics
Request
- Base URLhttps://api.shovels.ai/v2
- AuthAPI key in header X-API-Key
Path parameters
idstring required
Filter by the specified contractor ID.
Query parameters
metric_fromstring date required
Start date for metrics (inclusive)
metric_tostring date required
End date for metrics (inclusive)
property_typestring required
Filter by property type
tagstring
Filter metrics by one tag. Omit this parameter or use all for aggregate metrics without filtering by tag. Date and property type filters still apply.
cursorstring nullable
Cursor for pagination
sizeinteger
Response
Contractor monthly metrics
Changes
- info
the
queryrequest parametertagbecame optional
- info
- info
added the optional property
//to the response with the status - info
added the optional property
//to the response with the status
- info