Execute a read-only SQL query against the analytics schema, scoped to your publication.
Auth: Requires an API key. Queries run as the publication that owns the API key; Row-Level Security guarantees that only that publication’s rows are visible even if the SQL is unscoped.
SQL requirements:
SELECT or WITH (CTE) statements onlyFROM posts) — the analytics schema is the default search_pathtruncated: true is returnedDiscovering the schema: call GET /v1/analytics/schema for column metadata.
Common queries: open rate, subscriber count, top posts by views, engagement over time, click-through rate.
For raw post-scoped tables, join through posts.draft_of to roll draft/version rows up to the canonical published post.
Documentation Index
Fetch the complete documentation index at: https://paragraph.com/docs/llms.txt
Use this file to discover all available pages before exploring further.
API key for authenticating protected endpoints. Pass as Bearer token in Authorization header.
Body
A SELECT or WITH query against the analytics schema. The analytics.* prefix is implicit.
1Query executed successfully