# How can one track the acceptance % of my team via cursor admin api?

**URL:** <https://forum.cursor.com/t/how-can-one-track-the-acceptance-of-my-team-via-cursor-admin-api/129076>\
**Category:** Help\
**Created:** [August 13, 2025, 7:27am UTC](https://forum.cursor.com/t/how-can-one-track-the-acceptance-of-my-team-via-cursor-admin-api/129076 "2025-08-13T07:27:09Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dawny33](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/dawny33/32/76324_2.png) [@Dawny33](https://forum.cursor.com/u/Dawny33)\
**Post date:** [August 13, 2025, 7:27am UTC](https://forum.cursor.com/t/how-can-one-track-the-acceptance-of-my-team-via-cursor-admin-api/129076/1 "2025-08-13T07:27:09Z")

</div>

I am trying to use the cursor admin API (endpoint: `/teams/daily-usage-data`) for understanding cursor usage of the devs in my org.

I am using the following metrics for this:  
Total Lines suggested = `totalLinesAdded + totalLinesDeleted + totalTabsShown`

Total Lines accepted = `acceptedLinesAdded + acceptedLinesDeleted + totalTabsAccepted`

Acceptance % = `Total Lines accepted/Total Lines suggested`

However, I see that `Total Lines accepted` is greater than `Total Lines suggested` for most of my devs. This seems wrong.

Am I doing something wrong?

---

<div class="post-metadata">

**Author:** ![condor](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/condor/32/73148_2.png) [@condor](https://forum.cursor.com/u/condor)\
**Post date:** [August 13, 2025, 8:51am UTC](https://forum.cursor.com/t/how-can-one-track-the-acceptance-of-my-team-via-cursor-admin-api/129076/2 "2025-08-13T08:51:35Z")

</div>

hi @Dawny33 and welcome to Cursor Forum.

Based on the Admin API documentation, tabs and lines are different types of metrics incorrectly.

**The problem:** `totalTabsShown` and `totalTabsAccepted` are specifically for **tab completions** (autocomplete suggestions), while `totalLinesAdded/Deleted` and `acceptedLinesAdded/Deleted` are for **code edits** (from chat/composer features).

**Correct approach:**

For **tab completions only:**

- Total suggested = `totalTabsShown`
- Total accepted = `totalTabsAccepted`
- Acceptance % = `totalTabsAccepted / totalTabsShown`

For **code edits only:**

- Total suggested = `totalLinesAdded + totalLinesDeleted`
- Total accepted = `acceptedLinesAdded + acceptedLinesDeleted`
- Acceptance % = `(acceptedLinesAdded + acceptedLinesDeleted) / (totalLinesAdded + totalLinesDeleted)`

---

<div class="post-metadata">

**Author:** ![Dawny33](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/dawny33/32/76324_2.png) [@Dawny33](https://forum.cursor.com/u/Dawny33)\
**Post date:** [August 13, 2025, 9:10am UTC](https://forum.cursor.com/t/how-can-one-track-the-acceptance-of-my-team-via-cursor-admin-api/129076/3 "2025-08-13T09:10:07Z")

</div>

I was trying with a similar calculation. However, I see quite a lot of cases where `acceptedLinesAdded` \> `totalLinesAdded`

One such example for one of my devs:

```auto
{

"date": 1754524800000,

"userId": "<redacted>",

"email": "<redacted>",

"isActive": true,

"totalLinesAdded": 0,

"totalLinesDeleted": 0,

"acceptedLinesAdded": 1349,

"acceptedLinesDeleted": 0,

"totalApplies": 5,

"totalAccepts": 5,

"totalRejects": 0,

"totalTabsShown": 107,

"totalTabsAccepted": 31,

"composerRequests": 0,

"chatRequests": 8,

"agentRequests": 2,

"cmdkUsages": 0,

"subscriptionIncludedReqs": 10,

"apiKeyReqs": 0,

"usageBasedReqs": 0,

"bugbotUsages": 0,

"mostUsedModel": "claude-4-sonnet",

"tabMostUsedExtension": "py"

},

```

When calculating overall (sum) numbers for my devs, too, the `acceptedLinesAdded` seems to be more than `totalLinesAdded`, which make my acceptance % \> 100%.

---

<div class="post-metadata">

**Author:** ![condor](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/condor/32/73148_2.png) [@condor](https://forum.cursor.com/u/condor)\
**Post date:** [August 13, 2025, 11:39am UTC](https://forum.cursor.com/t/how-can-one-track-the-acceptance-of-my-team-via-cursor-admin-api/129076/4 "2025-08-13T11:39:29Z")

</div>

@Dawny33 I verified what we actually show there. Overall they are two different counts that are not comparable.

`acceptedLinesAdded` counts all accepted lines including:

- Fully accepted suggestions
- Partially accepted suggestions
- Lines that may have been later modified or deleted

`totalLinesAdded` come from git commit metrics.

---

<div class="post-metadata">

**Author:** ![Dawny33](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/dawny33/32/76324_2.png) [@Dawny33](https://forum.cursor.com/u/Dawny33)\
**Post date:** [August 13, 2025, 11:55am UTC](https://forum.cursor.com/t/how-can-one-track-the-acceptance-of-my-team-via-cursor-admin-api/129076/5 "2025-08-13T11:55:53Z")

</div>

Noted. So, is there no way I can check the acceptance rate of my team via the metrics I get from this API?

---

<div class="post-metadata">

**Author:** ![condor](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/condor/32/73148_2.png) [@condor](https://forum.cursor.com/u/condor)\
**Post date:** [August 18, 2025, 9:09am UTC](https://forum.cursor.com/t/how-can-one-track-the-acceptance-of-my-team-via-cursor-admin-api/129076/6 "2025-08-18T09:09:28Z")

</div>

Acceptance rate is totalAccepts vs totalRejects.

We have now also a AI Code Tracking API

> **[Cursor – AI Code Tracking API](https://docs.cursor.com/en/account/teams/ai-code-tracking-api)**
>
> Access AI-generated code analytics for your team's repositories

---

<div class="post-metadata">

**Author:** ![benzkpko](https://avatars.discourse-cdn.com/v4/letter/b/3ab097/32.png) [@benzkpko](https://forum.cursor.com/u/benzkpko)\
**Post date:** [August 26, 2025, 4:04am UTC](https://forum.cursor.com/t/how-can-one-track-the-acceptance-of-my-team-via-cursor-admin-api/129076/7 "2025-08-26T04:04:50Z")

</div>

@condor does this **AI Code Tracking API** work with Gitlab repositories?

---

<div class="post-metadata">

**Author:** ![condor](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/condor/32/73148_2.png) [@condor](https://forum.cursor.com/u/condor)\
**Post date:** [August 27, 2025, 4:54pm UTC](https://forum.cursor.com/t/how-can-one-track-the-acceptance-of-my-team-via-cursor-admin-api/129076/8 "2025-08-27T16:54:09Z")

</div>

hi @benzkpko the new tracking does use the local IDE instead of remote git repos. So it can work independent of the type of git hosting provider.
