Why this matters
A public metric is a disclosure boundary, not merely a chart. The wrong query can expose identities, small cohorts, internal operations, or a number whose definition changes silently.
Agentry public queries are safe when they publish a reviewed aggregate query blueprint with fixed, validated parameters. Custom owner-side HogQL is not directly publishable. If no suitable blueprint exists, the workflow ends with a code-review task for a new safe aggregate blueprint.
What you get
- A precise metric definition and answerability check
- A preview from the same reviewed blueprint that would be published
- Human approval of audience, privacy threshold, wording, and lifetime
- The returned revocable
public_url, with no deployed owner credential
Walk through it
Publish our verified three-step signup funnel on the marketing site.
I will verify the exact events and preview the approved aggregate blueprint. Publication remains a separate human-approved action.
GET /v1/projects/:project_id/signal-map
GET /v1/projects/:project_id/onboarding
# Require status: "verified"; use live event/property reads for the selected signals.
GET /v1/query-blueprints/funnel_3_step
POST /v1/projects/:project_id/query-blueprints/funnel_3_step/run
After the reviewer confirms the rows, time window, sample, audience, and wording:
Endpoint: POST /v1/projects/:project_id/public-queries
Exact shape: /v1/openapi.json?path=%2Fv1%2Fprojects%2F%7Bproject_id%7D%2Fpublic-queries&method=post
Concept fields:
blueprint_id: funnel_3_step
params: <the exact reviewed params>
description: <public definition and period>
Use the actual public_url returned by Agentry. Do not invent publication IDs
or reconstruct the URL from an assumed pattern.
The output
Public metric review
Definition
- source events, ordered logic, exact period, denominator, timezone
Preview
- aggregate rows and sample size from the reviewed blueprint
Privacy
- no identities or rare segments
- minimum sample and disclosure notes
Publication
- approval owner: <human>
- destination: <site/page>
- returned public_url: <only after approval and creation>
- revoke/review date: <date>
Setting it up
Embed or fetch the returned URL exactly as documented by its response. Do not
append undocumented query parameters or place AGENTRY_PRIVATE_API_KEY in
browser code, static-site builds, edge workers, or unattended schedulers.
Review existing publications with the project public-query list and revoke any URL whose purpose has ended. A publication should fail closed when its blueprint or parameters are no longer safe or valid.
Variations
- “Preview a verified retention aggregate, but do not publish it.”
- “Explain why this requested metric needs a new safe blueprint.”
- “Review all current public-query URLs and their stated purpose.”
- “Revoke a selected publication after the owner confirms the exact ID.”