Your Cart
Loading

HubSpot Legacy API Migration Kit (v1-v4 to 2026-09)

On Sale
$39.00
$39.00
Added to cart

HubSpot is retiring its legacy v1-v4 APIs and moving to date-based versioning (2026-09). Design manager serverless functions (/_hcms/api/) stop running on 1 February 2027. Apps on Projects 2025.2 or older must move to 2026.09 by March 2027. v4 APIs become unsupported on 30 March 2027, and v1-v3 APIs plus legacy public and private apps face enforcement in September 2027. HubSpot says to migrate directly to 2026-09, not via v3 or v4.

HubSpot's Migrations > APIs tab checks calls at runtime, not your source code. As of 5 December 2026, HubSpot's official Python and Node SDKs still call v3 paths. This kit gives you a static scanner, an endpoint map, a conservative codemod and a deadline guide.

What's inside

  • hs_scan.py: a read-only scanner (Python 3.9+, standard library only). It finds v1-v4 API paths, /_hcms/api/ serverless calls, official SDK dependencies, old platformVersion values in hsproject.json and *-hsmeta.json, and hapikey auth. To avoid false positives, generic paths are only reported in files that mention hubapi or hubspot. Text and JSON output, CI exit codes, never prints line contents.
  • hs_endpoint_map.json: 1,206 versioned legacy endpoints built from HubSpot API reference pages fetched on 5 December 2026: 791 same contract (matching parameters, request body and success response schemas), 71 contract changed (with the added and removed schema fields), 344 with no 2026-09 equivalent listed yet. Each has its 2026-09 path and doc links.
  • hs_rewrite.py: a dry-run-by-default codemod that prints a unified diff. It only rewrites unambiguous same-contract paths, keeps your path parameters, and writes atomically with --write. Changed, missing and prefix matches are listed for manual review.
  • MIGRATION-GUIDE.md: dates, DBV path rules, what to do per status, SDK guidance, Service Keys, Marketplace rules, serverless migration outline, 429/5xx handling and a worked Python example.
  • CHECKLIST.md, ordered by deadline.
  • tools/: scripts to rebuild the endpoint map from HubSpot's docs when the March 2027 release lands.
  • 22 offline tests.

Honest limits

  • Built from HubSpot's docs as of 5 December 2026. HubSpot says not all replacement paths are final and the March 2027 release brings full per-endpoint docs.
  • The contract comparison covers parameters, request body and success response schemas only, not runtime behaviour, permissions or pagination.
  • The text scanner can miss URLs built at runtime and cannot see calls inside SDK packages. Use HubSpot Development > Migrations > APIs for runtime calls.
  • Not tested against a live HubSpot account. Try changes in a HubSpot test account first.
  • Want a free inventory first? The free scanner at github.com/PrajwalSaggurthi/hubspot-legacy-api-check shows status and deadline per endpoint. This kit adds the 2026-09 paths, contract diffs, codemod and guide.

Independent product. Not affiliated with HubSpot.

You will get a ZIP (71KB) file