> Note for AI agents: For other pages, see [llms.txt](https://supabase.com/docs/llms.txt).

# Build a Supabase Integration

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

1. **[Apply](#apply-to-the-partners-program):** Partners program
2. **[Build your landing page](#partner-catalog-build-your-landing-page):** Guide for users to integrate
3. **[Publish](#publish):** Users find you

### Integration path

1. **[Apply](#apply-to-the-partners-program):** Partners program
2. **[Build the OAuth flow](#build-the-oauth-flow):** Users connect securely
3. **[Build the integration](#build-the-integration):** Management API
4. **[Publish](#publish):** Users find you

## Apply to the Partners program

Supabase lists companies that meet the [listing criteria](https://supabase.com/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](https://supabase.com/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![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](https://supabase.com/docs/img/guides/integrations/partner-catalog-index.svg) | A tab inside the Supabase Dashboard![Wireframe of the Integrations tab in the Supabase Dashboard: a list of integrations grouped by category](https://supabase.com/docs/img/guides/integrations/integrations-tab.svg)                                            |
| What the button does | **Add integration** links out to your landing page![Wireframe of a Partner Catalog listing: the partner name and an Add integration button that links out to the partner site](https://supabase.com/docs/img/guides/integrations/partner-catalog-listing.svg)                      | **Install integration** sends users to your install URL, then into the OAuth flow![Wireframe of an Integrations tab listing: the partner name and an Install integration button](https://supabase.com/docs/img/guides/integrations/integrations-tab-listing.svg) |

## 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.

### Build it

- **[Postgres connection](https://supabase.com/docs/guides/database/connecting-to-postgres):** Connect any Postgres client or driver to a project's database.
- **[Project REST API](https://supabase.com/docs/guides/api):** Read and write a project's data over HTTP, with client libraries.
- **[Project GraphQL API](https://supabase.com/docs/guides/graphql):** Query a project's data with GraphQL.

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.

#### Build it

- **[1. Create an OAuth app](https://supabase.com/docs/guides/integrations/build-a-supabase-oauth-integration):** In your organization's settings, open the OAuth Apps tab and click Publish OAuth app.
- **[2. Choose scopes](https://supabase.com/docs/guides/integrations/build-a-supabase-oauth-integration/oauth-scopes):** Request only the permissions your integration needs.
- **[3. Build the redirect endpoint](https://supabase.com/docs/guides/integrations/partner-integration-guide):** Handle the users that the Install integration button sends to your install URL.
- **[4. Implement the OAuth flow](https://supabase.com/docs/guides/integrations/build-a-supabase-oauth-integration#show-a-connect-supabase-button):** Send users to Supabase to approve access, exchange the code for tokens, and refresh them.

### 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.

#### Build it

- **[Management API reference](https://supabase.com/docs/reference/api/introduction):** Look up the endpoints your scopes allow.

## Publish

After you test the flow against a project you own, ask your partner manager to list you on the [Partner Catalog](https://supabase.com/partners/catalog) or in the Integrations tab of the Supabase Dashboard.
