Capabilities

Fern SDKs are built to have every feature you need.
Strongly Typed

Move fast and break nothing with type safety

Idiomatic Method Names

Fine-tune SDK resources and method names

Schema Validation

Fail fast if payloads diverge from your schema

Discriminated Unions

Fern SDKs include support for discriminated unions

Multipart Form Data

SDKs that handle multipart form data

Forward Compatibility

SDKs that are fault-tolerant as your API evolves

Registry Publishing

Fern will automatically publish your SDKs to registries like npm, PyPI, and Maven

Auto-Pagination

Paginate through API responses easily with offset, cursor, and link-based pagination.

Learn more

Arrow right light

OAuth Token Refresh

Fern supports OAuth as a first class citizen

Retries with Backoff

Automatically retry failed requests with exponential backoff

Webhook Signature Verification

Verify the signature of incoming webhook requests

Idempotency Headers

Built-in protection against duplicate submissions

Learn more

Arrow right light

Server-Sent Events

Stream JSON data from your server to your client (i.e. chat completions)

Integration Tests

Test your SDK against a mock server

Code Snippets

No longer depend on manually written code snippets

Augment with Custom Code

Extend the generated SDK to provide additional functionality

Learn more

Arrow right light

Merging Multiple APIs

Multiple API Definitions. One SDK.

Learn more

Arrow right light

WebSockets

Send and receive messages over WebSockets

Model Context Protocol

Learn how to use the Model Context Protocol (MCP) to integrate AI capabilities with your Fern documentation

Learn more

Arrow right light