Skip to content
Last updated

Configuration options

The redocly.yaml file is the single place to configure everything Redocly. This configuration file allows you to customize your API documentation, developer projects, and other Redocly services according to your needs.

This guide provides a comprehensive overview of available configuration options organized by functional areas.

Filter configuration options
Choose your Redocly products and plan to see only the configuration options available to you. Select filters below to get started.
Products
Plan

API Management

Define your APIs and control how API descriptions are processed and validated.

apis
RealmRealmRedocRedocRevelRevel
+6 more

Configure rules and settings for individual APIs in multi-API projects.

asyncapi
RedocRedocRealmRealmPro
+2 more

Customize the behavior and appearance of AsyncAPI documentation. Requires an AsyncAPI description file.

catalogClassic
ReefReefRealmRealmPro
+2 more

Organize your content into a catalog that users can filter and search. You can configure multiple catalogs and set the link text, description, and filters.

decorators
RealmRealmRedocRedocRevelRevel
+6 more

Define transformation steps applied to your API description when it is bundled.

extends
RealmRealmRedocRedocRevelRevel
+6 more

Extend an existing configuration set.

graphql
RedocRedocRealmRealmPro
+2 more

Customize the behavior and appearance of integrated GraphQL documentation. Requires a GraphQL schema.

mockServer
RedocRedocRealmRealmPro
+2 more

Configure a mock server in your Redocly-powered API documentation.

openapi
RedocRedocRealmRealmPro
+2 more

Customize the behavior and appearance of OpenAPI documentation. Requires an OpenAPI description file.

preprocessors
RealmRealmRedocRedocRevelRevel
+6 more

Define preprocessor transformation steps for your API description files.

rules
RedocRedocRevelRevelRealmRealm
+4 more

Configure linting rules and their severity.

scorecardClassic
ReefReefRealmRealmPro
+2 more

Add and create sets of rules and test your API description files against them.

Navigation elements

These settings control how users navigate through your documentation project.

aiAssistant
RedocRedocRevelRevelReefReef
+3 more

Customize the AI assistant functionality in your project.

footer
RedocRedocRevelRevelReefReef
+4 more

Customize the footer for the pages in your project.

navbar
RedocRedocRevelRevelReefReef
+4 more

Configure a navbar for your project.

navigation
RedocRedocRevelRevelReefReef
+4 more

Control the Previous and Next navigation buttons on project pages.

search
RedocRedocRevelRevelReefReef
+4 more

Customize the search functionality in your project.

sidebar
RedocRedocRevelRevelReefReef
+4 more

Set the visibility of the sidebar in your project.

User interface

Customize the look and feel of your documentation project with these options.

banner
RevelRevelRealmRealmPro
+2 more

Display announcement banners at the top of your documentation pages.

breadcrumbs
RedocRedocRevelRevelReefReef
+4 more

Control breadcrumb links that indicate a page's location in navigation.

codeSnippet
RedocRedocRevelRevelReefReef
+4 more

Configure which control UI elements are available for code snippets.

colorMode
RedocRedocRevelRevelReefReef
+4 more

Configure the behavior of the color mode UI control and add more color modes.

logo
RedocRedocRevelRevelReefReef
+4 more

Configure a custom logo for the project navbar.

markdown
RevelRevelReefReefRealmRealm
+3 more

Customize behavior and appearance of pages rendered from Markdown files.

removeAttribution
RedocRedocRevelRevelReefReef
+2 more

Hide Redocly attribution information from the browser console.

userMenu
RedocRedocRevelRevelReefReef
+4 more

Set the visibility of the user menu in your project.

Content management

Organize and control documentation content, versions, and localization.

l10n
RevelRevelRealmRealmPro
+2 more

Configure localization (internationalization) for your project to support multiple languages.

metadata
RedocRedocRevelRevelReefReef
+4 more

Configure metadata properties for your project, APIs, and documentation files.

metadataGlobs
RedocRedocRevelRevelReefReef
+4 more

Configure glob patterns to apply metadata to specific files or directories.

products
RevelRevelRealmRealmPro
+2 more

Set up multiple product documentation sets in your project.

versionPicker
RedocRedocRevelRevelReefReef
+4 more

Configure the visibility of the version picker in your project.

Security and access management

Configure user authentication and access controls for your documentation.

access
RedocRedocRevelRevelReefReef
+4 more

Configure authentication and access-related settings in a single object.

idps
RedocRedocRevelRevelReefReef
+3 more

Restrict project login to specific identity providers (IdPs) selected by unique ID.

logoutReturnUrl
RedocRedocRevelRevelReefReef
+4 more

Configure a URL where users are redirected after they log out.

rbac
RedocRedocRevelRevelReefReef
+3 more

Use team-based access controls to assign permissions required to files and project access.

requiresLogin
RedocRedocRevelRevelReefReef
+4 more

This configuration option makes all your content private for non-authenticated users.

residency
RedocRedocRevelRevelReefReef
+2 more

Select a geographical location to host your project.

sso
RedocRedocRevelRevelReefReef
+3 more

Restrict project login to specific identity provider categories defined in Reunite.

corsProxy
RedocRedocRevelRevelReefReef
+4 more

Restrict the built-in CORS proxy to specific remote hosts and paths.

Customization

Extend functionality with custom code and additional features.

apiFunctions
ReefReefRealmRealmPro
+2 more

Control where Redocly detects and hosts API functions.

env
RedocRedocRevelRevelReefReef
+4 more

Customize the redocly.yaml configuration for each environment.

links
RedocRedocRevelRevelReefReef
+4 more

Add custom fonts, stylesheets, and other links to pages.

mcp
RedocRedocRevelRevelReefReef
+3 more

Make your content accessible to AI tools.

plugins
RevelRevelReefReefRealmRealm
+3 more

Configure custom plugins to extend lint and decorator behavior.

resolve
RealmRealmRedocRedocRevelRevel
+6 more

Configure how to resolve URLs referenced from API descriptions.

responseHeaders
RedocRedocRevelRevelReefReef
+4 more

Configure custom response headers for your project.

scripts
RedocRedocRevelRevelReefReef
+4 more

Insert custom scripts in the head or body of a page.

skills
RedocRedocRevelRevelReefReef
+4 more

Control how agent skills are published from your project.

Analytics and SEO

Improve discoverability and track usage of your documentation.

analytics
RedocRedocRevelRevelReefReef
+4 more

Configure popular analytics providers for your documentation project.

consent
RedocRedocRevelRevelReefReef
+2 more

Show a cookie consent banner and load analytics only after the visitor agrees.

ignore
RedocRedocRevelRevelReefReef
+4 more

Exclude files and folders from the project build without removing the source files from your project.

redirects
RevelRevelRealmRealmPro
+2 more

Configure redirects to resources within your project.

seo
RevelRevelRealmRealmPro
+2 more

Setup Search Engine Optimization(SEO) for your project.

Developer experience

Enhance the experience for developers using your APIs.

developerOnboarding
ReefReefRealmRealmPro
+2 more

Configure developer onboarding to enable external developers to self-register applications and manage API credentials.

feedback
RedocRedocRevelRevelReefReef
+4 more

Customize how users leave feedback about your documentation content with this option.

reunite
RedocRedocRevelRevelReefReef
+4 more

Allow builds to publish even if Reunite detects issues in your project.

Example configuration

The following example demonstrates a typical redocly.yaml configuration combining various options:

logo:
  srcSet: './images/redocly-logo.svg light, ./images/redocly-logo-inverted.svg dark'
  altText: Redocly logo
  link: '/'
navbar:
  items:
    - page: index.md
      label: '{{ process.env.HOME_LABEL }}' 
    - page: config/index.md
      label: Config
feedback:
  type: sentiment
  settings:
    comment:
      likeLabel: What was most helpful?
      dislikeLabel: What can we improve?

apis:
  redocly-museum:
    root: './openapi-files/redocly-museum.yaml'

extends:
  - recommended

rules:
  info-license: error
  no-ambiguous-paths: error
  no-http-verbs-in-paths:
    severity: error
    splitIntoWords: true
  rule/operationId-casing:
    subject:
      type: Operation
      property: operationId
    assertions:
      casing: camelCase
  rule/no-description-start-with-the-a-an:
    subject:
      type: any
      property: description
    assertions:
      notPattern: /^(The\s|A\s|An\s)/

rbac:
  content:
    '**'
      authenticated: read

redirects:
  '/concepts/categories/':
    to: 'author/concepts/categories/'
  '/concepts/navigation/':
    to: 'author/concepts/navigation/'

This example includes logo customization, navigation setup, feedback controls, API descriptions, rule configurations, access controls, and redirects.

Configuration principles

Redocly has a few important configuration philosophies:

  • universal config (all configuration in one place)
  • zero config (you don't need to do any configuration because we have sane defaults)
  • config-as-code (all configuration should be writable in a simple source-control friendly format)

Boolean options should be false by default, and each name must say what true does. Set one only when you want to turn that behavior on. A few options are true by default. Check the reference pages for the option you need.

Some options have multiple levels of nesting. Pay attention to the indentation and nesting when modifying the file.

Next steps

After configuring your redocly.yaml file, you can validate it using the Redocly CLI with npx @redocly/cli check-config. For more detailed information about specific configuration options, follow the links in each section.