Skip to main content
Articles are the core content objects in NodeForgeCMS. Every piece of published content — a blog post, a product description, a documentation page — is an article. Articles belong to a column, carry a language code for multi-locale sites, and can be in either published or draft state. The list and single-article endpoints are public for published content; all write operations require a Bearer token.

List Articles

Returns a paginated list of articles. Supports filtering by column, language, and publication status. This is a public endpoint — no authentication is required.

Query Parameters

number
Page number to retrieve. Defaults to 1.
number
Number of items to return per page. Defaults to 10.
number
Filter results to articles belonging to the specified column ID.
string
Filter results by language code (e.g. en, zh). Returns articles of all languages when omitted.
string
Filter by publication status. Accepted values: published or draft. Unauthenticated requests should use published; omitting this parameter returns all accessible articles.

Response

The list response returns article summaries — the content (full HTML body) field is excluded for performance. Fetch a single article by ID to retrieve the full content.

Get Article by ID

Returns a single article including its full HTML content body. Published articles are publicly accessible. Draft articles require a valid Bearer token.

Path Parameters

number
required
The numeric ID of the article to retrieve.

Response


Create Article

Creates a new article. Requires a valid Bearer token.

Request Body

string
required
Article title displayed in listings, the article page, and browser tab.
string
required
Full HTML content body of the article. The CMS rich-text editor outputs standard HTML; you may also supply raw HTML directly.
string
Short excerpt (plain text) shown in article listing cards and search previews.
string
Server-relative path to the article’s cover image (e.g. /uploads/cover.jpg). Use the Media API to upload images and obtain a valid path.
number
required
The ID of the column this article belongs to. The column must exist before creating an article.
string
required
Language code for the article (e.g. en, zh, fr). Should match the language of the parent column for consistent locale filtering.
string
Publication status. Accepted values: published (visible to the public) or draft (hidden from public responses). Defaults to draft if omitted — the article will not appear in public listing responses until explicitly set to published.
string
SEO meta title rendered in <title> for the article page. Falls back to title if omitted.
string
SEO meta description rendered in <meta name="description"> for the article page.

Response


Update Article

Updates an existing article by its numeric ID. Requires a valid Bearer token.

Path Parameters

number
required
The numeric ID of the article to update.

Request Body

Accepts the same fields as Create Article. Provide all fields you wish to persist — the record will be updated with the supplied values.

Response


Delete Article

Permanently deletes an article by its numeric ID. Requires a valid Bearer token.

Path Parameters

number
required
The numeric ID of the article to delete.

Response

Article deletion is permanent and irreversible. There is no trash or soft-delete mechanism — once deleted, the article and its content cannot be recovered. Consider setting status to draft to hide content without permanently removing it.