Skip to main content
POST
Create AI usage analytics report
The analytics reports API is in beta.
The organization bot token must have the following scopes:
  • ai-analytics:read
Starts a report of each member’s AI actions over a recent period, such as last_28_days. See Analytics reports for the full flow and limits.

Columns

The report has one row for each current member and AI product they used in the period. Each row holds a total for the whole period, with no daily breakdown. A product the member didn’t use has no row, so a member with no AI usage doesn’t appear. name and email can be empty. In JSONL files, empty values are null. Treat ai_product as open-ended, since new products can be added.

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
period
enum<string>
required

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
file_format
enum<string>
required

One of: csv, jsonl

Available options:
csv,
jsonl
workspace_id
string<uuid>
required

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