Skip to main content

v0 and the Public Center API — Step by Step (even without a Developer Background)

Complete from A–Z (Editorial, comprehensible): v0 Website A–Z (for Editorial).

Editorial / Project Management: v0 + Cockpit (How to do it) — just steps; Instructions D, A, B, C, E due to v0 limit 10×5000 characters (Part D = mandatory workflow, first; E = performance).

This page is for anyone who needs to "sketch" a website or app with v0 that loads real Center data from the cockpitOS dashboard. Technical details (deploy, environment variables) are explicitly outsourced — to clarify what you do in v0 and what a technician will handle.

Not the right thing? If you only want a new design for the cockpit as a ZIP template (upload to the dashboard, same pages as the Center website), use the path under Templates — Intro — there is the pure content creator guide.


Brief: Who Does What?

RoleTask
You (Concept / v0)Operate v0: Insert reference images, provide large API context, describe Slug & wishes, iterate design
Technical (Agency/IT)Deploy project on e.g. Vercel, set DASHBOARD_API_URL, check initial API calls, test error pages

Without a technical person, the completed, publicly accessible website usually cannot reliably go online — v0 delivers code, but hosting and configuration are manual tasks.


Step 1 — Preparation (5 Minutes)

  1. v0 Account — e.g. v0.dev (or v0 in Cursor, if your team uses it that way).
  2. Know the Center Slug — the short name in the URL (e.g. example-center), as it is created in the cockpit. Optionally: a test domain, if you want to use by-domain later.
  3. Clarify the API Base URL — usually production: https://dashboard.cockpit-os.de. Staging only if your technical team explicitly specifies a different URL.

Step 2 — Insert the "API Context" into v0

  1. Open the Cockpit documentation for the Public Center Website API — Contract.
  2. Scroll to "Copy-Paste: Context for v0 / AI".
  3. Copy the entire text block (from "Build a public Center website…" to the notes at the end).
  4. In v0: New chat → paste the block as the first large message.
  5. Add in natural language, for example:
    • “Use the API base as follows: …” (your clarified URL from step 1)
    • “Center Slug for all examples: …”
    • “Start with homepage + shop list; map/wayfinding later.”

This way, v0 knows which URLs to use and in what order you want to proceed.


  1. Screenshots of websites you like (hero, maps, footer — like in the ZIP templates).
  2. Place images in the same v0 chat or briefly describe: “light, large typography, plenty of whitespace”.
  3. Adjust: “make navigation smaller,” “more contrast” — normal v0 language, no jargon needed.

Step 4 — Hand Over to Technical (Checklist)

Provide your technical person with at least:

  • the exported code from v0 (ZIP / repo link, depending on workflow);
  • the API base URL and whether it's staging or production;
  • the Center Slug or the domain for by-slug / by-domain;
  • a note regarding the API contract (CORS, 429 on chat/routing POST, different JSON formats).
  • optional per company standard — per Center: own GitHub repo in the organization sawmuedev + own Vercel project, access for employees via GitHub account; complete guide: v0 Website A–Z, Section F2 (GitHub & Vercel).

The technical team should briefly read the contract — especially error codes and the process Slug → centerId.


Step 5 — What You Should Test After Launch (without Code)

  • Homepage loads, no empty page / no continuous loading bar.
  • Shops or news visible (depending on what you built first).
  • Mobile briefly check (layout not "broken").
  • If chat or wayfinding is integrated: with a lot of clicks, a brief “Waiting” may appear (rate limits) — that’s protection against abuse, not a Center error.

Common Misunderstandings

  • “v0 has connected everything” — v0 generates code that should use fetch; whether the URL in the running environment is correct is checked by the technical team (environment variables).
  • “The same as ZIP template” — No: ZIP templates are uploaded to the cockpit and linked to the existing Center website. The public API is for own deployments (own domain, own Next.js code).
  • “Everything is free without limit” — Chat and routing endpoints can return 429 with extremely high requests; regular visitors are rarely affected.

Further Reading

Nutzungsstatistik: Seitenaufrufe werden anonymisiert erfasst. Im Umami-Dashboard nach diesem Pfad filtern: /en/developer-guide/v0-mit-oeffentlicher-api-anleitung