REQUIRED: Bearer token authentication using your API key. Format: 'Bearer sk_xxxxxxxxxxxxx'. You can create API keys in the Mixpeek dashboard under Organization Settings.
REQUIRED: Namespace identifier for scoping this request. All resources (collections, buckets, taxonomies, etc.) are scoped to a namespace. You can provide either the namespace name or namespace ID. Format: ns_xxxxxxxxxxxxx (ID) or a custom name like 'my-namespace'
API request model for step transition analytics.
This model extends the engine query model with API-specific validation and documentation.
Use this to analyze how documents transition from one taxonomy step to another, computing conversion rates, durations, and predictor lifts.
Example:
json { "collection_id": "col_emails", "taxonomy_id": "tax_sales_stages", "from_step": "inquiry", "to_step": "closed_won", "max_window_days": 90, "min_support": 10 }
Response includes: - Conversion rate (% reaching to_step) - Duration statistics (mean, median, p90, p95) - Top predictors (covariates with highest lift)
Collection to analyze for step transitions
Taxonomy ID (each taxonomy_id is immutable, clone creates new ID)
Starting step label (e.g., 'inquiry', 'draft')
Ending step label (e.g., 'closed_won', 'published')
Maximum days between from_step and to_step. Sequences exceeding this are excluded.
1 <= x <= 365Optional filters for events (e.g., {'metadata.region': 'US'})
Override taxonomy's default step_analytics config for this query
Minimum number of sequences required for valid analysis
x >= 1Successful Response
API response model for step transition analytics.
Contains comprehensive statistics about the A→B transition including conversion metrics, duration analysis, and predictor insights.
Example Response:
json { "from_step": "inquiry", "to_step": "closed_won", "count": 1000, "converted": 350, "conversion_rate": 0.35, "durations_sec": { "mean": 432000.0, "median": 345600.0, "p50": 345600.0, "p90": 691200.0, "p95": 864000.0, "std_dev": 172800.0, "min": 86400.0, "max": 1209600.0 }, "top_predictors": [ { "field": "Sender Domain", "value": "enterprise.com", "count": 150, "conversion_rate": 0.75, "lift": 2.14 } ], "metadata": { "collection_id": "col_emails", "taxonomy_id": "tax_sales_stages", "total_events_analyzed": 5432 } }
Starting step
Ending step
Total number of sequences starting at from_step
x >= 0Number of sequences that reached to_step
x >= 0Percentage that converted (converted / count)
0 <= x <= 1Duration statistics (None if no conversions)
Covariates with highest lift (sorted by absolute lift)
50Additional metadata (collection_id, event counts, etc.)