Skip to content

Reference

Cursor

Connect Cursor to Alter Vault for secure API access

Use Cursor credentials to make authenticated API calls through Alter Vault without exposing API keys in code.

PropertyValue
Provider IDcursor
CategoryDeveloper Tools
Credential TypeBase64 Credentials

Open the Cursor Dashboard

Sign in to the Cursor Dashboard as an organization admin. Admin API keys require a paid Cursor team plan (not Free/Pro).

Open Settings → Advanced

Open the Settings tab, then the Advanced sub-section.

Create an Admin API key

Under Cursor Admin API Keys, click Create New API Key.

Copy the key

Copy the generated key — it starts with crsr_ and is only shown once.

Base64-encode for Basic auth

The Admin API uses HTTP Basic auth with the key as the username and an empty password. Base64-encode it with a trailing colon: echo -n 'crsr_your_api_key:' | base64, then paste the result into the credential field.

Open the Developer Portal

Go to portal.alterauth.com and navigate to the application.

Add Cursor

Go to Managed Secrets > Add Provider > Cursor.

Enter credentials

Paste your Base64 Credentials into the credential field.

Save

Click Save. You’ll receive a grant_id to use with the SDK.

response = await alter_app.request(
HttpMethod.GET,
"https://api.cursor.com/teams/members",
grant_id="YOUR_GRANT_ID",
)

Alter policy rules can target these attested operations and families for operation-level and parameter-aware controls.

Operation IDFamiliesMethodProvider path
teams/membersreadGET/teams/members
teams/remove-memberadminPOST/teams/remove-member
teams/user-spend-limitadmin, paymentPOST/teams/user-spend-limit
teams/audit-logsreadGET/teams/audit-logs
teams/daily-usage-datareadPOST/teams/daily-usage-data
teams/spendreadPOST/teams/spend
teams/filtered-usage-eventsreadPOST/teams/filtered-usage-events
groups/listreadGET/teams/groups
groups/createwritePOST/teams/groups
groups/getreadGET/teams/groups/{groupId}
groups/updatewritePATCH/teams/groups/{groupId}
groups/deletedeleteDELETE/teams/groups/{groupId}
groups/members/addadminPOST/teams/groups/{groupId}/members
groups/members/removeadminDELETE/teams/groups/{groupId}/members
repo-blocklists/listreadGET/settings/repo-blocklists/repos
repo-blocklists/upsertadminPOST/settings/repo-blocklists/repos/upsert
repo-blocklists/deleteadmin, deleteDELETE/settings/repo-blocklists/repos/{repoId}

Report an issue with this page

Necessary

Required for sign-in, security, authorization, and remembering your choices.

Always active

Analytics

Helps us understand which product and documentation features are useful.

Performance diagnostics

Uses performance tracing and privacy-masked session replay to diagnose problems.

You can change these choices at any time from Cookie settings.