SupabaseS
Supabase6mo ago
stub

Error generating types after upgrading to new api keys

Hey gang! Running into an issue generating types. I upgraded to the new api keys today because I was excited to use getClaims() instead of getuser() and hitting the server every time. It went well, and my app is functioning properly now. Only issue is, I can't generate types anymore. I tried it through the dashboard via Api Docs, as well as through the CLI.

I'm receiving the following error:

failed to retrieve generated types: {"message":"{"message":"Legacy API keys are disabled","hint":"Your legacy API keys (anon, service_role) were disabled on 2025-07-16T21:39:21.342182+00:00. Re-enable them in the Supabase dashboard, or use the new publishable and secret API keys."}"}

I've already migrated to the new keys in the dashboard. Where, exactly, do I make this fix so that my types again?
Was this page helpful?