Files
supabase/apps/docs/content/guides/integrations/build-a-supabase-integration.mdx
b53403e1d7 docs(integrations): add Build a Supabase integration guide (#54088)
## Problem

The steps to build a Supabase integration are spread across five pages:
the Partner Catalog page, creating an OAuth app, OAuth scopes, the
partner install flow, and the Management API reference. A partner has no
single page that says where to start or what to do next. Linear:
DOCS-1720.

## Solution

Add one guide, **Build a Supabase integration**, as the first item under
**Build Your Own** in the integrations sidebar. It does not repeat the
detail on the other pages. It links to them.

- **The path at a glance:** two short paths. Partner Catalog: apply,
build a landing page, publish. Integration: apply, build the OAuth flow,
build the integration, publish.
- **Apply to the Partners program**, then **Choose: Partner Catalog or
Integration**, a comparison table with wireframe images (SVG, light and
dark).
- **Partner Catalog: Build your landing page** and **Integration**
(build the OAuth flow, build the integration), each with "Build it"
cards that link to the top of the existing page.
- **Publish:** ask the partner manager to list the partner on the
Partner Catalog or the Integrations page.
- Removes the redirect from
`/docs/guides/integrations/build-a-supabase-integration` to the OAuth
guide, so the new page is reachable at that URL. The old `/oauth-scopes`
redirect stays.
- The progression and card data is in
`apps/docs/data/content-listings/build-a-supabase-integration.data.ts`.

Not in this PR: edits to the existing pages. The cards link to page
tops, so nothing here depends on those edits.

## Please check

- The five progression icons are placeholders from the built-in set. New
icons are coming.
- The table images sit inside table cells with a fixed width. I checked
them in the dev server only.
- I rendered the page with `pnpm dev` and ran `oxfmt --check` on the
changed files. I did not run the docs tests or `build:guides-markdown`.
- Two details are unverified: how partners hand their public key to
Supabase for a signed redirect, and partner status callbacks. The guide
does not describe either.
- The Dashboard Integrations tab wireframe is a drawing, not a
screenshot.

## Preview links

| Site | Live | Preview | Search for |
| ---- | ---- | ------- | ---------- |
| Docs |
[/docs/guides/integrations/build-a-supabase-integration](https://supabase.com/docs/guides/integrations/build-a-supabase-integration)
(redirects to the OAuth guide until this merges) | Vercel bot comment |
`The path at a glance` |

🤖 Generated with [Claude Code](https://claude.com/claude-code)

---------

Co-authored-by: John Stokvis <345546350+stokvis-at-supabase@users.noreply.github.com>
Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-authored-by: Nik Richers <nik@validmind.ai>
Co-authored-by: John Stokvis <johnstokvis@Johns-MacBook-Pro.local>
2026-12-01 09:53:58 -06:00

64 lines
8.6 KiB
Plaintext

---
title: 'Build a Supabase Integration'
description: "Register an OAuth app, build the install flow, and call the Management API to read and change your users' Supabase projects and organizations on their behalf."
---
Connect your product to your users' Supabase projects. This guide covers two paths: a Partner Catalog listing, and an OAuth integration that reads and changes user projects through the Management API.
## The path at a glance
Apply to the Partners program first, then decide whether you want to be part of the Partner Catalog or build an integration. Select a step to go to its section.
### Partner Catalog path
<ContentListings id="build-integration-catalog-path" />
### Integration path
<ContentListings id="build-integration-integration-path" />
## Apply to the Partners program
Supabase lists companies that meet the [listing criteria](/docs/guides/integrations/partner-catalog). When you apply, choose **Marketplace Partner** as the partnership type. The **Apply as Integration Partner** button on the Partners page preselects **Technology Partner**, so change the selection in the form.
[Apply to the Partners program](/partners)
## Choose: Partner Catalog or Integration
The following table compares the two ways to reach Supabase users.
| | Partner Catalog | Integration |
| -------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| What you build | A landing page with a setup guide for integrating your product with Supabase | An OAuth app, an install flow, and Management API calls |
| What users see | A listing in the Partner Catalog with an **Add integration** button | A listing in the Integrations tab in the user's Supabase Dashboard with an **Install integration** button |
| Where it lives | A page on supabase.com, outside the Dashboard<br /><Image alt="Wireframe of the Partner Catalog index page on supabase.com: a heading, an Apply as a Partner button, and a grid of partner cards grouped by category" src={{ dark: '/docs/img/guides/integrations/partner-catalog-index.svg', light: '/docs/img/guides/integrations/partner-catalog-index--light.svg' }} width={360} height={196} className="rounded-md" style={{ width: 240, maxWidth: '100%', height: 'auto' }} /> | A tab inside the Supabase Dashboard<br /><Image alt="Wireframe of the Integrations tab in the Supabase Dashboard: a list of integrations grouped by category" src={{ dark: '/docs/img/guides/integrations/integrations-tab.svg', light: '/docs/img/guides/integrations/integrations-tab--light.svg' }} width={360} height={196} className="rounded-md" style={{ width: 240, maxWidth: '100%', height: 'auto' }} /> |
| What the button does | **Add integration** links out to your landing page<br /><Image alt="Wireframe of a Partner Catalog listing: the partner name and an Add integration button that links out to the partner site" src={{ dark: '/docs/img/guides/integrations/partner-catalog-listing.svg', light: '/docs/img/guides/integrations/partner-catalog-listing--light.svg' }} width={360} height={118} className="rounded-md" style={{ width: 240, maxWidth: '100%', height: 'auto' }} /> | **Install integration** sends users to your install URL, then into the OAuth flow<br /><Image alt="Wireframe of an Integrations tab listing: the partner name and an Install integration button" src={{ dark: '/docs/img/guides/integrations/integrations-tab-listing.svg', light: '/docs/img/guides/integrations/integrations-tab-listing--light.svg' }} width={360} height={118} className="rounded-md" style={{ width: 240, maxWidth: '100%', height: 'auto' }} /> |
## Partner Catalog: Build your landing page
Use this path for a Partner Catalog listing. The **Add integration** button on your listing links to a landing page on your site. You can link to your homepage or your docs. A Supabase-specific guide can help explain how the user configures their project to use Supabase and your APIs.
<ContentListings id="build-integration-landing-page-build" />
When your landing page is ready, [share it with your partner manager](#publish).
## Integration
Use this path for an integration. You build the OAuth flow so users can connect, then call the Management API on their behalf.
### Build the OAuth flow
The OAuth flow is how a user lets your app act securely on their Supabase organization and projects. The user chooses which organization to connect and approves the scopes you request. Your app then gets an access token limited to those scopes, so it never sees the user's password. The user can revoke access at any time. Do steps 1 and 2 first. Steps 3 and 4 work together: the redirect endpoint starts the OAuth flow that step 4 implements, so build them as a pair.
<ContentListings id="build-integration-oauth-build" />
### Build the integration
Call the Management API with the access token to read and change your users' organizations and projects. With it, your app can list a user's organizations and projects, read project settings and API keys, run database migrations, deploy Edge Functions and manage their secrets, and create projects. What your app can do depends on the scopes the user approved.
<ContentListings id="build-integration-api-build" />
## Publish
After you test the flow against a project you own, ask your partner manager to list you on the [Partner Catalog](/partners/catalog) or in the Integrations tab of the Supabase Dashboard.