Skip to main content
GET
Get skills analytics report
The analytics reports API is in beta.
The organization bot token must have the following scopes:
  • skills-analytics:read
Returns the report’s status and, once it’s completed, a download link. Pass the report id as job_id. The file’s columns are listed in Create a skills analytics report. Completed reports include download_url and link_expires_at when the file is available. Follow that URL directly; it contains a derived organization bot file token and needs no additional Authorization header. Downloads use the configured secure file host (file.notion.com or file.notion.so; local environments use their configured file host). Links expire after seven days or at the saved file expiry, whichever comes first. Files retain their original 30-day lifetime. Fetch the report again to renew a link while its file remains available. Permissions, credential revocation, and file expiry are checked again when downloading. Completed reports also include row_count, file_size_bytes, and data_as_of, the ISO 8601 time of the source data. data_as_of can be earlier than completed_time because generation takes time. Expired or definitively missing files return HTTP 200 with status: "expired" and no download URL. Queued, running, and failed reports also omit download URLs. Failed reports include failed_time, error_code, and a plain-English error_message. An error_code of report_too_large means the report is too large to generate. Create a smaller report instead of retrying, for example with a shorter date range or, for content pages, a teamspace or page filter. Other failures use report_generation_failed. A file that fails integrity verification returns HTTP 500 with additional_data.tool_error_code set to analytics_report_integrity_failed and additional_data.tool_error_retryable set to false. Create a new report instead of retrying. Other storage failures return HTTP 500 with tool_error_retryable set to true. CSV and JSONL files contain the same values, with two CSV-only rules. A text value that starts with =, +, -, @, *, /, or a full-width equals sign, optionally after tabs or line breaks, gets a leading ' so spreadsheets show it as text instead of running it as a formula. List values are JSON arrays, such as ["Engineering","Product"]; an empty list is [] and a missing value is an empty cell. JSONL keeps exact values. Treat the full download URL as a credential. Do not log or share it, and avoid sending it in referrers. Report responses and downloaded files use Cache-Control: private, no-store.

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

Path Parameters

job_id
string<uuid>
required

Query Parameters

workspace_id
string<uuid>
required

Response

Report status and an available download link

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
row_count
integer
file_size_bytes
integer
data_as_of
string<date-time>
download_url
string<uri>