#45 most commonenv/configLovableBolt.newCursorReplitv0Windsurf
Invalid API key / No API key found in request (Supabase)
{"message":"Invalid API key","hint":"Double check your Supabase `anon` or `service_role` API key."} / No API key found in request
Got a slightly different error? Paste the exact message and get a fix prompt tailored to it.
Paste your error →What it means
The key your app uses to talk to Supabase is wrong, belongs to a different project, or is missing. Often keys were copied from an old project or rotated.
How to fix it: paste this prompt into your AI builder
Fix prompt for Lovable, Bolt, Cursor, Replit, v0, Windsurf
Supabase says "Invalid API key". Check that the Supabase URL and anon/publishable key come from the SAME project, are read from env vars with the right names, and contain no extra spaces or quotes. Make sure the browser uses only the anon/publishable key and server code uses the service key from a server-only env var. Don't change anything else.
If the AI can't fix it: manual steps
- Copy fresh values from Supabase Project Settings, API; update them on your host, and redeploy.
Where this happens
Seen in these AI app builders and editors:
LovableBolt.newCursorReplitv0Windsurf
Sources
Related env/config errors
Still stuck? Paste your full error and UnstuckMyVibe will match it and hand you the exact fix prompt.
Fix my error →