View all connectors

Cursor

By integrating Cursor with DX, you can import data on Cursor usage and link this data to the rest of your DX data to analyze impact. Please refer to the API documentation below and our schema explorer to see what data DX imports—note that DX does not read or access your source code.

Prerequisites

To connect Cursor to DX, you need:

  • an API token
  • (optional) privacy mode needs to be disabled if code change files needs to be tracked.

Setup instructions

Follow the steps below to connect Cursor to DX.

Step 1

Generate an API key by browsing to Admin API Keys from the Cursor dashboard.
Note: The API token should be created by an account that’s part of the Enterprise team.

Step 2

  • Navigate to the connections page in DX and select “+ Connection” in the top right.
  • Enter the credentials you have generated in the previous steps—refer to the information below for errors and troubleshooting.

API reference

The table below lists the specific API endpoints that are used by DX.

Endpoint Documentation
POST /teams/daily-usage-data Link
POST /teams/spend Link
GET /analytics/ai-code/commits Link
GET /analytics/ai-code/changes Link

Errors

The table below lists potential error codes when adding a connection in DX.

Error Description
invalid_credentials Your API credentials entered are not valid.
no_resources DX cannot access any projects or repositories.