Overview

To authenticate with Supabase, you need the following:

  1. Project URL - The unique project reference URL for your Supabase project
  2. API Key - The anon or service_role API key for your Supabase project

This guide will walk you through finding those credentials within Supabase.


Prerequisites

  • You must have administrative access to your Supabase project.
  • Ensure you have permission to generate and manage API keys.

Step 1: Find your project URL

  1. In your Supabase dashboard, go to Project Settings at the bottom left > Data API.
  1. Under the Project URL section, copy the URL value.

Step 2: Get your API Key

  1. In your Supabase dashboard, go to Project Settings at the bottom left > Data API.
  1. Under Project API keys, copy the anon or service_role key.
  1. Use the service_role key for admin access, or anon for public access. The anon key is safe to use in a browser if Row Level Security is enabled for your tables and configured policies, while the service_role key has the ability to bypass Row Level Security.

Step 3: Connect your Supabase account

To authenticate using your API credentials, navigate to the Supabase authentication form. Enter your credentials as follows:

  • Project URL: Your Supabase project URL
  • API Key: Your Supabase anon or service_role key

Click “Connect” to complete the authentication.