Skip to content

Related API collections

The cms-cf-worker itself exposes no public REST API to test with Postman -- its only HTTP surface is the rendered pages plus the two admin endpoints (POST /__cms/purge and GET /__cms/health, see Deploy and purge). The APIs the worker depends on live in sibling repositories, and those repos carry their own collections and reference docs.

cms-api (the CMS the worker renders from)

The worker fetches every site's settings, page descriptors, content, and CSS from the cms-api public v2 API (/public/v2/..., via cmsFetch). The cms-api repo ships a comprehensive, import-and-run Postman collection (admin + public v2, every endpoint with example payloads) plus the OpenAPI specs, all served from its own docs site:

Artifact Location (in the cms-api repo)
Full API collection (admin + public v2) docs/postman/cms-api.postman_collection.json
Postman environments (local / stg / prd) docs/postman/cms-api-*.postman_environment.json
Collection guide (variables + import steps) docs/api-collection.md
Admin API OpenAPI spec docs/openapi-admin.yaml
Public API OpenAPI spec docs/openapi-public.yaml
Public v2 API guide docs/public-v2-api.md
Styles and templates guide docs/styles-and-templates.md

The collection's Public v2 folder is the one to reach for when debugging what the worker sees: it exercises the same /public/v2/sites/<id>/settings, /public/v2/styles/<slug>/css, and /public/v2/templates/<slug>/css endpoints the worker calls. See Styles and CSS and Caching for how the worker consumes them.

cms-ai-forge (the content generator)

cms-ai-forge is the AI generation task-processor. It does not serve the worker any request-time API -- it writes to the CMS only through cms-api's /admin/v1 service-account endpoints and owns its own MySQL -- but it does expose a small control-plane API (POST /jobs, GET /jobs/{id}) for enqueuing generation jobs, and ships its own Postman collection covering every intent:

Artifact Location (in the cms-ai-forge repo)
Job control-plane collection (all intents) docs/postman/cms-ai-forge.postman_collection.json
Collection guide docs/api-collection.md
Intents reference docs/intents.md
Generation / configuration guides docs/generation.md, docs/configuration.md

It matters to this worker as the upstream that publishes the content and branding (icon_url / default_favicon, see branding in the request lifecycle) that this worker then renders.