SKILL·D17A16

audit-api-usage

TomGranot
更新于 3 days ago
51
14
51
在 GitHub 上查看
开发api

关于

This skill audits your HubSpot API integrations to identify all calls using legacy v1-v4 endpoints before their March 30, 2027 end-of-support deadline. It generates a migration checklist to help transition your private apps and tooling to the new date-based API versions. Use it to proactively inventory your stack and plan a necessary upgrade to maintain support and certification.

快速安装

Claude Code

推荐
主要方式
npx skills add TomGranot/hubspot-admin-skills -a claude-code
插件命令备选方式
/plugin add https://github.com/TomGranot/hubspot-admin-skills
Git 克隆备选方式
git clone https://github.com/TomGranot/hubspot-admin-skills.git ~/.claude/skills/audit-api-usage

在 Claude Code 中复制并粘贴此命令以安装该技能

技能文档

Audit API Usage Before the 2027 Version Cutoff

In March 2026 HubSpot replaced semantic API versioning (v1-v4) with date-based versions (/2026-03/-style paths, two releases a year, 18 months of support each). Everything still calling v1-v4 endpoints — including legacy OAuth v1 — becomes unsupported on March 30, 2027. This skill inventories what in your stack calls HubSpot and produces a migration checklist.

Why This Matters

The deadline fails quietly: unsupported APIs "no longer receive updates, bug fixes, or stability guarantees," and marketplace apps that don't migrate risk losing certification. A portal typically has more callers than anyone remembers — private apps, marketplace apps, middleware (Zapier/Make), form embeds, internal scripts, data warehouse syncs. Finding them takes an afternoon now or an incident later.

Key Facts

FactDetail
Current recommended version2026-03
Release cadenceMarch and September, every year
Support lifecycleCurrent (6 months) → Supported (to 18 months) → Unsupported
v1–v4 end of supportMarch 30, 2027
Also deprecatedLegacy v1 OAuth API (token issuance/introspection)

Prerequisites

  • Super Admin access (to view Integrations settings and private app logs)
  • Optionally: a private app token (HUBSPOT_ACCESS_TOKEN in .env) for the account-level usage query
  • Access to the source code of any internal integrations

Execution Pattern

Stage 1: Plan

Confirm with the user: which systems are known to touch HubSpot (CRM syncs, website forms, analytics pipelines, internal scripts), and who owns each.

Stage 2: Before — Build the Caller Inventory

Work through each discovery source and record every caller in a checklist (owner, what it does, endpoints/versions used):

  1. Private apps: Settings > Integrations > Private Apps. Open each app > Logs — the API call log shows the exact request paths (/crm/v3/..., /contacts/v1/...), which reveal the version in use.
  2. Connected/marketplace apps: Settings > Integrations > Connected Apps. You can't see their internals; note each vendor — certified apps are being pushed to migrate by HubSpot, but confirm with the vendor for anything business-critical.
  3. Internal codebases: grep for version-revealing patterns:
    grep -rEn "api\.hubapi\.com/[a-z-]+/v[0-9]|/contacts/v1|/email/public/v1|hubapi.com/automation/v[23]" .
    
  4. Middleware (Zapier, Make, Workato, n8n): platform-managed connectors migrate on the vendor's schedule; custom HTTP steps inside them do not — check those by hand.
  5. Account-wide API usage (optional script check): the account-info API reports daily API usage totals for private apps:
    resp = requests.get(f"{BASE}/account-info/v3/api-usage/daily", headers=HEADERS)
    
    This confirms how much traffic flows, not which versions — use the per-app logs from step 1 for version detail.

Stage 3: Execute — Classify and Plan Migrations

For every caller, classify:

StatusMeaningAction
RedCalls v1/v2 legacy endpoints (e.g., /contacts/v1/, /email/public/v1/, forms v2) or legacy OAuth v1Migrate now — many of these had earlier sunset dates already
AmberCalls v3/v4 endpointsWorks until 2027-03-30; schedule migration to 2026-03 date-based paths
GreenCalls date-based paths, or vendor-managed and confirmed migratingMonitor

For amber/red internal code, the migration is usually mechanical — same resources, new path prefix and (sometimes) renamed fields; consult the endpoint's migration notes in HubSpot's docs. Batch the work per codebase, not per endpoint.

This repo's own scripts are amber by design: they target /crm/v3/ and /automation/v4/, supported until March 2027, with the migration path documented in CONTRIBUTING.md.

Stage 4: After

  1. Every caller in the inventory has a status and an owner.
  2. Red items have migration tickets with dates; amber items are scheduled before 2027-03.
  3. Re-run this audit every 6 months — each March/September release starts a new support clock.

Rollback

Read-only — nothing to roll back.

Technical Gotchas

  1. Private app logs are the ground truth. Code greps miss dynamically-built URLs; the per-app request logs in Settings show what is actually being called.
  2. 404 vs 403 vs unsupported. After end of support, endpoints may keep working for a while — "unsupported" means no fixes or guarantees, not an instant shutoff. Do not treat "it still works" as "we're fine."
  3. OAuth is part of this. Apps using legacy v1 OAuth token endpoints must move to the date-based OAuth API even if their data endpoints are current.
  4. SDK versions pin API versions. If an integration uses an official HubSpot SDK, the SDK's major version determines which API version it calls — check the SDK changelog, not just your code.

GitHub 仓库

TomGranot/hubspot-admin-skills
路径: skills/audit-api-usage
0
hubspothubspot-apihubspot-crmhubspot-integration
FAQ

Frequently asked questions

What is the audit-api-usage skill?

audit-api-usage is a Claude Skill by TomGranot. Skills package instructions and resources that Claude loads on demand, so Claude can perform audit-api-usage-related tasks without extra prompting.

How do I install audit-api-usage?

Use the install commands on this page: add audit-api-usage to Claude Code as a plugin, or clone its repository into your skills directory, then restart Claude so it picks up the skill.

What category does audit-api-usage belong to?

audit-api-usage is in the Development category, tagged api.

Is audit-api-usage free to use?

Yes. audit-api-usage is listed on AIMCP and free to install. It runs inside Claude, so no separate service account is required to use the skill itself.

相关推荐技能

qmd
开发

这是一个本地搜索和索引的CLI工具,支持BM25、向量搜索和重排序功能。开发者可以用它快速索引本地文件(如Markdown文档)并进行混合搜索,特别适合代码库或文档的本地检索。它还提供MCP模式,能轻松集成到Claude开发环境中使用。

查看技能
subagent-driven-development
开发

该Skill用于在当前会话中执行包含独立任务的实施计划,它会为每个任务分派一个全新的子代理并在任务间进行代码审查。这种"全新子代理+任务间审查"的模式既能保障代码质量,又能实现快速迭代。适合需要在当前会话中连续执行独立任务,并希望在每个任务后都有质量把关的开发场景。

查看技能
mcporter
开发

mcporter Skill 让开发者能在Claude中直接管理和调用MCP服务器。它支持列出可用服务器、调用工具、处理OAuth认证以及管理服务器守护进程。开发者可以通过命令行式交互快速执行`mcporter list`查看服务器,或使用`mcporter call`直接调用工具,简化了MCP工作流程。

查看技能
adk-deployment-specialist
开发

这是一个用于部署和编排Google Vertex AI ADK智能体的Claude Skill,专为构建生产级多智能体系统而设计。它支持通过A2A协议进行智能体通信,提供代码执行沙箱和记忆库功能,并能处理智能体发现与任务提交。当开发者需要部署ADK智能体或编排多智能体协作时,可使用此Skill来简化Vertex AI Agent Engine的部署流程。

查看技能