Skip to main content

Export events for populator template

Enterprise Only
This API is available exclusively in Countly Enterprise.

Endpoint

/i/data-manager/export-event-to-populator

Overview

Exports event/segment template data as a downloadable JSON file for populator usage.

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.

Configuration Impact

SettingDefaultAffectsUser-visible impact
drill.list_limitSystem defaultMaximum number of segmentation values exported per segmentExport output truncates each segment's value list to this limit.

Response

Success Response

[
{
"name": "populator",
"data": [
{
"name": "Events Export Scheme(6991c75b024cb89cdc04efd2)",
"isDefault": false,
"events": [
{
"key": "Playback Started",
"duration": {
"isActive": false,
"minDurationTime": 0,
"maxDurationTime": 0
},
"sum": {
"isActive": false,
"minSumValue": 0,
"maxSumValue": 0
},
"segmentations": [
{
"key": "Content Type",
"values": [
{ "key": "Movie", "probability": "100" }
]
}
]
}
]
}
]
}
]

Note: the endpoint returns this JSON as downloadable file content (Content-Type: text/json + attachment headers), not inside a result wrapper.

Response Fields

FieldTypeDescription
[]ArrayPopulator template containers.
[].nameStringTemplate name (currently populator).
[].data[]ArrayExport bundles.
[].data[].events[]ArrayExported event definitions for populator.
[].data[].events[].segmentations[]ArraySegment groups and values per exported event.

Error Responses

  • 401
{
"result": "No app_id provided"
}
  • 500
{
"result": "Error"
}

Behavior/Processing

  • Collects events and segmentation info from drill metadata.
  • Builds populator template structure with sequence defaults and behavior defaults.
  • Returns downloadable JSON file named countly_data_manager_event_export_{app_id}.json.

Audit & System Logs

  • This endpoint does not emit /systemlogs actions.

Database Collections

CollectionUsed forData touched by this endpoint
countly_drill.drill_metaEvent/segment metadata and value samplingReads event segment definitions and sampled values (values) used to build populator segment options.
countly.eventsEvent catalog fallbackReads event list/segment arrays for events that do not have matching drill list-value documents.

Examples

/i/data-manager/export-event-to-populator?
app_id=64f5c0d8f4f7ac0012ab3456

Operational Considerations

  • Endpoint builds export payload and returns it as attachment in one request.
  • Apps with high event/segmentation cardinality can produce very large payloads and slower response times.


Last Updated

2026-02-16