Skip to main content
The Cursor integration collects the Cursor audit log for security monitoring and detection. It covers sign-ins, member and role changes, API key and service account lifecycle, spend limits, privacy mode, team hooks, rules, MCP servers, integrations, and cloud agent network policy, without requiring software on employee devices.
Wirespeed reads audit-log metadata only. It does not collect prompts, chat history, generated code, or agent activity.

Prerequisites

Cursor audit logs require a Cursor Enterprise plan. Teams-plan API keys cannot read the audit log, and Wirespeed rejects them when you connect. Choose the key that matches your Cursor setup: An organization key exists only when your company has set up a Cursor Organization that links its Enterprise teams. If you have a single Enterprise team without an organization, use a team API key.

Step 1: Create a Key

Organization API key

  1. Sign in to the Cursor dashboard as an organization admin
  2. Open the organization’s API Keys settings and click New API Key
  3. Name the key, such as Wirespeed Audit Log, and select the auditlogs:read scope
  4. Create the key and copy it

Team API key

  1. Sign in to the Cursor dashboard as a team admin
  2. Open Settings → API Keys and click New API Key
  3. Name the key, such as Wirespeed Audit Log
  4. Open the permissions list and select Audit logs → View audit logs. Clear any other permission, including General → View team resources, which Cursor selects by default
  5. Create the key and copy it
Cursor displays the key once. Store it securely.

Step 2: Connect Cursor to Wirespeed

  1. In Wirespeed, open Integrations → Add Integration
  2. Search for and select Cursor
  3. Choose Organization API key or Team API key to match the key you created
  4. Paste the key
  5. Click Integrate
Wirespeed reads the audit log with the key before enabling the integration. A successful connection proves the key can read the audit log; it does not mean events exist yet.

What Events Are Collected?

Wirespeed imports every event type the audit log returns, including:
  • Sign-ins and sign-outs
  • Member invitations, additions, removals, role changes, and revoked credentials
  • Team, organization, and user API keys, service accounts, and service account keys
  • Team settings, spend limits, and privacy mode
  • Team hooks, rules, commands, and MCP servers
  • Slack, repository, and Bugbot integrations
  • Directory group, SSO, and identity provider changes
  • Cloud agent secrets and network policy
The first sync requests up to seven days of history. Each poll then collects events from the previous window onward, reading two minutes behind real time and re-reading a short overlap to catch late-indexed events. Cursor limits each audit-log request to a 30-day window.

Managed Detections

Wirespeed evaluates the collected events for configuration and posture changes. These are informational unless noted: Sign-ins are also normalized as authentication events for SIEM searches and cross-platform login detections.

Troubleshooting

Invalid Key

A 401 error means the key is wrong, incomplete, or was revoked. Confirm the entire key was pasted without spaces, then create a replacement key and update Wirespeed if needed.

Key Cannot Read Audit Logs

A 403 error means the key cannot read the audit log. Check that:
  1. Your Cursor plan is Enterprise
  2. A team key has the Audit logs → View audit logs permission
  3. An organization key carries the auditlogs:read scope
  4. The key type selected in Wirespeed matches the key: an organization key connected as a team key, or the reverse, is rejected

Integration Connects but No Events Appear

A healthy integration logs 0 new logs ingested on each poll when no new events exist. Confirm events exist before expecting them in Wirespeed:
For an organization key, use https://api.cursor.com/organizations/audit-logs. An empty events array means there is nothing for Wirespeed to ingest.

Rate Limiting

Cursor allows 20 audit-log requests per minute per team or organization, shared across every key and integration. On a 429 response, Wirespeed keeps its position and retries on the next sync.

Additional Resources