Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

docs: Key changes in API section (#44994)

Chris Chinchilla9a8ea280edc6
diff --git a/apps/docs/content/guides/api/automatic-retries-in-supabase-js.mdx b/apps/docs/content/guides/api/automatic-retries-in-supabase-js.mdx
index a842d73e1c6..81a47dd1d6e 100644
--- a/apps/docs/content/guides/api/automatic-retries-in-supabase-js.mdx
+++ b/apps/docs/content/guides/api/automatic-retries-in-supabase-js.mdx
@@ -23,7 +23,7 @@ If you prefer to handle retries yourself, you can disable the built-in retry beh
```javascript
import { createClient } from '@supabase/supabase-js'
-const supabase = createClient('https://your-project-id.supabase.co', 'your-anon-key', {
+const supabase = createClient('https://your-project-id.supabase.co', 'your-publishable-key', {
db: {
retry: false,
},
diff --git a/apps/docs/content/guides/api/quickstart.mdx b/apps/docs/content/guides/api/quickstart.mdx
index c00272a7e68..d3050706082 100644
--- a/apps/docs/content/guides/api/quickstart.mdx
+++ b/apps/docs/content/guides/api/quickstart.mdx
@@ -174,15 +174,14 @@ We'll create a database table called `todos` for storing tasks. This creates a c
Find your API URL and Keys in your Dashboard [API Settings](/dashboard/project/_/settings/api). You can now query your "todos" table by appending `/rest/v1/todos` to the API URL.
- Copy this block of code, substitute `<PROJECT_REF>` and `<ANON_KEY>`, then run it from a terminal.
+ Copy this block of code, substitute `<PROJECT_REF>` and `<PUBLISHABLE_KEY>`, then run it from a terminal.
</StepHikeCompact.Details>
<StepHikeCompact.Code>
```bash Terminal
curl 'https://<PROJECT_REF>.supabase.co/rest/v1/todos' \
- -H "apikey: <ANON_KEY>" \
- -H "Authorization: Bearer <ANON_KEY>"
+ -H "apikey: <PUBLISHABLE_KEY>"
```
</StepHikeCompact.Code>
@@ -197,9 +196,9 @@ There are several options for accessing your data:
### Browser
-You can query the route in your browser, by appending the `anon` key as a query parameter:
+You can query the route in your browser, by appending the `publishable` key as a query parameter:
-`https://<PROJECT_REF>.supabase.co/rest/v1/todos?apikey=<ANON_KEY>`
+`https://<PROJECT_REF>.supabase.co/rest/v1/todos?apikey=<PUBLISHABLE_KEY>`
### Client libraries
diff --git a/apps/docs/content/guides/api/securing-your-api.mdx b/apps/docs/content/guides/api/securing-your-api.mdx
index 59d667a4a6e..f065793bb0a 100644
--- a/apps/docs/content/guides/api/securing-your-api.mdx
+++ b/apps/docs/content/guides/api/securing-your-api.mdx
@@ -262,7 +262,7 @@ Some applications can benefit from using additional API keys managed by the appl
<Admonition type="tip">
-Using the `apikey` header with the [Supabase API keys](/docs/guides/api/api-keys) is mandatory and not configurable. If you use additional API keys, you have to distribute both the `anon` API key and your application's custom API key.
+Using the `apikey` header with the [Supabase API keys](/docs/guides/api/api-keys) is mandatory and not configurable. If you use additional API keys, you have to distribute both the `publishable` API key and your application's custom API key.
</Admonition>