profound-logoProfound CMS
⌘K
Admin
Theme
DocsTutorialBlogPhilosophy
DocsTutorialBlogPhilosophy

Hybrid

Collection of Pages with ComponentsTypes of ComponentsSetup server sent events (SSE) content refetchInstall Profound CMS as a proxyCEL Scripting in Template BuilderProject ScaffoldingMedia Library

Headless

Quick startSplit Screen JSON Component Builder with LLMComponent Zod Pull

REST API

REST API OverviewgetConnect your websitegetGET /routesgetGET /routegetGET /blocksgetGET /blocks/with-cel-cachegetGET /blocks/generatedgetGET /componentsgetGET /components/{name}getGET /dataset/{schema_name}getGET /content-changes (SSE)patchPATCH /dataset/{schema_name}postPOST /translationpatchPATCH /translationsgetGET /usagepostPOST /csvpatchPATCH /csv
All Systems Operational
Powered Byprofound-logo
Theme

GET /blocks/with-cel-cache

Fetch blocks and merge evaluated field-level CEL scripts into published content.

Like GET /blocks, but additionally evaluates the field-level CEL scripts registered for each block and merges the results into each block's published_content. Use this when blocks contain computed fields.

Auth: API key (x-api-key header or api_key query param).

Query parameters

ParamTypeRequiredNotes
websiteIduuidnoTarget website; falls back to Host header / config.
blockIdsstringnoComma-separated block UUIDs. Note: blockIds, not ids.
routePathstringnoRoute path for the CEL meta context.
paramsstringnoURL-encoded JSON object of route params, e.g. {"code":"JFK"}.
localestringnoLocale for meta.locale and translated lookups. Default en.
api_keystringnoAlternative to the x-api-key header.

Response

{
  "blocks": [
    {
      "id": "...",
      "schema_name": "hero-block",
      "published_content": {},
      "cached_fields": ["hero.title", "hero.subtitle"]
    }
  ]
}

Each element is a block (same fields as GET /blocks) plus an optional cached_fields array listing the dot-paths populated by CEL. cached_fields is omitted when nothing was computed. CEL is only merged when the block has non-null published_content.

Example

curl '{CMS_API_URL}/blocks/with-cel-cache?websiteId=<uuid>&blockIds=<id1>,<id2>&locale=en' \
  -H 'x-api-key: <key>'

Errors

  • 400 β€” invalid UUID in blockIds, or unresolvable website
  • 401 β€” invalid API key
  • 500 β€” CEL engine failure
Continue Reading
Previousβ€ΉGET /blocksNextGET /blocks/generatedβ€Ί