Skip to main content
The analytics reports API is in beta.
An analytics report is a CSV or JSONL file of workspace usage data. Reports run in the background, so getting one takes three requests. Every request needs the Notion-Version: 2026-06-01 header. See Versioning.

Get a report

1

Create the report

Send the workspace and the date range. The response is 202 Accepted with the report’s id and status: "queued".
2

Poll until it's completed

Get the report by its id every 30 seconds or so. Stop when status is completed, failed, or expired.
3

Download the file

A completed report includes download_url. Download it without an Authorization header, because the URL carries its own credential.

Report types

Each report type has its own endpoints and scope. A token needs the scope for each type it uses. Reports belong to the workspace, not to the token that created them. Any organization bot token in the same organization with a report’s scope can get it or list it. Analytics reports aren’t available for HIPAA workspaces. Requests for a HIPAA workspace return 403 with the code analytics_reports_unavailable_for_hipaa_workspace.

Date ranges

User activity and content pages reports cover start_date through end_date, both inclusive, in the IANA time_zone you send, such as America/New_York. start_date can be up to 365 days ago. end_date can’t be after today in time_zone. Skills reports use UTC days and don’t take time_zone. AI usage reports take a fixed period instead.

Limits

Each endpoint accepts 1,500 requests per organization every 5 minutes. Past that, it returns 429 with a Retry-After header. By default, an organization can have 20 unfinished reports and 5 running reports. Reports past the running limit stay queued until a slot frees up. A create request past the unfinished limit returns 429 with the code analytics_report_limit_reached and no Retry-After header. Try again after a report finishes. Send an Idempotency-Key header of up to 255 characters to make create requests safe to retry. A retry with the same key and body within 24 hours returns the original report. The same key with a different body returns 409. Files are kept for 30 days. Each download link lasts up to 7 days. Get the report again for a new link.

Errors

Most analytics errors include a code in additional_data.tool_error_code. Check that code, not the message. Some errors are returned before the report starts and use the top-level code instead: 400 validation_error, 403 restricted_resource (missing scope), 429 rate_limited, 503 service_unavailable.