Same api_key,/teams/members work,analytics/ai-code/commits not work

Where does the bug appear (feature/product)?

Somewhere else…

Describe the Bug

I’m using the same api_key to pull team commit information, but it returns the error message: message:You must be a member of an enterprise team to access this resource.
The same key works fine when calling /teams/members.

// not working
curl -L "https://api.cursor.com/analytics/ai-code/commits?startDate=2025-07-01T00:00:00Z&endDate=now" -u key_xxx -o commits.csv

// working

curl -X GET https://api.cursor.com/teams/members \
  -u key_xxx

Steps to Reproduce

same as desc

Operating System

MacOS

Current Cursor Version (Menu → About Cursor → Copy)

版本: 1.7.54
提交: 1.99.3
日期: 5c17eb2968a37f66bc6662f48d6356a100b67be0
Electron: 2025-10-21T19:07:38.476Z
ElectronBuildId: 34.5.8
Chromium: undefined
Node.js: 132.0.6834.210
V8: 20.19.1
OS: 13.2.152.41-electron.0

Does this stop you from using Cursor

No - Cursor works, but with this issue

hi @wdd667 and thank you for the detailed feedback.

Note that currently the AI Analytics feature is available only on the Enterprise plan, though we may expand it in the future to other plans.

You can see more details in our documentation:

thx we are teams plan,looking forward to the feature

1 Like

This topic was automatically closed 22 days after the last reply. New replies are no longer allowed.