Python-connected page
Case index and server status.
This is the working example for pages that need code. It uses a small JavaScript API helper and can call your Flask server through a Cloudflare Pages Function.
Connection
Not checked
Python API
Use the button to test the configured health endpoint.
Find a case record
Q-014Reviewing
North hall audio
Last updatedIntegration pattern
The browser never receives your server secret.
The page calls /api on the same domain. A Cloudflare Pages Function forwards only approved routes to your Python service and adds a server-side shared token.
const record = await SiteApi.getCase("Q-014");
console.log(record.title);