The x-fern-availability extension marks the availability of an endpoint within your OpenAPI definition. The availability information propagates into the generated Fern Docs website as visual tags, SDKs, and CLIs.
Set x-fern-availability on an endpoint to one of the following values:
The example below marks that the POST /pet endpoint is deprecated.
The endpoint renders with the corresponding tag in your API Reference docs.

Availability values propagate into generated SDKs as doc comments on client methods (JSDoc in TypeScript, docstrings in Python, Javadoc in Java, etc.). IDEs surface these as warnings and strikethrough styling so SDK users see at a glance which endpoints to avoid.

Deprecated method with strikethrough in the Square TypeScript SDK
To attach a custom message, write x-fern-availability as an object with status and message fields:
You can set the availability for the entire API reference or for specific sections in your docs.yml configuration. Options are: stable, generally-available, in-development, pre-release, deprecated, alpha, beta, preview, or legacy.
When you set the availability of a section, all of the endpoints in that section are automatically marked with that availability unless explicitly set otherwise.