Skip to content

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

feat(docs): render experimental badge for Management API endpoints

Johan Bergström63718b4b844c
diff --git a/apps/docs/features/docs/Reference.api.utils.ts b/apps/docs/features/docs/Reference.api.utils.ts
index 2d87c920508..c1073479446 100644
--- a/apps/docs/features/docs/Reference.api.utils.ts
+++ b/apps/docs/features/docs/Reference.api.utils.ts
@@ -27,6 +27,7 @@ export interface IApiEndPoint {
'x-oauth-scope'?: string
'x-allowed-plans'?: string[]
'x-fga-permissions'?: string[][]
+ 'x-scalar-stability'?: 'experimental'
}
export type ISchema =
diff --git a/apps/docs/features/docs/Reference.sections.tsx b/apps/docs/features/docs/Reference.sections.tsx
index a95baa199b0..6ed123c01ac 100644
--- a/apps/docs/features/docs/Reference.sections.tsx
+++ b/apps/docs/features/docs/Reference.sections.tsx
@@ -297,15 +297,21 @@ async function ApiEndpointSection({ link, section, servicePath }: ApiEndpointSec
.filter((code) => code.startsWith('2'))
.sort()[0]
+ const stabilityLabel = endpointDetails.deprecated
+ ? 'deprecated'
+ : endpointDetails['x-scalar-stability'] === 'experimental'
+ ? 'experimental'
+ : undefined
+
return (
<RefSubLayout.Section columns="double" link={link} {...section}>
<StickyHeader
title={
<>
{endpointDetails.summary}
- {endpointDetails.deprecated && (
+ {stabilityLabel && (
<Badge variant="warning" className="ml-2">
- deprecated
+ {stabilityLabel}
</Badge>
)}
</>