Skip to content

Scalar API Reference

JustAPI includes Scalar as a built-in API documentation UI alongside Swagger UI and ReDoc.

Start your app and open:

http://localhost:8000/scalar

Scalar provides a clean, modern interface for exploring and testing your API.

JustAPI serves three documentation UIs out of the box:

URL UI Description
/docs Swagger UI Classic interactive docs
/redoc ReDoc Clean, readable reference
/scalar Scalar Modern, fast, developer-friendly
from justapi import JustAPIApp
app = JustAPIApp(
scalar_url="/scalar", # default
docs_url="/docs", # Swagger UI
redoc_url="/redoc", # ReDoc
)

Set any URL to None to disable:

app = JustAPIApp(
scalar_url=None, # disable Scalar
docs_url=None, # disable Swagger UI
redoc_url="/redoc",
)
Feature Scalar Swagger UI ReDoc
Speed Fast Medium Medium
Design Modern, minimal Classic Clean, readable
Try-it-out Yes Yes No
Auth testing Yes Yes No
Dark mode Yes No No
Schema download Yes Yes Yes

When admin_token is set, /scalar is protected:

app = JustAPIApp(admin_token="my-secret-token")

Include the token in requests:

Terminal window
curl -H "Authorization: Bearer my-secret-token" http://localhost:8000/scalar