Skip to main content
HydroGo
REST APIPages and news

Pages and news

List and read published pages and news articles, with curl and @hydrohq/client examples.

Pages

Method and pathDescription
GET /api/v1/pages?locale=en&limit=20List published page summaries. limit is 1 to 100.
GET /api/v1/pages/by-slug?locale=en&slug=aboutOne published page, with query-string parameters.
GET /api/v1/pages/{locale}/{slug}The same page with path segments.
curl 'https://cms.example.com/api/v1/pages/by-slug?locale=en&slug=about'
JSON
{
  "data": {
    "id": "pg_01",
    "locale": "en",
    "slug": "about",
    "title": "About us",
    "body": "<p>…</p>",
    "blocks": [ { "type": "hero", "payload": { "heading": "Hello" } } ],
    "status": "published",
    "version": 7,
    "revision": 12,
    "published_revision": 12,
    "publication_generation": 3,
    "created_at": "2026-01-10T09:00:00Z",
    "updated_at": "2026-02-02T14:30:00Z"
  }
}

List responses contain summaries only (id, locale, slug, title, revision, publication_generation, updated_at), which makes them cheap to use for navigation and sitemaps. Fetch the full page by slug.

News

Method and pathDescription
GET /api/v1/news?locale=en&limit=20&category=productList published articles. locale is required; category is optional.
GET /api/v1/news/by-slug?locale=en&slug=launchOne published article.
GET /api/v1/news/{locale}/{slug}The same article with path segments.
POST /api/v1/news/views, GET /api/v1/news/viewsRecord and read article view counts.
curl 'https://cms.example.com/api/v1/news?locale=en&limit=5&category=product'

An article carries id, locale, slug, title, body and, when set, excerpt, category, author_name, tags, cover_media_id, seo_title, seo_description, featured, scheduled_at, expires_at, plus revision and updated_at.

Scheduled publishing and retraction

News supports scheduled publishing (scheduled_at) and expiry (expires_at). Articles appear in the API when their schedule arrives and disappear when they are retracted or expire, without any rebuild. Each of these events can fire a webhook.

Use GET /api/v1/pages?locale=… and GET /api/v1/news?locale=… to generate your sitemap and navigation. They return updated_at for <lastmod>.

Errors you will see

CaseStatus
Unknown slug or unpublished item404
Missing locale on news list400
limit outside 1 to 100400