Mintlify

Use Fern to generate SDKs for your API, then document them in Mintlify with automatically enriched code samples.

How it works

Fern generates SDKs and provides a publicly accessible OpenAPI spec enriched with SDK code samples. Reference this spec in your Mintlify documentation to display SDK usage examples in your API playground.

Setup

Add the Fern OpenAPI spec URL to your Mintlify docs.json configuration:

docs.json
1{
2 "anchors": [
3 {
4 "name": "API Reference",
5 "openapi": "https://registry.buildwithfern.com/{org}/{api-name}/openapi/openapi.json",
6 "url": "api-reference"
7 }
8 ]
9}

Replace {org} with your organization name and {api-name} with your API name from fern.config.json.