API / get-api-key-info-via-cloud-agents-api

API

Get API key info via the Cloud Agents API

Inspect the API key you are authenticating with using GET https://api.cursor.com/v1/me. Official reference: Cloud Agents API → API Key Info.

The Cloud Agents API v1 is in public beta. Authenticate with Basic auth (API key as username, empty password) or Authorization: Bearer YOUR_API_KEY. Create a user key at Cursor Dashboard → API Keys, or use a service account key. Availability: Beta (all plans) per the API overview.

Request

curl --request GET \
  --url https://api.cursor.com/v1/me \
  -u YOUR_API_KEY:

Response fields

Field When present Meaning
apiKeyName Always Display name of the API key.
createdAt Always ISO 8601 creation time.
userId User-scoped keys Numeric Cursor user ID of the key's owner. Omitted for service-account / team keys.
userEmail User-scoped keys Email of the key's owner.
userFirstName, userLastName User-scoped keys Name fields when populated.

User-scoped key example:

{
  "apiKeyName": "Production API Key",
  "userId": 42,
  "createdAt": "2026-04-13T18:30:00.000Z",
  "userEmail": "developer@example.com",
  "userFirstName": "Alex",
  "userLastName": "Rivera"
}

Service-account key example:

{
  "apiKeyName": "Production Service Account",
  "createdAt": "2026-04-13T18:30:00.000Z"
}

Use this call to confirm whether you are holding a user key or a service account key before calling endpoints that require one type (for example Create A User-Scoped Worker Token requires a service account key).