API Overview

Manage Docs, SDKs, and code snippets using Fern's public-facing API.

The Fern API allows you to interact programatically with Fern Docs, SDKs, and code snippets via a RESTful API.

Check out the CLI Reference to interact with Fern from the command line.

Authentication

Fern API requests require a bearer token for authentication. Use the CLI command fern token to generate a bearer token. Tokens do not expire.

Accessing Fern API

Fern maintains official API clients for Node.js and Python. We recommend using these clients, though the API supports any language or framework that sends HTTP requests.

Want an SDK in another language? Let us know!