All Recuvix API requests require authentication via a JSON Web Token (JWT).
Recuvix uses Supabase Auth for identity management. Every request to a protected endpoint must include an Authorization header with your session's JWT.
There are several ways to retrieve your JWT depending on your environment:
If you are calling the API from a browser where the user is already logged in, use the Supabase client:
For server-to-server calls, you can exchange user credentials for a session or use a service role key if performing administrative tasks.
supabase.auth.refreshSession().For generation-related endpoints, you must also provide your LLM API key in the request body. This is distinct from the Authorization header.
Never expose your Supabase Service Role Key or your LLM API Keys on the client-side. Always use environment variables and server-side proxies for production applications.