Skip to main content

Data Manager Validations - Read Unresolved

Enterprise Only This API is available exclusively in Countly Enterprise.

Endpoint

/o/data-manager/validations

Overview

Returns unresolved validation records for an app.

Authentication

Countly API supports three authentication methods:

  1. API key query parameter: api_key=YOUR_API_KEY
  2. Auth token query parameter: auth_token=YOUR_AUTH_TOKEN
  3. Auth token header: countly-token: YOUR_AUTH_TOKEN

Permissions

Requires data_manager Read permission.

Request Parameters

ParameterTypeRequiredDescription
app_idStringYesTarget app ID.
api_keyStringConditionalRequired if auth_token is not provided.
auth_tokenStringConditionalRequired if api_key is not provided.

Parameter Semantics

FieldExpected valuesBehavior
app_idValid app IDResolves app-scoped validation collection and returns unresolved records for that app only.

Response

Success Response

[
{
"_id": "67b85e7a9f2d3e0012ab9c10",
"event": "purchase",
"target": "segment",
"type": "unexpected",
"segment": "country",
"resolved": false
}
]

Response Fields

FieldTypeDescription
[]ArrayUnresolved validation records from validation_errors_{app_id}.
[] ._idStringValidation record ID.
[] .eventStringEvent key tied to validation.
[] .targetStringValidation target (event or segment).
[] .typeStringValidation type (for example unexpected, unplanned, GLOBAL_REGEX).
[] .segmentStringSegment key when target is segment.
[] .resolvedBooleanResolution state (always not true in this endpoint output).

Error Responses

  • 500
{
"result": "Error"
}

Behavior/Processing

Behavior Modes

ModeTriggerProcessing PathResponse Shape
Read unresolvedAlwaysReads validation_errors_{appId} with filter { resolved: { $ne: true } }.Array of validation records

Impact on Other Data

  • Read-only endpoint; no write/update side effects.

Audit & System Logs

  • This endpoint does not emit /systemlogs actions.

Database Collections

CollectionUsed forData touched by this endpoint
countly.validation_errors{appId}Unresolved validation sourceReads unresolved validation records (resolved != true) for the target app.

Examples

/o/data-manager/validations?
app_id=64f5c0d8f4f7ac0012ab3456

Operational Considerations

  • Collection name is app-scoped (validation_errors_{app_id}), so large validation backlogs can increase response size.

Limitations

  • No pagination in this endpoint; all unresolved records are returned.


Last Updated

2026-02-16