Skip to content

Add Analytics Query API (BFRS + UPA) reference — WIP - #429

Draft
mallikarjun-dhulange wants to merge 4 commits into
mainfrom
analytics-query-api-docs
Draft

Add Analytics Query API (BFRS + UPA) reference — WIP#429
mallikarjun-dhulange wants to merge 4 commits into
mainfrom
analytics-query-api-docs

Conversation

@mallikarjun-dhulange

Copy link
Copy Markdown
Member

What

Adds the async Analytics Query API (v5) reference — Behavior, Funnels, Retention, Session-Source (BFRS) and User Property Analysis (UPA) — over the Public surface. Endpoints follow a submit → poll → fetch flow.

Source: MCP Analytics Query API's (Confluence)

Changes

  • New spec api/analytics-query/analytics-query.yaml — 7 endpoints (5 POST submit + GET status + GET results), basicAuth, {dc} server, standard error envelope. Per-endpoint validation limits seeded from the PRD.
  • New overview api/analytics-query/analytics-query-overview.mdx.
  • Nav (docs.json) — renamed the API Analytics group to Analyze; added an Analytics subgroup (overview + endpoints) alongside the unchanged Dashboards.

Scope decisions

  • Public surface only. MCP surface (JWT via SGK) is explicitly out of scope per PM; basicAuth only.
  • Kept 428 QUOTA_EXCEEDED / FUP and VALIDATION_FAILED for parity with the shipped api/analytics/analytics.yaml.

Pending — TODO(staging) (awaiting staging credentials)

  • Real SUCCESSFUL result payloads for behavior, funnels, retention, user-analysis (only session_count documented).
  • Confirm full status enum beyond PENDING/SUCCESSFUL/FAILED and whether FAILED returns a reason.
  • Async timing: poll interval, result TTL, behavior of /results before completion.
  • Verify request/response type values against live (Confluence samples had funnel vs funnels, session-source vs session_source mismatches).
  • Run mint broken-links to confirm overview endpoint slugs resolve.

Draft until the above are captured from staging.

🤖 Generated with Claude Code

Add async v5 Analytics Query API spec (Behavior, Funnels, Retention,
Session-Source, User Property Analysis) plus submit → poll → fetch flow.

- New spec: api/analytics-query/analytics-query.yaml (7 endpoints, Public
  surface, basicAuth; per-endpoint validation limits from PRD)
- New overview: api/analytics-query/analytics-query-overview.mdx
- Nav: rename API "Analytics" group to "Analyze"; add "Analytics" subgroup

WIP: result payloads for behavior/funnels/retention/user-analysis, the full
status enum, and async timing details are pending live staging capture
(marked TODO(staging) in the spec).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@mintlify

mintlify Bot commented Jul 22, 2026

Copy link
Copy Markdown
Contributor

Preview deployment for your docs. Learn more about Mintlify Previews.

Project Status Preview Updated (UTC)
moengage 🔴 Failed Jul 22, 2026, 7:05 AM

💡 Tip: Enable Workflows to automatically generate PRs for you.

An unquoted comma in the doc_url description was parsed as a second YAML
flow-mapping key, making ErrorResponse an invalid OpenAPI Schema Object and
failing the Mintlify build. Quote the description string.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
mallikarjun-dhulange and others added 2 commits July 28, 2026 15:36
- Add standard basicAuth description (matches analytics.yaml)
- Fully model BehaviorQueryRequest with per-param descriptions/examples
- Fold validation limits into each param's description; drop Limits block
- Add reusable FilterGroup / Segmentation / Timerange schemas
- Link nested filter objects to Create Filter Segment (house pattern)

Template for the other 4 analyses, pending review. Enums set only where
confirmed; granularity/chart_type/count_type/chart_plot_type left as
description+example pending staging confirmation.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
- Replicate the Behavior modeling pattern to the other 4 analyses
- Fully described params with examples; limits folded into param descriptions
- Enums sourced from PRD: funnel_type, retention_type, report_type, granularity
- Reuse FilterGroup / Segmentation / Timerange across all 5
- Drop the Limits blocks from endpoint descriptions

Pending live capture: verbatim result payloads, percentage count_type code,
chart_plot_type value set.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant