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.
| Endpoint | Returns |
|---|---|
GET /articles | Published articles, newest publication first. |
GET /articles/{slug} | One article as JSON. |
GET /articles/{slug}/render | One article as HTML (text/html): semantic markup with stable cixtra- classes and minimal structural CSS; typography and colours stay yours. |
GET /articles/withdrawn | Articles that are no longer delivered (for syncing). |
Parameters of GET /articles:
| Parameter | Meaning |
|---|---|
lang | Language of the texts (Languages). Without it, each article in its original language. |
channel | Only articles in this channel: the slug of one of your organisation's channels, as the console shows it (e.g. web). |
section | Only articles in this section: the slug of one of your sections (e.g. music). |
tag | Only articles with exactly this tag. |
includeSubOrgs | true / false (and the other boolean values of Parameters). |
updatedSince | Only articles changed or gone live at or after this instant. |
page, limit | Page 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 }
}channelsandsectionsare the slugs of the channels and sections your organisation assigned to the article;tagsare its free tags.langis the language you asked for (or the original language);availableLangslists the languages the article has text in. A text missing in your language falls back to the original language;Content-Languagenames only languages that were actually served.documentholds the article's sections and blocks, already resolved for delivery: texts in one language, images withurland credits as in Images and credits, linked events as snapshots.coverImagehas the same image fields. Show the credits.document.designis 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 ownstylewins over these values. The HTML output already applies them.- An entity block may carry
imagePosition(top,bottom,left,right),imageSize(sm,md,lg) andimageAspect(landscape,square,portrait). They place the image of its cards (layoutsgrid,featured,inline) and of the info stylecard. 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;lgis not capped. Missing fields mean the layout's own composition. The HTML output already applies them. - The JSON and the HTML carry an
ETagper key; send it inIf-None-Matchto get304(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.