Skip to content

fix(broken-links): update 2 stale API-reference slugs after SDK method renames#270

Open
abhishekmishragithub wants to merge 1 commit into
mainfrom
fix/api-ref-url-slugs-after-sdk-renames
Open

fix(broken-links): update 2 stale API-reference slugs after SDK method renames#270
abhishekmishragithub wants to merge 1 commit into
mainfrom
fix/api-ref-url-slugs-after-sdk-renames

Conversation

@abhishekmishragithub

@abhishekmishragithub abhishekmishragithub commented Jun 22, 2026

Copy link
Copy Markdown
Collaborator

Closes #267 — auto-opened weekly site-audit issue flagged these same 2 links.

Summary

CI link-check failed after #266 merged. The two failures are stale Fern-generated API-reference URL slugs that moved when #262 added `x-fern-sdk-method-name` annotations on those endpoints. Fern derives the API-ref URL from the SDK method name (falling back to summary kebab-case otherwise), so the slug change is a downstream effect of the SDK lockstep.

Fix

File Old (404) New (verified 200 live)
`creating-campaigns.mdx:122` `.../campaigns/create-a-campaign` `.../campaigns/create`
`websocket-sdk.mdx:121` `.../logs/get-conversation-log-by-id` `.../calls/get`

The second one also moved namespace (`logs` → `calls`) — the OpenAPI tag is `Logs` but `x-fern-sdk-group-name: calls` was added in #262, and Fern uses the SDK group-name for the URL, not the OpenAPI tag.

Verification

  • `fern check`: 0 errors (12 unchanged warnings).
  • Both new URLs curl'd against `https://docs.smallest.ai\` and confirmed HTTP 200 before commit.
  • Grep for any other stale slug patterns from the 20 renamed methods (`retrieve-all-campaigns`, `pause-a-campaign`, `submit-a-compliance-application`, `create-a-webhook`, etc.) — no other matches in repo.

Follow-up worth noting

External pages (Slack messages, Notion docs, customer cookbooks) that linked to the old `/campaigns/create-a-campaign`, `/logs/get-conversation-log-by-id`, etc. slugs would also 404 now. Out of scope for this PR, but worth a Google Search Console pass similar to #269.

…d renames

CI link-check failed after #266 merged because two MDX files referenced the
old Fern-derived URL slugs that changed when #262 added
`x-fern-sdk-method-name` annotations. Fern derives the API reference URL
from `x-fern-sdk-{group,method}-name` when set (falling back to summary
kebab-case otherwise), so renaming the SDK method also moves the docs
URL.

| File | Old (404) | New (verified 200 on live) |
|---|---|---|
| `creating-campaigns.mdx:122` | `.../campaigns/create-a-campaign` | `.../campaigns/create` |
| `websocket-sdk.mdx:121` | `.../logs/get-conversation-log-by-id` | `.../calls/get` |

The second one also moved namespace (`logs` → `calls`) because the
OpenAPI tag is `Logs` but `x-fern-sdk-group-name: calls` was added — Fern
uses the SDK group-name for the URL not the OpenAPI tag.

Both new URLs curl'd against https://docs.smallest.ai and confirmed 200
before commit. `fern check`: 0 errors.

## Followup-worthy (not in this PR)

Same risk exists for any external doc / Slack message / cookbook / Notion
page that linked to the old `/campaigns/create-a-campaign` etc. slugs —
those are out of this repo's scope but worth a Search Console pass like
@abhishekmishragithub's #269 next sprint.
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.

Weekly site audit: broken links on docs.smallest.ai or cookbook (2026-06-22)

1 participant