Skip to main content
HydroGo
REST APIContent API

Content API

Read published records of your YAML content types, with search, filters, sorting and locale.

Every content type with public: true is readable without credentials. Types without it, and unknown types, both answer 404.

Method and pathDescription
GET /api/v1/content/{type}List published records.
GET /api/v1/content/{type}/{id}One published record. A draft id answers 404.

Query parameters

ParameterMeaning
limit1 to 100, default 25.
offsetRecords to skip, default 0.
sortA field id, or created_at / updated_at. Prefix with - for descending: sort=-updated_at.
searchCase-insensitive contains match across all fields marked searchable. If the type has none, the request answers 400.
filter[field]Exact match on a field marked filterable, for example filter[category]=billing. Several filters combine with AND.
localeA configured site locale. Localized fields return that locale and fall back to the default per field. Unknown locale answers 400.
Each parameter may appear once. Unsupported parameters, repeated parameters and filters on fields that are not filterable answer 400 with a message naming the problem.

Examples

# newest FAQ entries about refunds in the billing category
curl -G 'https://cms.example.com/api/v1/content/faq' \
  --data-urlencode 'search=refund' \
  --data-urlencode 'filter[category]=billing' \
  --data-urlencode 'sort=-updated_at' \
  --data-urlencode 'limit=10'
JSON
{
  "data": [
    {
      "id": "rec_8f2",
      "question": "How do refunds work?",
      "answer": "<p>…</p>",
      "category": "billing",
      "created_at": "2026-03-01T10:00:00Z",
      "updated_at": "2026-03-04T08:12:00Z",
      "locale": "en"
    }
  ],
  "metadata": { "limit": 10, "offset": 0, "has_more": false, "locale": "en" }
}

Notes

  • Rich text fields are returned as HTML ready to render.
  • Each record also contains id, created_at, updated_at and, when localization is active, locale.
  • Search, filters and sorting always use the default locale's values, even when locale asks for another.
  • Types with drafts: true only expose published records; the list is filtered server-side.
Keep secrets and private data out of public: true types. Everything in a public type is world-readable once published.