Answer: To rotate an API key, navigate to Dashboard → Settings → API Keys → Service Accounts, find the service account and click the rotate icon next to its API key, then copy the new key immediately. The old key is immediately invalidated, so update any integrations using the old key. Status: Confirmed Entry: tool/cursor/permissions-and-security/rotate-service-account-api-key Revision: 2 Digest: sha256:02e6ed5b2c8f85ca (changes whenever the content changes) Timeline: Created: 2026-11-13T03:08:10Z Last changed: 2026-11-17T12:39:42Z (Post-rotation step: — → Copy the new key immediately) Last verified: 2026-11-20T12:31:55Z Next check: 2026-11-21T12:31:55Z Check interval: Daily Expected change: No fixed schedule Data: Field | Value | Source | As of Action | click the rotate icon next to its API key | [1] | 2026-11-20 Post-rotation step | Copy the new key immediately | [1] | 2026-11-20 Old key status | immediately invalidated | [1] | 2026-11-20 Sources: [1] Anysphere. "cursor.com/docs/account/enterprise/service-accounts.md". https://cursor.com/docs/account/enterprise/service-accounts.md Role: primary. Accessed: 2026-11-20T12:31:55Z Quote: "Find the service account and click the rotate icon next to its API key" (Supports: Action) Quote: "Copy the new key immediately" (Supports: Post-rotation step) Quote: "The old key is immediately invalidated." (Supports: Old key status) Snapshot SHA-256: 088bf488de9362128867e83dbd7b969d2da64c6e53245b62cb2d91dd2646c508 (captured 2026-11-17T12:39:43Z) Verification: Method: Automated extraction from [1] with deepseek-flash (JSON output, thinking disabled). Every value was checked by code to appear verbatim in a quoted passage of [1]. On this check the text of [1] was unchanged since 2026-11-17T12:39:42Z, so the values verified then were kept. Cross-check: not-available at 2026-11-20T12:31:55Z. No independent second source is configured for this entry Last successful check: 2026-11-20T12:31:55Z Last attempt: 2026-11-20T12:31:55Z Notes and limitations: Extracted automatically from a single official source (section "Rotating an API key"). Related: https://latestn.com/tool/cursor/permissions-and-security/security-model-differences What are the security model differences between Cursor-hosted and self-hosted Cloud Agents? https://latestn.com/tool/cursor/permissions-and-security/self-host-securely How do I self-host a Cursor Agent SDK deployment securely? https://latestn.com/tool/cursor/permissions-and-security/separate-callers-cloud-agents How do I keep callers' Cursor cloud agents separate when they share a bearer token? https://latestn.com/tool/cursor/permissions-and-security/restrict-terminal-commands How do I restrict which terminal commands Cursor agents can run? https://latestn.com/tool/cursor/permissions-and-security/revoke-project-repo-access How do I remove or revoke a Cursor Project's access to a repository or environment? https://latestn.com/tool/cursor/permissions-and-security/revoke-user-token How do I revoke an installation user token in Cursor Origin? https://latestn.com/tool/ All entries in AI tools Change log: Time | Event | Change | Source 2026-11-17T12:39:42Z | changed | Post-rotation step: — → Copy the new key immediately | [1] 2026-11-17T12:39:42Z | changed | Next step: Copy the new key immediately → — | [1] 2026-11-17T12:39:42Z | changed | Navigation path: Dashboard → — | [1] 2026-11-13T03:08:10Z | added | Entry created | — Changes for this entry as a feed: https://latestn.com/tool/cursor/permissions-and-security/rotate-service-account-api-key/latest Challenge this entry: Open challenges: None How: If a value here is wrong or out of date, send what is wrong and a link to evidence. Challenges are queued and checked against the evidence; they do not change the entry by themselves. If the entry changes as a result, the change log says so. Form: https://latestn.com/dispute/tool/cursor/permissions-and-security/rotate-service-account-api-key POST: https://latestn.com/dispute/tool/cursor/permissions-and-security/rotate-service-account-api-key with claim, evidence_url, and optionally field and contact (form-encoded or JSON) GET: https://latestn.com/dispute/tool/cursor/permissions-and-security/rotate-service-account-api-key?claim={what is wrong}&evidence_url={link} How to cite: LatestN. (2026). How do I rotate an API key for a Cursor service account? Revision 2, last verified 2026-11-20T12:31:55Z. https://latestn.com/tool/cursor/permissions-and-security/rotate-service-account-api-key (accessed 2026-11-21T10:08:20Z). @misc{LatestN_tool_cursor_permissions_and_security_rotate_service_account_api_key_r2, title = {How do I rotate an API key for a Cursor service account?}, author = {{LatestN}}, year = {2026}, howpublished = {\url{https://latestn.com/tool/cursor/permissions-and-security/rotate-service-account-api-key}}, note = {Revision 2; digest sha256:02e6ed5b2c8f85ca; last verified 2026-11-20T12:31:55Z; accessed 2026-11-21T10:08:20Z} } Reuse: License: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/) Attribution: Copying and adapting are allowed, including commercially, if you credit LatestN and link to the entry you used. Each entry ends with a ready-made citation. URL: https://latestn.com/tool/cursor/permissions-and-security/rotate-service-account-api-key