Skip to content

Menu

Deprecation and Sunset Header Builder

Build Deprecation (RFC 9745) and Sunset (RFC 8594) API response headers with Link relations, or paste headers to check dates and formats.

Runs entirely in your browserAPI & HTTPFree, no sign-up
Loading tool

01What is Deprecation and Sunset Header Builder?

Deprecation and Sunset Header Builder writes and checks the two HTTP response headers APIs use to warn clients that an endpoint is going away. The Deprecation header is defined in RFC 9745 (March 2025). It says the resource will be, or already has been, deprecated as of a given date. The Sunset header comes from RFC 8594 (2019), and it says when the resource is expected to stop responding. The two use different date formats, which trips people up. Deprecation is a Structured Field Date: an @ followed by Unix seconds, such as @1688169599. Sunset is an HTTP-date such as Sun, 30 Jun 2024 23:59:59 GMT. RFC 9745 itself notes the difference exists for historical reasons. On the Build tab, pick a deprecation date and a sunset date in UTC and add optional documentation links. The tool writes Deprecation, Sunset and a Link header with rel="deprecation" and rel="sunset". If the sunset comes before the deprecation, it shows an error, because RFC 9745 section 4 says the Sunset timestamp MUST NOT be earlier than the Deprecation timestamp. On the Check tab, paste response headers, including folded Link lines. The tool converts the Deprecation value to a date and says whether it is past or future. Values from earlier drafts of the specification, Deprecation: true or an HTTP-date, are reported as errors with the @ form to use instead. Sunset is checked against IMF-fixdate, the format RFC 9110 requires senders to generate. The weekday must match the date, and the zone must be GMT. Two spec examples show why this check helps. The Sunset example in RFC 9745 ends in UTC rather than GMT, which the tool accepts with a warning. And the example in RFC 8594 section 3, Sat, 31 Dec 2018 23:59:59 GMT, has the wrong weekday, because 31 December 2018 was a Monday. A sunset in the past is shown as "now", as RFC 8594 advises. The tool also notes when there is no rel="deprecation" link to point developers to a migration guide. The headers are hints. RFC 9745 says clients should work without them, and the tool can't tell you how any particular client reacts. All of it runs in your browser. Sources: RFC 9745, The Deprecation HTTP Response Header Field (https://www.rfc-editor.org/rfc/rfc9745); RFC 8594, The Sunset HTTP Header Field (https://www.rfc-editor.org/rfc/rfc8594); RFC 9110 section 5.6.7, Date/Time Formats (https://www.rfc-editor.org/rfc/rfc9110); RFC 9651 section 3.3.7, Dates (https://www.rfc-editor.org/rfc/rfc9651).

API product managers, backend developers and platform teams retiring API versions or endpoints. The tool runs entirely in your browser, so your data never leaves your device.

02How to use Deprecation and Sunset Header Builder

  1. On Build, choose the deprecation and sunset dates in UTC
  2. Add the URL of your migration guide or deprecation policy
  3. Copy the generated Deprecation, Sunset and Link lines into your server or gateway config
  4. On Check, paste live response headers to confirm the format and the date order

03Worked examples

Input: Deprecation 2027-01-01 00:00:00 UTC, Sunset 2027-07-01 00:00:00 UTC, policy https://api.example.com/docs/v1-migration
Result: Deprecation: @1798761600 Sunset: Thu, 01 Jul 2027 00:00:00 GMT Link: <https://api.example.com/docs/v1-migration>; rel="deprecation"; type="text/html"
Built on the Build tab.
Input: Deprecation: @1688169599 Sunset: Sun, 30 Jun 2024 23:59:59 UTC
Result: info: Deprecated since 2023-06-30T23:59:59.000Z. warn: Sunset: Ends in "UTC". IMF-fixdate (RFC 9110 5.6.7) requires "GMT"... warn: No Link with rel="deprecation"...
Output trimmed. The example from RFC 9745 section 4.
Input: Deprecation: @1767225600 Sunset: Wed, 31 Dec 2025 23:59:59 GMT
Result: error: Sunset is earlier than Deprecation. RFC 9745 section 4: the Sunset timestamp MUST NOT be earlier than the Deprecation timestamp.
Output trimmed to the error.
Input: Deprecation: true
Result: error: Deprecation: true is from earlier drafts. RFC 9745 requires a date, e.g. Deprecation: @1688169599.
Draft-era syntax that some APIs still send.

04Common use cases

  • Announcing the retirement of an API version with correct Deprecation and Sunset headers
  • Checking a gateway policy that injects deprecation headers into responses
  • Converting between a calendar date, Unix seconds and an IMF-fixdate
  • Reviewing headers copied from an API that still uses the draft-era Deprecation: true
  • Making sure the sunset date isn't before the deprecation date

05Tips

  • Deprecation uses @ plus Unix seconds; Sunset uses an HTTP-date ending in GMT
  • Always add a Link with rel="deprecation" so developers can find what to migrate to
  • Announce deprecation well before the sunset date and keep both headers on every response from the old endpoint
  • Treat these headers as hints: also announce the change by email or in your changelog

06Related concepts

RFC 9745, RFC 8594, Deprecation header, Sunset header, API versioning, Link header.

Frequently Asked Questions

What is Deprecation and Sunset Header Builder?

Deprecation and Sunset Header Builder is a free, browser-based developer tool on AIDToolStack. Build Deprecation (RFC 9745) and Sunset (RFC 8594) API response headers with Link relations, or paste headers to check dates and formats. It requires no installation or sign-up and works entirely in your browser.

Is Deprecation and Sunset Header Builder free to use?

Yes. No sign-up, no fees and no usage cap.

Does Deprecation and Sunset Header Builder store my data?

No. It runs in your browser; nothing is uploaded.

Related Tools

Reviews and commentsShow

Reviews

Sign in to leave a review.

Loading reviews…

Comments

Sign in to leave a comment.

Loading comments…

What changed in AI dev tools, once a month

Renames, shutdowns, pricing changes and new MCP setups, each with a source.

Subscribe