Review Cursor API key details when Drive sharing changes
Make a Drive sharing change a cue to review the authenticated Cursor API key's returned name, creation date, and owner email.
Trigger
File Shared (Permissions Added)
Triggers when new sharing permissions are granted to a file or folder. Uses Drive's `changes.list` endpoint with inline `permissions` in the `fields` mask so each change carries the file's current permission set provider-atomically. We diff that against `seen_permission_keys` to identify newly added grants. Drive page tokens are the primary cursor; if Drive rejects a stored token, the trigger raises `PollingTriggerError` without clearing state rather than silently re-baselining and dropping events. Limitation: truly ephemeral permissions (added and revoked between two polls without any other file modification in between) are not detected. Drive Activity API would catch those but requires an additional OAuth scope and a different payload contract.
Action
Get API Key Info
Tool to retrieve API key information including the key name, creation date, and owner email. Use when you need to verify API key details or validate authentication.
Why this helps
Access reviews can slip when permission changes and integration credential checks sit in separate workflows.
- Use a new Drive permission as a prompt for an access review.
- See the key name, creation date, and owner email returned by Cursor.
- Keep the check visible in a run report for follow-up.
Setup
Build it in a few focused steps.
- 1Connect Google Drive and Cursor once in the Notis portal.
- 2Create an automation in Automations, New Automation, and give it a clear name and prompt.
- 3In one instruction, tell Notis to retrieve Cursor API key information and summarize the returned metadata for review after the sharing event.
- 4Pick File Shared (Permissions Added) as the trigger and choose where run reports should go.
- 5Test with a real file or folder sharing change and review the run report.
Questions about this workflow
Does the workflow validate or rotate the key?
No. The available action retrieves key information, including name, creation date, and owner email. It does not rotate or change the key.
Does a Drive share change prove the Cursor key is exposed?
No. The event is only a review cue. The returned Cursor key details do not establish a connection between the Drive permission change and key use.
When this happens · Trigger
Do this · Action
Supported Triggers and Actions
Notis builds workflows that link Google Drive to Cursor. A trigger fires from one place; an action lands in another.
Google Drive triggers
Cursor actions
Recurring trigger
Notis starts this workflow on a schedule, such as daily, weekly, or during business hours.
Get Agent Conversation
Tool to retrieve the conversation history for a specific cloud agent. Use when you need to view the messages exchanged between the user and the agent. Returns error with status 404 if the agent is not found or access is denied.
Webhook trigger
Notis starts this workflow when an external tool or custom backend sends an HTTP request.
Get API Key Info
Tool to retrieve API key information including the key name, creation date, and owner email. Use when you need to verify API key details or validate authentication.
Comment Added (Docs/Sheets/Slides)
Triggers when a new comment is added to Google Docs, Sheets, or Slides.
List Agents
Tool to retrieve a paginated list of all Cursor Cloud agents. Use when you need to view existing agents, their status, or iterate through agents with pagination.
File Created
Triggers when a new file is created in Google Drive.
List Available Models
Tool to retrieve the list of available AI models in Cursor. Use when you need to discover which models are available for API requests.
File Deleted or Trashed
Triggers when a file is moved to trash or permanently deleted in Drive.
List GitHub Repositories
Tool to list GitHub repositories accessible to the authenticated user. Use when you need to retrieve all repositories the user has access to through their Cursor account.
File Shared (Permissions Added)
Triggers when new sharing permissions are granted to a file or folder. Uses Drive's `changes.list` endpoint with inline `permissions` in the `fields` mask so each change carries the file's current permission set provider-atomically. We diff that against `seen_permission_keys` to identify newly added grants. Drive page tokens are the primary cursor; if Drive rejects a stored token, the trigger raises `PollingTriggerError` without clearing state rather than silently re-baselining and dropping events. Limitation: truly ephemeral permissions (added and revoked between two polls without any other file modification in between) are not detected. Drive Activity API would catch those but requires an additional OAuth scope and a different payload contract.
File Updated
Triggers when a file's metadata or content changes in Google Drive.
Google Drive Changes
Triggers when changes are detected in a Google Drive.
Connect any two apps with Notis in the middle.
Google Drive and Cursor, or any other combination from 1,000+ integrations.
When this happens · Trigger
Do this · Action
Save your first hour today.
7-day trial of any paid plan, with 20$ of usage included.
No card. Works with personal or business Cursor.