/api/v1/healthService status and published capability boundaries.
HitchMargin API / v1 beta
Build worksheets, intake tools, and identity helpers on explicit data classes. Vehicle identity comes from NHTSA vPIC. A response can point to a documented manufacturer VIN tool, but ratings remain caller-supplied and unverified until a separately reviewed catalog exists.
OpenAPI JSON/api/v1/healthService status and published capability boundaries.
/api/v1/vehicles/makesNHTSA-backed make identities for truck, MPV/SUV, and passenger-car types.
/api/v1/vehicles/models?makeId=460&year=2024Exact-make model names for a model year.
/api/v1/vehicles/decodeVIN identity plus an official rating path when documented; full VIN is masked in the response.
/api/v1/calculateThe same deterministic, user-supplied math used by the public worksheet.
Calculation example
curl -X POST https://hitchmargin.com/api/v1/calculate \
-H 'content-type: application/json' \
-d '{
"payloadRatingLb": 1650,
"maxTrailerRatingLb": 8000,
"loadedTrailerWeightLb": 6500,
"tongueWeightMode": "percent",
"tongueWeightPercent": 13,
"measuredTongueWeightLb": null,
"occupantsLb": 400,
"cargoAndAccessoriesLb": 120,
"hitchHardwareLb": 70
}'The API does arithmetic. It does not authenticate caller-supplied ratings or weights.
VIN responses can identify an official next step but deliberately exclude an unreviewed towing-capacity number or range.
Version 1 math is for bumper-pull behavior. Fifth-wheel and gooseneck need a reviewed specification.