Manage content management pages, publishing, and page-related operations in the CMS system.
/api/cms-pages
The CMS Pages API provides endpoints for managing website pages including creation, editing, publishing, and public content delivery. Supports draft/published workflows and public page access.
Creates a new CMS page in draft status.
{
"title": "About RackNap",
"slug": "about-racknap",
"content": "Welcome to RackNap
Cloud distribution platform...
",
"metaTitle": "About RackNap",
"metaDescription": "Learn more about RackNap cloud platform",
"status": "draft"
}
{
"id": "page_123",
"title": "About RackNap",
"slug": "about-racknap",
"status": "draft",
"createdAt": "2026-06-02T10:30:00Z"
}
Gets CMS page details by ID.
| Parameter | Type |
|---|---|
| id | string |
{
"id": "page_123",
"title": "About RackNap",
"slug": "about-racknap",
"content": "Welcome to RackNap
Cloud distribution platform...
",
"metaTitle": "About RackNap",
"metaDescription": "Learn more about RackNap cloud platform",
"status": "draft",
"createdAt": "2026-06-02T10:30:00Z"
}
Gets all CMS pages with filtering and pagination.
| Parameter | Type | Description |
|---|---|---|
| $filter | string | OData filter expression |
| $skip | integer | Skip n records |
| $top | integer | Take n records |
{
"value": [
{
"id": "page_123",
"title": "About RackNap",
"slug": "about-racknap",
"status": "published",
"createdAt": "2026-06-02T10:30:00Z"
}
],
"count": 50
}
Updates CMS page details.
{
"title": "About RackNap - Updated",
"content": "Welcome to RackNap
Updated content...
",
"metaDescription": "Updated description"
}
{
"id": "page_123",
"title": "About RackNap - Updated",
"status": "draft",
"updatedAt": "2026-06-02T11:00:00Z"
}
Soft deletes a CMS page.
{
"success": true,
"message": "Page deleted"
}
Publishes a draft page for public access.
{
"id": "page_123",
"status": "published",
"publishedAt": "2026-06-02T11:05:00Z"
}
Gets published page content (no authentication required).
| Parameter | Type | Description |
|---|---|---|
| slug | string | Page URL slug |
{
"id": "page_123",
"title": "About RackNap",
"slug": "about-racknap",
"content": "Welcome to RackNap
Cloud distribution platform...
",
"metaTitle": "About RackNap",
"metaDescription": "Learn more about RackNap cloud platform"
}
Gets published page by URL slug path.
| Parameter | Type |
|---|---|
| pageUrl | string |
{
"id": "page_123",
"title": "About RackNap",
"slug": "about-racknap",
"content": "Welcome to RackNap
Cloud distribution platform...
"
}
| Code | HTTP Status | Description |
|---|---|---|
| PAGE_NOT_FOUND | 404 | Page does not exist |
| INVALID_SLUG | 400 | Invalid page slug format |
| DUPLICATE_SLUG | 409 | Page slug already exists |
| CANNOT_PUBLISH | 400 | Page is missing required fields for publishing |