Skip to main content

api.run_time

Run-time configuration slice.

The run-time endpoint is the server-to-server bootstrap surface for both the API and the website. Each target receives its own dedicated response model so the contract remains explicit even when the two callers diverge in the future.

get_run_time

@router.get(
"/run-time",
response_model=ApiRunTimeConfigDocumentResponse
| WebsiteRunTimeConfigDocumentResponse,
)
def get_run_time(
req: Request,
for_target: Annotated[str, Query(alias="for")] = "",
label: str = ""
) -> ApiRunTimeConfigDocumentResponse | WebsiteRunTimeConfigDocumentResponse | JSONResponse

Return the run-time configuration document and feature flags for the requested target.

// was this page useful?