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/generated

Fetch AI-generated content and layout for a set of block IDs.

Fetch AI-generated content and layout for the given block IDs from the generated_blocks table.

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

Query parameters

ParamTypeRequiredNotes
websiteIduuidnoTarget website; falls back to Host header / config. Only checked when blockIds is non-empty.
blockIdsstringnoComma-separated block UUIDs. Empty or missing β†’ empty object.
api_keystringnoAlternative to the x-api-key header.

Response

{
  "generatedBlocks": {
    "<block_id>": {
      "id": "...",
      "generated_content": {},
      "generated_layout": {},
      "schema_name": "hero-block",
      "status": "ready"
    }
  }
}

The outer map is keyed by the requested block_id; the inner id is the generated row's own id.

Example

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

Errors

  • 400 β€” invalid UUID in blockIds, or unresolvable website
  • 401 β€” invalid API key
Continue Reading
Previousβ€ΉGET /blocks/with-cel-cacheNextGET /componentsβ€Ί