profound-logoProfound CMS
⌘K
Admin
Theme
DocsTutorialBlogPhilosophy
DocsTutorialBlogPhilosophy

Hybrid

Collection of Pages with ComponentsTypes of ComponentsSetup server sent events (SSE) content refetchAdminipaneeli puhverserveri seadistamineCEL Scripting in Template BuilderProject ScaffoldingMedia Library

Headless

KiirkÀivitusSplit Screen JSON Component Builder with LLMComponent Zod Pull

RESTi API

REST API OverviewgetConnect your websitegetMarsruutide hankiminegetGET /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

Too plokid ID jÀrgi pÀringu jÀrjekorras, piltide viited teisendatakse URL-ideks.

Too plokid veebisaidi ID jÀrgi, teisendades piltide viited URL-ideks. Plokid tagastatakse samas jÀrjekorras nagu pÀringus olevad ids; tundmatud ID-d jÀetakse vaikselt vahele.

Autentimine: API-vÔti (x-api-key pÀis vÔi api_key pÀringuparameeter).

PĂ€ringu parameetrid

ParameeterTĂŒĂŒpNĂ”utavMĂ€rkused
websiteIduuideiSihtveebisait; vajaduse korral tuginetakse Host pÀisele / seadistusele.
idsstringeiKomaga eraldatud plokkide UUID-d. TĂŒhi vĂ”i puuduv → [].
api_keystringeiAlternatiiv x-api-key pÀisele.

Vastus

Plokkide JSON-massiiv:

[
  {
    "id": "...",
    "website_id": "...",
    "schema_id": "...",
    "draft_content": {},
    "published_content": {},
    "state": "published",
    "version": 3,
    "schema_name": "hero-block",
    "layout": {},
    "cloned_from_id": null,
    "created_at": "2026-06-23T18:34:16Z",
    "updated_at": "2026-06-23T20:36:55Z"
  }
]

NĂ€ide

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

Vead

  • 400 — vigane UUID vĂ€ljal ids vĂ”i lahendamata veebisait
  • 401 — kehtetu API-vĂ”ti
Continue Reading
Previousâ€čGET /routeNextGET /blocks/with-cel-cacheâ€ș