Configure Scalar API References

Common configuration#

Use configuration to set the document URL, proxy behavior, layout, authentication, server URL, and request customization. Keep credentials out of source code.

Scalar.createApiReference('#app', {
  url: '/openapi.json',
  proxyUrl: 'https://proxy.scalar.com',
  theme: 'moon',
  layout: 'modern'
})

Next steps#

Updated

Was this page helpful?