Skip to main content

Authentication API

Login User

POST /auth/login

Authenticate a user with email and password
Base URL: https://rzqklwfhwqmviintncqh.supabase.co/functions/v1

Request

string
required
application/json
string
required
Your Supabase anon key
string
required
User’s email address
string
required
User’s password

Response

boolean
Indicates if the request was successful
number
HTTP status code
string
Response message
object

Register User

POST /auth/register

Create a new user account

Request

string
required
application/json
string
required
Your Supabase anon key
string
required
User’s full name
string
required
User’s email address
string
required
User’s password (minimum 8 characters)

Response

Similar to login response with newly created user data.

Create Password

POST /auth/create-password

Set or update user password

Request

string
required
User’s email address
string
required
New password to set
string
required
Verification code issued by the password reset flow

Response

string
Success message
object
User data and new access token

Error Codes

All authentication endpoints return JWT tokens that expire after 2 hours. Store tokens securely and handle expiration gracefully in your application.