← Master Index
CMS & Integrations

API Reference

The endpoints the Connected CMS reads and writes. A reference for whoever wires the front end (or Claude Code) to the content store. Shapes mirror the CMS data model: pages, content, the content calendar, projects, and settings.

Doc 26 / 32Group CMS & IntegrationsBase /api

Field note. This documents the intended contract — the demo CMS runs on an in-browser store. Point the same shapes at your real backend (Barcelona or otherwise) and the UI doesn't change.

01Authentication

All write endpoints expect a bearer token. Reads on published content are public.

# Header on every authenticated request
Authorization: Bearer <token>
Content-Type: application/json

02Content Calendar

The 30-day marketing run. Feeds the ContentCalendar component and the 30-Day Run page.

MethodPathPurpose
GET/api/marketing/calendarAll entries, sorted by day.
GET/api/marketing/calendar/:dayOne day's entry.
PUT/api/marketing/calendar/:dayUpdate topic, hook, caption, CTA, status.
// Calendar entry shape
{
  "day": 1,
  "week": "1 · Local data",
  "category": "Local",
  "topic": "Kingman is mobile-first",
  "hook": "Most of your neighbors are reading this on a phone.",
  "caption": "…",
  "cta": "[ Read more ]",
  "promptRef": "PAM-01",
  "status": "scheduled"   // draft | approved | scheduled | posted | archived
}

03Content & Pages

MethodPathPurpose
GET/api/contentList posts, press releases, case studies. Filter by ?type= and ?status=.
POST/api/contentCreate a content item.
PUT/api/content/:idUpdate an item.
GET/api/pagesList site pages (slug, title, meta, status).
POST/api/pagesCreate a page.

04Projects & Settings

MethodPathPurpose
GET/api/projectsKanban projects and their tasks.
GET/api/settingsSite name, tagline, brand colors, social links.
PUT/api/settingsUpdate global settings.

05Conventions

For the full build sequence and collection setup, see the CMS Build Plan and Wiring Guide.