Skip to main content
POST
Create skills analytics report
The analytics reports API is in beta.
The organization bot token must have the following scopes:
  • skills-analytics:read
Starts a report of daily use for each skill over a date range. See Analytics reports for the full flow, date ranges, and limits. Skills reports don’t take time_zone. Dates are UTC days, and end_date must be yesterday or earlier in UTC.

Columns

The report has one row for each live skill on each UTC day in the range, including days with no use. Trashed skills are left out. 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
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