Back to Supabase

Api Keys Deprecation

apps/docs/content/_partials/api_keys_deprecation.mdx

1.26.081.2 KB
Original Source
<Admonition type="deprecation" title="Changes to API keys">

Supabase has changed the way keys work to improve project security and developer experience. You can read the full announcement on GitHub.

They will be deprecated by the end of 2026, and you should now use the publishable (sb_publishable_xxx) and secret (sb_secret_xxx) keys instead.

In most cases, you can get keys from [the Project's Connect dialog](/dashboard/project/_?showConnect=true&connectTab={{ .tab }}&framework={{ .framework }}), but if you want a specific key, you can find them in the Settings > API Keys section of the Dashboard.

  • For new keys, open the API Keys tab, if you don't have a publishable key already, click Create new API Keys, and copy the value from the Publishable key section for client-side operations. For server-side operations, copy the value from the Secret keys section.
  • For legacy keys, copy the anon key for client-side operations and the service_role key for server-side operations from the Legacy API Keys tab.
</Admonition>