Skip to content

docs(api): mark the metrics api as deprecated - #4855

Merged
owenwahlgren merged 3 commits into
masterfrom
devin/1793920720-deprecate-metrics-webhooks
Nov 6, 2026
Merged

owenwahlgren merged 3 commits into
masterfrom
devin/1793920720-deprecate-metrics-webhooks

Conversation

@devin-ai-integration

@devin-ai-integration devin-ai-integration Bot commented Nov 5, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Every page under /docs/api-reference/metrics-api now shows a "Deprecated" warning callout at the top with the dates:

API Deprecated Sunset Decommissioned
Metrics API Nov 5, 2026 Nov 16, 2026 12:00 UTC Nov 30, 2026 12:00 UTC

The endpoint pages come from yarn build:remote (fumadocs-openapi) and are gitignored, so the banner is not in the MDX. The docs page (app/docs/[...slug]/page.tsx) renders ApiDeprecationNotice when getApiDeprecation(page.slugs) matches a prefix in API_DEPRECATIONS (lib/api-deprecations.ts). That covers both the hand-written pages and the generated ones. To change a date or deprecate another API, edit that list.

Also:

  • The API References nav (apiReferenceOptions) gives the Metrics API the existing Deprecated badge (the docs subnav already styles it), and its description starts with "Deprecated:".
  • The Metrics API meta.json description starts with "Deprecated:".

The Webhooks API is not deprecated in this PR. Its pages and nav entry are unchanged.

Not changed: other docs that mention the Metrics API (e.g. data-api/index.mdx, the Avalanche SDK chainkit pages), and the Console's Data API keys copy.

Metrics API index

Checks: tsc --noEmit, a new unit test tests/unit/docs/api-deprecations.test.ts, and checked locally after yarn build:remote: the Metrics API pages show the banner and the Webhooks API pages don't.

Link to Devin session: https://app.devin.ai/sessions/7b2f65befed24b7fabed525145f4670d
Open in Devin Desktop: https://app.devin.ai/desktop/session/7b2f65befed24b7fabed525145f4670d?variant=devin

@devin-ai-integration

Copy link
Copy Markdown
Contributor Author

I'll fix CI failures and address comments from users with write access. I'll skip comments containing "(aside)".

  • Disable automatic comment, CI, and merge conflict monitoring

@vercel

vercel Bot commented Nov 5, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
builder-hub Ready Ready Preview Nov 6, 2026 7:24am UTC

Request Review

Every page under /docs/api-reference/metrics-api and /docs/api-reference/webhook-api
shows a deprecation notice with the deprecation, sunset and decommission dates.
The API Reference nav marks both APIs Deprecated.
Only the Metrics API is deprecated for now.
@devin-ai-integration devin-ai-integration Bot changed the title docs(api): mark the metrics and webhooks apis as deprecated docs(api): mark the metrics api as deprecated Nov 6, 2026
@jasonatran
jasonatran marked this pull request as ready for review November 6, 2026 02:36
Co-authored-by: jasonatran <5642477+jasonatran@users.noreply.github.com>
@owenwahlgren
owenwahlgren merged commit 1b09c31 into master Nov 6, 2026
15 checks passed
@owenwahlgren
owenwahlgren deleted the devin/1793920720-deprecate-metrics-webhooks branch November 6, 2026 17:20

This branch was successfully deployed

1 active deployment
Preview — 7bc05dd1 Deployed Nov 6, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants