Scheduled broken-link and redirect checks that tell you the moment a link breaks — linkbruno.com
Retiring /v1 or the "old search service" looks like a backend task until the week after, when the docs still link to /v1/auth, a customer webhook still posts to a host you switched off, and the SDK README in the last released tag still has the old base URL. None of those 404s show up as a failing unit test in the repo you just deleted.
Here is the checklist I want filled in before you turn anything off, then walked again the day you do.
Before you announce a shutdown
1. List every hostname and path prefix that is going away. Not just https://api.example.com/v1. Include the internal DNS name, the region-specific name, the deprecated host you already "replaced" once, /graphql on the old service, health URLs, and any docs subdomain that existed only to describe this API (https://docs.example.com/v1/). If you cannot list them, you are not ready to retire them.
2. Find every place you still publish those URLs. Public docs, versioned docs, OpenAPI / AsyncAPI files, Postman collections, SDK READMEs (every supported major tag, not just main), code samples in the marketing site, blog posts, status-page runbooks, "quick start" gists, Terraform or pulumi examples, and the links in error messages the old API still returns. Search the org, not one repo.
3. Find the URLs customers publish back to you. Webhook callback URLs, OAuth redirect URIs, outbound IPs they allowlisted, and partner integrations that call you on a schedule. You cannot 301 a URL they host, and they cannot change it if you never told them.
4. Decide, for each path, whether the replacement is a redirect, a compatibility shim, or a documented hard cut. A 301 from /v1/users to /v2/users is only honest if the contract is the same. If the shape changed, a shim that understands the old request is kinder than a redirect into a 400. If you will not shim, the docs and the error body have to say so, with a date.
5. Pick a date, a second date, and a metric that will stop you if you are wrong. Announcement, then "we start returning a warning header", then "this hostname goes dark". The metric is usually request volume to the old prefix, by customer if you can. A shutdown date with 40% of traffic still on /v1 is a hope, not a plan.
6. Ship the replacements in the docs before you mention the shutdown in the same sentence. "v1 is deprecated" with links that still go to v1 pages, or with "see v2" links that 404, is how you teach people to ignore you. The new URL has to 200, and the old docs page should already point at it.
During the sunset
7. Put a clear signal on the old responses. A Deprecation and Sunset header, a Warning, a field in the JSON body, a banner on the old docs theme. Log it. Support should be able to search for the customers who are still hitting v1 after the announcement.
8. Keep the old hostname answering, even if the app is now a small reverse proxy. A DNS record that you delete on announcement day turns every remaining integration into a NXDOMAIN, which is harder to debug than a 410 with a body. Leave TLS working on that host. An expired certificate on a deprecated API is an outage, not a nudge.
The links you need to watch are not only the ones in the new docs; they are the ones in last year's SDK tag, a customer's runbook, and the path you are about to switch off. linkbruno.com can check the published URLs on a schedule, so a retirement that left a 404 in the reference, or a redirect that already loops, shows up before your customers have to file a ticket.
9. Check the redirects and shims the way a client would. A single curl -I is not enough: follow the chain, send GET and the methods you actually support, and confirm POST bodies are not silently turned into GETs by a 301. Verify auth still works on the shim. Then run the same checks from a stale SDK version you still claim to support.
10. Update inbound links you control on the day, not "in a later docs PR". Navigation, search, sitemap, "latest" aliases, status page, and the API explorer default. Leave a short v1 landing page that explains the move and links to the migration guide, rather than bouncing the whole prefix to the v2 root (a 301 from /v1/widgets/{id} to /v2 is a lost object).
After the cut
11. Keep a 410 (or a small, honest 301) for a long time. Months, not days, for a public API. Search, bookmarks, and installed clients outlive your confidence that "everyone has moved". Monitor 404/410 volume on the old prefix; a spike after a major customer upgrades (or fails to) is information.
12. Retire the name from your own examples. A year later, a new blog post that copy-pastes https://api.example.com/v1/hello will undo a lot of the work. Add a CI check: fail the docs and marketing builds if they mention the retired prefix, with an allowlist for the migration guide itself.
Things people skip that then dominate the week
- Webhooks you send. If the old service was the one posting out, retiring it also stops events. Confirm the new service is subscribed and that the signing secret did not change without a rotation plan.
- Sandboxes and regional copies. The production host is the one everyone remembers. The
sandbox.oreu.host is the one a serious customer is still on. - Error-message URLs. "See https://docs.example.com/errors/v1-auth" is a link, and it will be the one a failing client prints into a log at 2 a.m.
If you cannot name the last client still calling the old prefix, you are guessing. Guessing is how a "quiet" retirement becomes a support incident with a perfectly accurate 404.
Related reading
- How to check every URL in your OpenAPI (Swagger) docs and generated API reference before you publish
- When you delete a page on purpose, should it return 404 or 410? Let's argue about it
- Should you use a 301 or a 302 when you're not sure the new URL is permanent? Let's argue about it
- How to find expired signed URLs (S3, CloudFront, GCS) in your pages, emails and docs before customers hit AccessDenied
Have you retired an API version and then discovered a URL you had forgotten was public? Where was it hiding?
