Skip to main content

Cursor

Updated over 2 weeks ago

By enabling the Cursor connector allows you to import data on usage of Cursor metrics at the user level. Please refer to the API documentation below for more details, and visit our schema explorer to see what data DX imports.

Prerequisites

To connect Cursor to DX, you need:

Setup instructions

Step 1- Get Cursor API token and teamId

  1. Navigate to cursor.com/dashboardAdmin API Keys in your dashboard

  2. Click Create New API Key

Step 2– Enable DX connector

  1. Navigate to the connections page in DX and select "+ Connection" in the top right.

  2. Enter the credentials you 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

POST /teams/spend

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

The provided credentials does not have access to any organizations or projects.

Did this answer your question?