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:
- API key query parameter:
api_key=YOUR_API_KEY - Auth token query parameter:
auth_token=YOUR_AUTH_TOKEN - Auth token header:
countly-token: YOUR_AUTH_TOKEN
Permissions
Requires data_manager Read permission.
Request Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
app_id | String | Yes | Target app ID. |
api_key | String | Conditional | Required if auth_token is not provided. |
auth_token | String | Conditional | Required if api_key is not provided. |
Configuration Impact
| Setting | Default | Affects | User-visible impact |
|---|---|---|---|
drill.list_limit | System default | Maximum number of segmentation values exported per segment | Export 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
| Field | Type | Description |
|---|---|---|
[] | Array | Populator template containers. |
[].name | String | Template name (currently populator). |
[].data[] | Array | Export bundles. |
[].data[].events[] | Array | Exported event definitions for populator. |
[].data[].events[].segmentations[] | Array | Segment 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
/systemlogsactions.
Database Collections
| Collection | Used for | Data touched by this endpoint |
|---|---|---|
countly_drill.drill_meta | Event/segment metadata and value sampling | Reads event segment definitions and sampled values (values) used to build populator segment options. |
countly.events | Event catalog fallback | Reads 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.
Related Endpoints
Last Updated
2026-02-16