This repository contains the source for the Descope API Documentation, built with Fern.
fern/
├── docs.yml # Site configuration (navigation, tabs, colors, navbar)
├── fern.config.json # Fern project config (organization, version)
├── generators.yml # API spec source configuration
├── openapi/
│ └── openapi.yaml # Descope OpenAPI 3.0 specification
└── pages/ # Documentation content (MDX)
├── welcome.mdx
├── authentication.mdx
├── getting-started/ # Quickstarts & framework guides
├── auth-methods/ # OTP, Magic Link, Passkeys, OAuth, SSO, etc.
├── authorization/ # RBAC, ReBAC, ABAC, sessions
├── flows/ # Visual flow builder docs
├── widgets/ # UI widget docs
├── sdks/ # Client, Mobile, Backend SDK docs
├── agentic-identity-hub/ # MCP & agentic identity
├── identity-federation/ # Applications & federation
├── connectors/ # Connector integrations
├── management/ # Users, tenants, access keys, settings
├── guides/ # B2B, SSO tutorials, fingerprinting
├── migration/ # Migration guides
├── deployment/ # Production deployment & test users
└── troubleshooting/ # Common errors
Install the Fern CLI globally:
npm install -g fern-apifern installCheck that the docs config and OpenAPI spec are valid:
fern checkRun a local development server to preview the docs:
fern docs devTo trigger a full docs build and publish:
fern generate --docsThe site will be deployed to https://descope.docs.buildwithfern.com.
- Create or edit an
.mdxfile underfern/pages/. - Register the page in
fern/docs.ymlunder the appropriate section in thenavigationtree.
The API reference is auto-generated from fern/openapi/openapi.yaml. To update it, modify the OpenAPI spec and run fern check to validate.
| File | Purpose |
|---|---|
fern/docs.yml |
Site title, tabs, navigation, navbar links, colors |
fern/fern.config.json |
Fern organization name and CLI version |
fern/generators.yml |
Points Fern to the OpenAPI spec |
- Live docs: https://descope.docs.buildwithfern.com
- Descope Console: https://app.descope.com
- Descope website: https://descope.com
- Fern documentation: https://docs.buildwithfern.com
