Cursor errors / Auth

Error: invalid api key provided

platform: Cursor / category: Auth

Cause

The stored API key is malformed, contains invisible whitespace from a browser copy, has been revoked, or is in the wrong provider field.

Fix

Delete the key in Settings > Models > API Keys and retype/paste it as plain text from the provider dashboard, with no leading/trailing spaces or newlines. Verify the key is active and not revoked. Ensure it is in the field matching its provider (Cursor has separate inputs per provider).

Source thread →

Part of the Automation Error Index — Cursor errors: browse all.

Hitting an automation error we have not covered?

AutomateLab builds and debugs n8n, Make, and agent workflows as fixed-scope projects. If something is broken in production, tell us what you are seeing.

Describe the problem