> ## Documentation Index
> Fetch the complete documentation index at: https://nango-wari-migrated-bigcommerce-docs.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Supabase

> Integrate your application with the Supabase API

## 🚀 Quickstart

Connect to Supabase with Nango and see data flow in 2 minutes.

<Steps>
  <Step title="Create the integration">
    In Nango ([free signup](https://app.nango.dev)), go to [Integrations](https://app.nango.dev/dev/integrations) -> *Configure New Integration* -> *Supabase*.
  </Step>

  <Step title="Connect Supabase">
    Go to [Connections](https://app.nango.dev/dev/connections) -> *Add Test Connection* -> enter your **Project URL** and **secret key**. Later, you'll let your users do the same directly from your app.
  </Step>

  <Step title="Call the Supabase API">
    Make your first request to the Supabase REST API (query a table). Replace the placeholders below: use your [secret key](https://app.nango.dev/dev/environment-settings), [integration ID](https://app.nango.dev/dev/integrations), and [connection ID](https://app.nango.dev/dev/connections), and replace `<your_table>` with your table name (e.g. `todos`, `users`).

    <Tabs>
      <Tab title="cURL">
        ```bash theme={null}
        curl "https://api.nango.dev/proxy/rest/v1/<your_table>" \
          -H "Authorization: Bearer <NANGO-SECRET-KEY>" \
          -H "Provider-Config-Key: <INTEGRATION-ID>" \
          -H "Connection-Id: <CONNECTION-ID>"
        ```
      </Tab>

      <Tab title="Node">
        Install Nango's backend SDK with `npm i @nangohq/node`. Then run:

        ```typescript theme={null}
        import { Nango } from '@nangohq/node';

        const nango = new Nango({ secretKey: '<NANGO-SECRET-KEY>' });

        const res = await nango.get({
            endpoint: '/rest/v1/<your_table>',
            providerConfigKey: '<INTEGRATION-ID>',
            connectionId: '<CONNECTION-ID>'
        });

        console.log(res.data);
        ```
      </Tab>
    </Tabs>

    Or fetch credentials with the [Node SDK](/reference/sdks/node#get-a-connection-with-credentials) or [API](/reference/api/connection/get).

    ✅ You're connected! Check the [Logs](https://app.nango.dev/dev/logs) tab in Nango to inspect requests.
  </Step>

  <Step title="Implement Nango in your app">
    Follow our [Auth implementation guide](/guides/primitives/auth) to integrate Nango in your app.

    To obtain your Project URL and secret key, follow the connect guide linked below.
  </Step>
</Steps>

## 📚 Supabase Integration Guides

* [Connect to Supabase](/api-integrations/supabase/connect)\
  Find your Project URL and secret key, then enter them in the Connect UI

Official docs: [Supabase API](https://supabase.com/docs/guides/api/quickstart)

## 🧩 Pre-built syncs & actions for Supabase

Enable them in your dashboard. Extend and customize to fit your needs.

### Others

| Function name              | Description                                                                                                                     | Type                                           | Source code                                                                                                                       |
| -------------------------- | ------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------- |
| `copy-storage-object`      | Copy a storage object within or between buckets in Supabase.                                                                    | [Action](/guides/functions/action-functions)   | [🔗 Github](https://github.com/NangoHQ/integration-templates/blob/main/integrations/supabase/actions/copy-storage-object.ts)      |
| `create-auth-user`         | Create an auth user in Supabase.                                                                                                | [Action](/guides/functions/action-functions)   | [🔗 Github](https://github.com/NangoHQ/integration-templates/blob/main/integrations/supabase/actions/create-auth-user.ts)         |
| `create-signed-upload-url` | Generate a signed URL that allows a client to upload a file directly to Supabase Storage without exposing the service role key. | [Action](/guides/functions/action-functions)   | [🔗 Github](https://github.com/NangoHQ/integration-templates/blob/main/integrations/supabase/actions/create-signed-upload-url.ts) |
| `create-signed-url`        | Generate a time-limited signed URL for accessing a private storage object.                                                      | [Action](/guides/functions/action-functions)   | [🔗 Github](https://github.com/NangoHQ/integration-templates/blob/main/integrations/supabase/actions/create-signed-url.ts)        |
| `create-storage-bucket`    | Create a storage bucket in Supabase.                                                                                            | [Action](/guides/functions/action-functions)   | [🔗 Github](https://github.com/NangoHQ/integration-templates/blob/main/integrations/supabase/actions/create-storage-bucket.ts)    |
| `create-storage-object`    | Upload a storage object to Supabase Storage.                                                                                    | [Action](/guides/functions/action-functions)   | [🔗 Github](https://github.com/NangoHQ/integration-templates/blob/main/integrations/supabase/actions/create-storage-object.ts)    |
| `delete-auth-factor`       | Delete an MFA factor for a user in Supabase.                                                                                    | [Action](/guides/functions/action-functions)   | [🔗 Github](https://github.com/NangoHQ/integration-templates/blob/main/integrations/supabase/actions/delete-auth-factor.ts)       |
| `delete-auth-user`         | Delete or archive a auth user in Supabase.                                                                                      | [Action](/guides/functions/action-functions)   | [🔗 Github](https://github.com/NangoHQ/integration-templates/blob/main/integrations/supabase/actions/delete-auth-user.ts)         |
| `delete-storage-bucket`    | Delete or archive a storage bucket in Supabase.                                                                                 | [Action](/guides/functions/action-functions)   | [🔗 Github](https://github.com/NangoHQ/integration-templates/blob/main/integrations/supabase/actions/delete-storage-bucket.ts)    |
| `delete-storage-object`    | Delete or archive a storage object in Supabase.                                                                                 | [Action](/guides/functions/action-functions)   | [🔗 Github](https://github.com/NangoHQ/integration-templates/blob/main/integrations/supabase/actions/delete-storage-object.ts)    |
| `delete-table-rows`        | Delete rows from a Supabase table.                                                                                              | [Action](/guides/functions/action-functions)   | [🔗 Github](https://github.com/NangoHQ/integration-templates/blob/main/integrations/supabase/actions/delete-table-rows.ts)        |
| `generate-auth-link`       | Generate a magic link, OTP, invite, signup, or recovery link for a user.                                                        | [Action](/guides/functions/action-functions)   | [🔗 Github](https://github.com/NangoHQ/integration-templates/blob/main/integrations/supabase/actions/generate-auth-link.ts)       |
| `get-auth-user`            | Retrieve a single auth user from Supabase.                                                                                      | [Action](/guides/functions/action-functions)   | [🔗 Github](https://github.com/NangoHQ/integration-templates/blob/main/integrations/supabase/actions/get-auth-user.ts)            |
| `get-storage-bucket`       | Retrieve a single storage bucket from Supabase.                                                                                 | [Action](/guides/functions/action-functions)   | [🔗 Github](https://github.com/NangoHQ/integration-templates/blob/main/integrations/supabase/actions/get-storage-bucket.ts)       |
| `get-storage-object`       | Retrieve metadata for a single storage object from Supabase.                                                                    | [Action](/guides/functions/action-functions)   | [🔗 Github](https://github.com/NangoHQ/integration-templates/blob/main/integrations/supabase/actions/get-storage-object.ts)       |
| `insert-table-row`         | Insert a row into a Supabase table.                                                                                             | [Action](/guides/functions/action-functions)   | [🔗 Github](https://github.com/NangoHQ/integration-templates/blob/main/integrations/supabase/actions/insert-table-row.ts)         |
| `invoke-rpc`               | Call a Supabase Postgres function via PostgREST.                                                                                | [Action](/guides/functions/action-functions)   | [🔗 Github](https://github.com/NangoHQ/integration-templates/blob/main/integrations/supabase/actions/invoke-rpc.ts)               |
| `list-auth-factors`        | List MFA factors enrolled for a specific user in Supabase.                                                                      | [Action](/guides/functions/action-functions)   | [🔗 Github](https://github.com/NangoHQ/integration-templates/blob/main/integrations/supabase/actions/list-auth-factors.ts)        |
| `list-auth-users`          | List auth users from Supabase.                                                                                                  | [Action](/guides/functions/action-functions)   | [🔗 Github](https://github.com/NangoHQ/integration-templates/blob/main/integrations/supabase/actions/list-auth-users.ts)          |
| `list-storage-buckets`     | List storage buckets from Supabase.                                                                                             | [Action](/guides/functions/action-functions)   | [🔗 Github](https://github.com/NangoHQ/integration-templates/blob/main/integrations/supabase/actions/list-storage-buckets.ts)     |
| `list-storage-objects`     | List storage objects from Supabase.                                                                                             | [Action](/guides/functions/action-functions)   | [🔗 Github](https://github.com/NangoHQ/integration-templates/blob/main/integrations/supabase/actions/list-storage-objects.ts)     |
| `query-table-rows`         | Query rows from a Supabase table through PostgREST.                                                                             | [Action](/guides/functions/action-functions)   | [🔗 Github](https://github.com/NangoHQ/integration-templates/blob/main/integrations/supabase/actions/query-table-rows.ts)         |
| `update-auth-user`         | Update an auth user in Supabase.                                                                                                | [Action](/guides/functions/action-functions)   | [🔗 Github](https://github.com/NangoHQ/integration-templates/blob/main/integrations/supabase/actions/update-auth-user.ts)         |
| `update-storage-bucket`    | Update a storage bucket in Supabase.                                                                                            | [Action](/guides/functions/action-functions)   | [🔗 Github](https://github.com/NangoHQ/integration-templates/blob/main/integrations/supabase/actions/update-storage-bucket.ts)    |
| `update-storage-object`    | Update a storage object in Supabase.                                                                                            | [Action](/guides/functions/action-functions)   | [🔗 Github](https://github.com/NangoHQ/integration-templates/blob/main/integrations/supabase/actions/update-storage-object.ts)    |
| `update-table-rows`        | Update rows in a Supabase table.                                                                                                | [Action](/guides/functions/action-functions)   | [🔗 Github](https://github.com/NangoHQ/integration-templates/blob/main/integrations/supabase/actions/update-table-rows.ts)        |
| `upsert-table-row`         | Insert or update a row in a Supabase table, merging on conflict.                                                                | [Action](/guides/functions/action-functions)   | [🔗 Github](https://github.com/NangoHQ/integration-templates/blob/main/integrations/supabase/actions/upsert-table-row.ts)         |
| `auth-users`               | Sync auth users from Supabase.                                                                                                  | [Sync](/guides/functions/syncs/sync-functions) | [🔗 Github](https://github.com/NangoHQ/integration-templates/blob/main/integrations/supabase/syncs/auth-users.ts)                 |
| `storage-buckets`          | Sync storage buckets from Supabase                                                                                              | [Sync](/guides/functions/syncs/sync-functions) | [🔗 Github](https://github.com/NangoHQ/integration-templates/blob/main/integrations/supabase/syncs/storage-buckets.ts)            |
| `storage-objects`          | Sync storage objects from Supabase.                                                                                             | [Sync](/guides/functions/syncs/sync-functions) | [🔗 Github](https://github.com/NangoHQ/integration-templates/blob/main/integrations/supabase/syncs/storage-objects.ts)            |
| `table-rows`               | Sync rows from a configured Supabase table.                                                                                     | [Sync](/guides/functions/syncs/sync-functions) | [🔗 Github](https://github.com/NangoHQ/integration-templates/blob/main/integrations/supabase/syncs/table-rows.ts)                 |

***
