Resolve a template
Resolve a template key and optional overrides into a concrete pipeline config. For activity-based templates ('likely_active_soon', 'at_risk_of_inactivity', 'return_after_first_use'), the target event is auto-resolved from your event schema — check resolved_activity_event and activity_event_alternatives, then override if needed. For 'feature_adoption' and 'repeat_key_behavior', supply target_event. After resolving, call autoresearch-validate-create to check volume and warnings, then autoresearch-create to create the pipeline.
Request
- Base URL: https://us.posthog.com
- URL: https://us.posthog.com/api/projects/{project_id}/autoresearch/resolve-template/
- Auth: HTTP bearer
Path parameters
Project ID of the project you're trying to access. To find the ID of the project, make a call to /api/projects/.
Request body
Response
Resolved pipeline config. Pass target_event, horizon_days, training_lookback_days, training_population, inference_population, and output_person_property directly to autoresearch-create. Always run autoresearch-validate-create on the resolved config before creating.
Example response
{
"training_population": {
"kind": "performed_event_within_days",
"event": "$pageview",
"days": 30
},
"inference_population": {
"kind": "performed_event_within_days",
"event": "$pageview",
"days": 30
}
}Changes
No recorded changes to this operation across all 1 revision of this API.