profound-logoProfound CMS
⌘K
Admin
Theme
DocsTutorialBlogPhilosophy
DocsTutorialBlogPhilosophy

Hybrid

Parametriskā maršrutēšanaKomponentu veidiSetup server sent events (SSE) content refetchIestatīt administratora paneļa starpniekserveriSkriptēšana veidņu veidotājāProject ScaffoldingMultivides bibliotēka

Headless

Ātrā uzsākšanaSplit Screen JSON Component Builder with LLMComponent Zod Pull

REST API

REST API OverviewgetConnect your websitegetSaņemt maršrutusgetGET /routegetGET /blocksgetGET /blocks/with-cel-cachegetGET /blocks/generatedgetGET /componentsgetGET /components/{name}getGET /dataset/{schema_name}getGET /content-changes (SSE)patchPATCH /dataset/{schema_name}postPēctulkošanapatchTulkojumu labojumigetGET /usagepostPOST /csvpatchPATCH /csv
All Systems Operational
Powered Byprofound-logo
Theme

GET /blocks

Iegūst blokus pēc ID pieprasījuma secībā, ar atrisinātām attēlu norādēm.

Iegūst blokus tīmekļa vietnei pēc ID, ar attēlu norādēm, kas atrisinātas uz URL. Bloki tiek atgriezti tajā pašā secībā kā pieprasītie ids; nezināmie ID tiek klusi izlaisti.

Autentifikācija: API atslēga (x-api-key galvene vai api_key vaicājuma parametrs).

Vaicājuma parametri

ParametrsTipsObligātsPiezīmes
websiteIduuidnēMērķa tīmekļa vietne; ja nav norādīts, izmanto Host galveni / konfigurāciju.
idsstringnēAr komatu atdalīti bloku UUID. Tukšs vai neesošs → [].
api_keystringnēAlternatīva x-api-key galvenei.

Atbilde

JSON masīvs ar blokiem:

[
  {
    "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"
  }
]

Piemērs

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

Kļūdas

  • 400 — nederīgs UUID laukā ids vai neatrisināma tīmekļa vietne
  • 401 — nederīga API atslēga
Continue Reading
Previous‹GET /routeNextGET /blocks/with-cel-cache›