Skip to main content
If you are looking to send Supabase authentication emails with Loops, check out our Supabase SMTP docs.
Our Supabase integration lets you:
  • Create and update contacts
  • Send events to trigger loops
Our Supabase integration is built on top of our Incoming webhooks feature. This system lets you send webhooks from supported platforms directly to Loops so you can easily sync users and customers as well as send automated emails. Please read our guide about incoming webhooks With Supabase, you can keep your user data synced to Loops so you can send emails to your userbase.

Supported events

We accept the following database events for the auth.users table:
  • INSERT
  • UPDATE
  • DELETE
Supabase database webhooks docs Events from other tables will be ignored.

Synced data

For INSERT and UPDATE events, we sync the following Supabase data to your Loops contacts:
  • User ID
  • Email address
  • First and last name (optional)
We use the IDs of Supabase users to match contacts in your Loops audience. If the user ID is not found in Loops, we will create a new contact. First and last names are populated from metadata in the auth.users table. Key names should be first_name and last_name.
const { data, error } = await supabase.auth.signUp({
  email: '[email protected]',
  password: 'example-password',
  options: {
    data: {
      first_name: 'John',
      last_name: 'Doe',
    },
  },
})
More information about metadata in Supabase can be found in the Supabase documentation. DELETE events can be used to delete or unsubscribe your Supabase users from your Loops audience.

Create a webhook endpoint in Loops

Follow the instructions here to create a new webhook endpoint, which will allow you to send webhook events directly to Loops.