Optional Readonlyagent
agent ?: { disabled ?: boolean ; key ?: string }
Optional Readonlyauthentication
authentication ?: { createAnySecurityScheme ?: boolean ; preferredSecurityScheme ?: string | readonly (string | readonly string [] )[] ; securitySchemes ?: Readonly < Record < string , Readonly < Record < string , unknown > > > , > ; }
Optional Readonlybase Server URL
baseServerURL ?: string
Optional Readonlycustom Css
customCss ?: string
Optional Readonlydark Mode
darkMode ?: boolean
Optional Readonlydefault Http Client
defaultHttpClient ?: { clientKey : string ; targetKey : string }
defaultOpenAllTags ?: boolean
Optional Readonlydefault Open First Tag
defaultOpenFirstTag ?: boolean
Optional Readonlydefault Request Body View
defaultRequestBodyView ?: "form" | "raw"
Optional Readonlydocument Download Type
documentDownloadType ?: "none" | "json" | "yaml" | "both" | "direct"
Optional Readonlyexpand All Model Sections
expandAllModelSections ?: boolean
Optional Readonlyexpand All Parameters
expandAllParameters ?: boolean
Optional Readonlyexpand All Responses
expandAllResponses ?: boolean
Optional Readonlyexpand All Schema Properties
expandAllSchemaProperties ?: boolean
Optional Readonlyfavicon
favicon ?: string
Optional Readonlyfeatured Clients
featuredClients ?: readonly string []
Optional Readonlyforce Dark Mode State
forceDarkModeState ?: "dark" | "light"
Optional Readonlyhidden Clients
hiddenClients ?: | true | readonly string [] | Readonly < Record < string , boolean | readonly string [] > >
hideClientButton ?: boolean
Optional Readonlyhide Dark Mode Toggle
hideDarkModeToggle ?: boolean
Optional Readonlyhide Model Names
hideModelNames ?: boolean
Optional Readonlyhide Models
hideModels ?: boolean
Optional Readonlyhide Search
hideSearch ?: boolean
hideTestRequestButton ?: boolean
Optional Readonlyis Editable
isEditable ?: boolean
Optional Readonlylayout
layout ?: "modern" | "classic"
Optional Readonlylocalization
localization ?: { direction ?: "ltr" | "rtl" | "auto" ; locale ?: string ; translations ?: Readonly < Record < string , unknown > > ; }
Optional Readonlymax Visible Request Body Properties
maxVisibleRequestBodyProperties ?: number
Optional Readonlymcp
mcp ?: { disabled ?: boolean ; name ?: string ; url ?: string }
metaData ?: Readonly < Record < string , string > >
Optional Readonlymodels Section Label
modelsSectionLabel ?: string
Optional Readonlyoauth2 Redirect Uri
oauth2RedirectUri ?: string
Optional Readonlyoperations Sorter
operationsSorter ?: "method" | "alpha"
Optional Readonlyoperation Title Source
operationTitleSource ?: "summary" | "path"
Optional Readonlyorder Required Properties First
orderRequiredPropertiesFirst ?: boolean
Optional Readonlyorder Schema Properties By
orderSchemaPropertiesBy ?: "alpha" | "preserve"
Optional Readonlypath Routing
pathRouting ?: { basePath : string }
Optional Readonlypersist Auth
persistAuth ?: boolean
Optional Readonlyplugin Urls
pluginUrls ?: readonly string []
Optional Readonlyproxy Url
proxyUrl ?: string
Optional Readonlyschema Keyboard Nav
schemaKeyboardNav ?: boolean
Optional Readonlysearch Hot Key
searchHotKey ?: string
showDeveloperTools ?: "always" | "localhost" | "never"
Optional Readonlyshow Extensions
showExtensions ?: readonly ` x- ${ string } ` []
Optional Readonlyshow Operation Id
showOperationId ?: boolean
Optional Readonlytelemetry
telemetry ?: boolean
Optional Readonlytheme
theme ?: | "default" | "none" | "alternate" | "bluePlanet" | "deepSpace" | "elysiajs" | "fastify" | "kepler" | "laserwave" | "mars" | "moon" | "purple" | "saturn" | "solarized"
Optional Readonlywith Default Fonts
withDefaultFonts ?: boolean
The Scalar API reference configuration options.
Only the JSON-serializable ones: the configuration is inlined in the page with
JSON.stringify, so functions (events,customFetch,plugins, slug generators, custom sorters) would be dropped.urlis set by the plugin.