Skip to main content

/o/cms/entries

Endpoint

/o/cms/entries

Overview

Read CMS cache entries for a supported API ID.

Authentication

  • API Key (parameter): api_key=YOUR_API_KEY
  • Auth Token (parameter): auth_token=YOUR_AUTH_TOKEN
  • Auth Token (header): countly-token: YOUR_AUTH_TOKEN

Permissions

  • Requires authenticated dashboard user access.

Request Parameters

ParameterTypeRequiredDescription
api_keyStringYes (or use auth_token)Dashboard API authentication key.
auth_tokenStringYes (or use api_key)Dashboard auth token.
_idStringYesCMS API ID. Allowed values: server-guides, server-consents, server-intro-video, server-quick-start, server-guide-config.
queryJSON String (Object)NoOptional filter object merged into cache lookup logic. Invalid JSON is ignored.

Configuration Impact

SettingDefaultAffectsUser-visible impact
config.enableGuidesServer config valueResponse data enrichmentFor _id=server-guide-config, response data[0].enableGuides falls back to this config value when missing/falsy in cached data.

Response

Success Response

{
"data": [
{
"_id": "server-guides_1",
"title": "Getting Started",
"body": "Welcome",
"lu": 1771232910
}
]
}

Response Fields

FieldTypeDescription
dataArrayMatching CMS cache entries for the requested API ID.
data[]._idStringCache entry ID.
data[].luNumberLast-updated timestamp (milliseconds since epoch).
data[].*Any JSON typeEntry payload fields saved in cache.

Error Responses

Status Code: 400 Bad Request

{
"result": "Missing or incorrect API _id parameter"
}

Status Code: 400 Bad Request

{
"result": "Missing parameter \"api_key\" or \"auth_token\""
}

Status Code: 500 Internal Server Error

{
"result": "An error occured while fetching CMS entries from DB: Database query failed"
}

Behavior/Processing

Behavior Modes

ModeTriggerProcessing PathResponse Shape
Standard readValid _id with or without queryLoads matching entries from cms_cache, removes _meta entry from output, returns data array.Raw object: { "data": [...] }
Query parse fallbackInvalid query JSONIgnores query filter and performs standard _id-prefix lookup only.Raw object: { "data": [...] }
Guide-config enrichment_id=server-guide-config and at least one data rowApplies enableGuides fallback from server config when response field is missing/falsy.Raw object: { "data": [...] }

Impact on Other Data

  • This endpoint is read-only and does not modify stored data.

Database Collections

CollectionUsed forData touched by this endpoint
countly.membersAuthentication validationReads member identity for access validation.
countly.cms_cacheCMS cache sourceReads cached entries by _id prefix (and optional query conditions).

Examples

Example 1: Read guides entries

/o/cms/entries?api_key=YOUR_API_KEY&_id=server-guides

Example 2: Read guide-config with filter

/o/cms/entries?api_key=YOUR_API_KEY&_id=server-guide-config&query={"platform":"server"}

Limitations

  • _id must be one of the supported API IDs.
  • Invalid query JSON does not return a parse error; it is ignored.

Last Updated

2026-02-17