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

Saņemt maršrutus

Uzskaita tīmekļa vietnes maršrutus, sadalītus lapās, ar efektīvajiem bloka ID.

Uzskaita tīmekļa vietnes maršrutus, sadalītus lapās un pēc izvēles filtrētus pēc statusa un raksta. Maršruti ar tukšiem block_ids tiek aizpildīti no atbilstošā dinamiskā noklusējuma maršruta, tāpēc atgrieztie block_ids ir efektīvie renderējamie bloki.

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

Vaicājuma parametri

ParametrsTipsObligātsPiezīmes
websiteIduuidjāMērķa tīmekļa vietne.
api_keyvirknenēAlternatīva x-api-key galvenei.
statevirknenēFiltrē pēc maršruta statusa (precīza atbilstība).
patternvirknenēDaļējas atbilstības meklēšana maršruta rakstā (LIKE, aizstājējzīmes tiek maskētas).
limitvesels skaitlisnēLapas izmērs, noklusējums 50, ierobežots 1–100.
offsetvesels skaitlisnēIzlaižamo rindu skaits, noklusējums 0.

Rezultāti tiek kārtoti pēc updated_at DESC.

Atbilde

{
  "routes": [
    {
      "website_id": "...",
      "path": "/docs/getting-started",
      "pattern": "/docs/getting-started",
      "label": "Darba sākšana",
      "tags": [],
      "block_ids": ["..."],
      "template_block_ids": ["..."],
      "override_mode": "sapludināt",
      "state": "Tiešsaistē",
      "param_bindings": {},
      "created_at": "2026-06-23T18:34:16Z",
      "updated_at": "2026-06-23T20:36:55Z"
    }
  ],
  "total": 42,
  "hasMore": true
}

total ir pilns filtrētais skaits; hasMore ir offset + limit < total. label, param_bindings, template_block_ids un override_mode tiek izlaisti vai ir null, ja nav iestatīti.

Piemērs

curl '{CMS_API_URL}/routes?websiteId=<uuid>&limit=20' \
  -H 'x-api-key: <key>'

Kļūdas

  • 400 — trūkst vai ir nederīgs websiteId
  • 401 — nederīga API atslēga (vai trūkst, ja serveris to pieprasa)
Continue Reading
Previous‹Connect your websiteNextGET /route›