Přeskočit na obsah

Endpointy (přehled)

Base: https://api.contenta.cz/api/v1/public/sites/<slug>. Hlavička X-Site-Key. Envelope { data } (u seznamů { data, meta:{nextCursor,hasMore} }).

EndpointVrací — klíčová pole
/site-configbrand, theme, hero, services, about, gallery, menu, footer, nav[], pages[], modules[], urlPaths, settings, turnstileSiteKey
/posts · /posts/:slugslug, title, perex, coverSrc, coverAlt, date, category{slug,name}, author{slug,name,role,photoSrc}; detail navíc bodyHtml, coverInDetail, seo
/categoriesslug, name, href, tagline, description, postCount, accent
/authors · /authors/:slugslug, name, role, photoUrl, initials, tagline, bioHtml, credentials[]; detail navíc posts[]
/glossary/terms · …/:slugslug, term, aliases[], shortDef, category{slug,name}; detail longDefHtml, sourceUrl, relatedTermSlugs[]
/glossary/categorieskategorie pojmů
/pages · /pages/:slugslug, href, title, updatedAt; detail perex, sections[{title,bodyHtml}], seo
/jobs · /jobs/:slugslug, title, perex, jobType, employment, location, remote, status; detail bodyHtml, requirements[], offers[], compensation, contactEmail
/comments?postSlug={ count, comments[{ id, authorName, body, isStaff, createdAt, replies[] }] }
/search-indexagregát všech kindů pro klientský fulltext
/redirectspřesměrování (na edge / _redirects)

Redakční (profil EDITORIAL): /articles(/:slug), /magazine(/:slug), /interviews(/:slug), /eshops(/:slug), /brands(/:slug), /updates.

EndpointPole (výběr)
/commentspostSlug, authorName, authorEmail, body, parentId?, website
/forms/contactname, email, subject?, body(≥10), website?
/forms/leadname, email, phone?, company?, message(≥10), consent:true, turnstileToken?, website?
/forms/newsletteremail, consent:true, website?
/forms/job-applicationname, email, jobSlug, message, consent:true, website?
/forms/error-reportarticleSlug, body(≥10), email?, page?, website?

bodyHtml a sections[].bodyHtml jsou vždy hotové, sanitizované HTMLset:html. Nemusíš parsovat žádné bloky.