scripts
table that belong to the currently authenticated user.
Authentication
This endpoint requires authentication via bearer token representing a valid user session managed by Supabase Auth (cookies).Testing Note: Requires user session.
Request
Bearer token for authentication. Format:
Bearer YOUR_JWT_TOKEN
Response
HTTP status code (e.g., 200).
A descriptive message about the result (e.g., “Scripts retrieved successfully”).
An array containing the user’s script objects from the
scripts
table. Note: The key name folders
seems potentially confusing, it actually contains scripts.Error Codes
Status Code | Description | Example Message |
---|---|---|
401 | Invalid or missing authentication token. | ”Unauthorized” |
500 | Internal server error during processing. | ”Failed to get scripts” |
500 | Database error during fetch. | Specific DB error |
Notes
- Retrieves all scripts belonging to the authenticated user.
- Assumes a
scripts
table exists.
Code Examples
Headers
Bearer token for authentication (JWT)