APIYard
Back to APIs
AuthAPI KeyFree tier

Supabase Auth

Supabase Auth provides email/password, magic link, OTP, and OAuth sign-in with built-in row-level security integration.

Base URL

https://YOUR_PROJECT.supabase.co/auth/v1
magic linkOTPOAuthRLSopen source

Endpoints

POST/signup

Sign up a new user with email and password.

const response = await fetch("https://YOUR_PROJECT.supabase.co/auth/v1/signup", {
  method: "POST",
  headers: {
  "Content-Type": "application/json",
  "apikey": "YOUR_API_KEY"
  },
  body: JSON.stringify({
  "email": "jane@example.com",
  "password": "securepassword"
})
});

const data = await response.json();
console.log(data);

Response Preview

{
  "access_token": "eyJhbGciOi...",
  "token_type": "bearer",
  "expires_in": 3600,
  "refresh_token": "abc123xyz",
  "user": {
    "id": "a1b2c3d4-...",
    "email": "jane@example.com",
    "created_at": "2024-05-01T10:00:00Z"
  }
}