Skip to main content
POST
Create content pages analytics report
The analytics reports API is in beta.
The organization bot token must have the following scopes:
  • content-analytics:read
Starts a report of views and edits for each page over a date range. See Analytics reports for the full flow, date ranges, and limits. To narrow the report, send teamspace_ids, page_ids, or both. With both, a page must match both lists. teamspace_ids counts activity from while a page was in one of these teamspaces, and only includes pages that are in one of them now. A page that moved during the range may show partial counts.

Columns

The report has one row for each page viewed or edited in the range. Deleted and trashed pages are left out. Columns after page_id can be empty. In JSONL files, empty values are null.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

Notion-Version
enum<string>
required

The Admin API version to use for this request.

Available options:
2026-06-01
Idempotency-Key
string

Retrying with the same key and parameters within 24 hours returns the original report instead of creating another one.

Required string length: 1 - 255

Body

application/json
start_date
string<date>
required
end_date
string<date>
required
file_format
enum<string>
required

One of: csv, jsonl

Available options:
csv,
jsonl
time_zone
string
required
Maximum string length: 100
workspace_id
string<uuid>
required
teamspace_ids
string<uuid>[]
Required array length: 1 - 100 elements
page_ids
string<uuid>[]
Required array length: 1 - 100 elements

Response

The report was accepted and is queued

object
string
required

Always analytics_report

Allowed value: "analytics_report"
id
string
required
report_type
enum<string>
required

One of: user_activity, content_pages, ai_usage, skills

Available options:
user_activity,
content_pages,
ai_usage,
skills
report_version
integer
required
workspace_id
string<uuid>
required
file_format
enum<string>
required

One of: csv, jsonl

Available options:
csv,
jsonl
status
enum<string>
required

One of: queued, running, completed, failed, expired

Available options:
queued,
running,
completed,
failed,
expired
created_time
string<date-time>
required
start_date
string<date>
end_date
string<date>
time_zone
string
period
enum<string>

One of: last_7_days, last_28_days, last_60_days, last_90_days, last_180_days, last_365_days

Available options:
last_7_days,
last_28_days,
last_60_days,
last_90_days,
last_180_days,
last_365_days
completed_time
string<date-time>
file_expires_at
string<date-time>
failed_time
string<date-time>
error_code
enum<string>

One of: report_generation_failed, report_too_large

Available options:
report_generation_failed,
report_too_large
error_message
string