This endpoint requires authentication via bearer token representing a valid user session managed by Supabase Auth (cookies).Testing Note: Due to the requirement for a live user session, this endpoint cannot be successfully tested directly using the ‘Send’ button in this documentation with a static token.To test:
Call this endpoint from your web application after logging in.
Use curl or a similar tool with a valid, current user JWT obtained from your browser’s session after logging in.
Retrieving JWT Token for Testing:To test endpoints requiring a user session with tools like curl, you need the JWT access token stored by Supabase Auth in your browser.
Log in to your application normally in your browser.
Open Developer Tools (usually F12).
Go to the Application tab (it might be called Storage in Firefox).
Under the Storage section, find Cookies and select your application’s domain (e.g., http://localhost:3000 or https://onlyautomator.com).
Look for a cookie named similar to sb-access-token (the exact name might vary slightly based on Supabase configuration).
Copy the entire value of this cookie. This is your Bearer token.
Use this copied value in the Authorization: Bearer <your_copied_token> header for your curl or other API tool requests.
Note: This token has a limited lifetime and you’ll need to copy a fresh one after it expires.