API Documentation
Introduction
API Reference for IntelliQ
Authentication
This API uses Supabase authentication with server-side rendering (SSR) middleware. Authentication is handled through cookies and the Supabase client.
How it works
- The API uses Supabase’s
createServerClient
for authentication - Authentication state is maintained through cookies
- The middleware automatically handles:
- Cookie parsing from requests
- Cookie setting in responses
- Supabase client initialization
You don’t need to manually handle authentication tokens. The Supabase SSR middleware automatically manages the session through cookies.
Required Headers
When making requests, ensure your cookies are properly sent with the request. The middleware will handle the rest of the authentication process.