> ## Documentation Index
> Fetch the complete documentation index at: https://docs.granola.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Analytics API

> Automate your workspace's usage report and member list.

The Analytics API returns workspace usage totals and distinct user counts for each feature, and optionally every member with their role and activity. It is available to enabled Enterprise workspaces.

## Getting access

A workspace admin creates an Analytics API key in Settings → Connectors → Analytics API keys, or under [Integrations & API → API keys](https://admin.granola.ai/workspaces/current/integrations-and-api/api-keys) in the admin portal. Contact Granola to enable access for your workspace.

Only admins can manage these keys. A key belongs to one workspace and continues working after its creator leaves. Anyone holding the key can retrieve the workspace summary and per-user breakdown. It cannot read notes, transcripts, audit events or manage legal holds. Existing note, compliance and audit keys cannot call this endpoint.

Manage descriptions, optional expiration dates and revocation through the existing key settings. Analytics keys count towards the shared limit of 25 active workspace-owned API keys. To rotate, create a replacement before revoking the old key. If the workspace already has 25 active keys, revoke one it no longer uses first. Existing workspace IP restrictions and API rate limits apply.

## Read the summary

```bash theme={null}
curl 'https://public-api.granola.ai/v1/analytics?days=30' \
  -H 'Authorization: Bearer grn_YOUR_API_KEY'
```

`days` accepts `30` (the default), `90` or `120`. All metrics are returned together:

```json theme={null}
{
  "period_days": 30,
  "period_start": "2026-10-08T10:00:00.000Z",
  "period_end": "2026-11-07T10:00:00.000Z",
  "summary": {
    "total_workspace_users": 100,
    "meetings": { "count": 420, "distinct_users": 60 },
    "chat_messages": { "count": 180, "distinct_users": 25 },
    "mcp_tool_calls": { "count": 95, "distinct_users": 10 },
    "note_views": { "count": 2400, "distinct_users": 85 },
    "voice_typing": { "count": 310, "distinct_users": 20 }
  }
}
```

`count` is recorded activity in the period. `distinct_users` counts members with at least one activity of that type. One person may appear in several categories, so do not add these user counts together.

`total_workspace_users` counts every active workspace member when the snapshot was taken, whether or not they have any recorded activity. Divide a feature's `distinct_users` by `total_workspace_users` to calculate its adoption rate. A workspace with zero included members has no adoption percentage.

## List members

Add `include_users=true` to return a `users` array with every active member: `id`, `object: "user"`, `name` (their email address when no name is saved), `email`, `role` (`admin` or `member`), `member_since`, and their `meetings`, `chat_messages`, `mcp_tool_calls`, `note_views` and `voice_typing` counts. User IDs are stable, opaque public IDs.

Members with no recorded activity are included with zero counts. Zero counts do not mean a member is inactive: this report does not measure everything people do in Granola (see [Coverage and interpretation](#coverage-and-interpretation)). The member list and roles reflect the last snapshot refresh.

```bash theme={null}
curl 'https://public-api.granola.ai/v1/analytics?days=30&include_users=true&page_size=100' \
  -H 'Authorization: Bearer grn_YOUR_API_KEY'
```

The response also includes `hasMore` and `cursor`. Continue with the returned cursor, the same `days` and `include_users=true`. `page_size` defaults to 100 and accepts 1–100. Summary totals always cover the entire report, regardless of the page. Summary-only responses omit `users`, `hasMore` and `cursor`.

Cursors apply to the current snapshot. If a refresh occurs while paging, the API returns a 400 `VALIDATION_ERROR`; discard the partial report and restart without a cursor. This prevents combining member pages from different reporting periods.

## Coverage and interpretation

Reports cover **current workspace members over a rolling period** and refresh approximately every six hours. Each refresh recalculates that period from current membership and source data. When a member is deactivated or removed, the next successful refresh excludes them and their activity from the report. Deleted source data can disappear from subsequent snapshots. This endpoint cannot reproduce “October's usage, including people who have since left.” If you retain responses, treat them as rolling snapshots, not additive daily or monthly totals.

`period_start` and `period_end` are inclusive UTC bounds. Use `period_end`, the snapshot's reporting cutoff, to assess freshness. If no usage snapshot is available, the API returns 503 rather than reporting missing data as zero.

| Metric | Definition |
| - | - |
| Meetings | Non-deleted meeting notes with enough recorded content to count as a completed meeting, created in the workspace during the period. Multiple members recording the same meeting count separately. The date is note creation time, not calendar start time. |
| Chat messages | Saved user messages in user-initiated workspace chats, including follow-up messages. Excludes deleted chats/messages and background assistant activity. |
| MCP tool calls | Recorded successful external MCP tool calls attributed to the workspace. A question can cause more than one tool call. |
| Note views | Recorded note opens, counting both a member's own notes and notes shared with them. Each opening counts. |
| Voice typing | Voice typing sessions that inserted text. Voice typing is not tied to a workspace, so a member's count includes sessions from all their Granola workspaces. |

Historical coverage depends on when tracking began. These counts do not include note editing or sharing, calendar capture percentages or automation activity. A member with zero counts may have used Granola in ways this report does not measure.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.