Skip to Content

Articles

Read your organisation's published articles as JSON blocks or HTML, and keep them in sync.

If your organisation publishes articles in the CIXTRA console, your key reads them: as JSON blocks to render in your own design, or as neutral HTML. Only published articles are delivered, and only your organisation's own (with includeSubOrgs=true also those of your sub-organisations). Articles cost no credits.

EndpointReturns
GET /articlesPublished articles, newest publication first.
GET /articles/{slug}One article as JSON.
GET /articles/{slug}/renderOne article as HTML (text/html): semantic markup with stable cixtra- classes and minimal structural CSS; typography and colours stay yours.
GET /articles/withdrawnArticles that are no longer delivered (for syncing).

Parameters of GET /articles:

ParameterMeaning
langLanguage of the texts (Languages). Without it, each article in its original language.
channelOnly articles in this channel: the slug of one of your organisation's channels, as the console shows it (e.g. web).
sectionOnly articles in this section: the slug of one of your sections (e.g. music).
tagOnly articles with exactly this tag.
includeSubOrgstrue / false (and the other boolean values of Parameters).
updatedSinceOnly articles changed or gone live at or after this instant.
page, limitPage from 1; limit 1 to 50, default 20. hasMore is exact.
curl -s "https://api.cixtra.app/api/v1/articles?lang=en&channel=web&limit=20" \
  -H "X-API-Key: sk_org_your_key"
{
  "data": [
    {
      "id": "5d1e0c2a-7b3f-4c8e-9a10-2b3c4d5e6f70",
      "slug": "winter-serenades-in-the-library",
      "title": "Winter serenades in the library",
      "excerpt": "Four evenings of chamber music by candlelight.",
      "coverImage": null,
      "channels": ["web", "newsletter"],
      "sections": ["music"],
      "tags": ["Chamber music", "Advent"],
      "lang": "en",
      "availableLangs": ["de", "en"],
      "publishedAt": "2026-11-20T08:00:00.000Z",
      "updatedAt": "2026-11-21T09:12:44.000Z",
      "document": { "sections": [] }
    }
  ],
  "pagination": { "limit": 20, "page": 1, "hasMore": false }
}
  • channels and sections are the slugs of the channels and sections your organisation assigned to the article; tags are its free tags.
  • lang is the language you asked for (or the original language); availableLangs lists the languages the article has text in. A text missing in your language falls back to the original language; Content-Language names only languages that were actually served.
  • document holds the article's sections and blocks, already resolved for delivery: texts in one language, images with url and credits as in Images and credits, linked events as snapshots. coverImage has the same image fields. Show the credits.
  • document.design is optional and only present when the article's style sets a form: corners (corner radius of boxes: none, sm, md, lg, xl), imageCorners (images without their own radius: none, sm, md, lg), border (frame width of boxes: none, 1–4), boxPadding (inner padding of boxes: none, sm, md, lg, xl). A missing field means the standard look. A block's own style wins over these values. The HTML output already applies them.
  • An entity block may carry imagePosition (top, bottom, left, right), imageSize (sm, md, lg) and imageAspect (landscape, square, portrait). They place the image of its cards (layouts grid, featured, inline) and of the info style card. Beside the text, the size is the image width (about 80, 130 or 220 px, at most 30, 40 or 50 % of the box) and the aspect gives its height. Above the text, the image spans the box at its aspect, at most about 128 px (sm) or 220 px (md) high; lg is not capped. Missing fields mean the layout's own composition. The HTML output already applies them.
  • The JSON and the HTML carry an ETag per key; send it in If-None-Match to get 304 (Caching with ETag).

Keeping articles in sync. Read GET /articles?updatedSince=<last T> for new and changed articles (an article whose scheduled publication time passed counts as changed), then GET /articles/withdrawn?since=<last T> for those to remove:

{
  "data": [
    { "id": "5d1e0c2a-7b3f-4c8e-9a10-2b3c4d5e6f70", "slug": "winter-serenades-in-the-library", "withdrawnAt": "2026-11-22T10:04:31.000Z" }
  ],
  "pagination": { "limit": 50, "page": 1, "hasMore": false }
}

An article is withdrawn when it was live and is now unpublished, archived, deleted or moved to a later publication date; withdrawnAt is when that happened, oldest first. since is required; page and limit (1 to 100, default 50) page as above, and includeSubOrgs works as on the list. An article that comes back shows up in updatedSince again. The withdrawn list does not look at channels, sections or tags: if you filter by channel, section or tag, compare the channels, sections and tags of changed articles too.