API endpoint for retrieving subscriber preferences
Authentication Requirements
curl or a similar tool with a valid, current user JWT obtained from your browser’s session after logging in.curl, you need the JWT access token stored by Supabase Auth in your browser.
http://localhost:3000 or https://onlyautomator.com).sb-access-token (the exact name might vary slightly based on Supabase configuration).Authorization: Bearer <your_copied_token> header for your curl or other API tool requests.Bearer YOUR_JWT_TOKENapplication/jsondata array:
| Error Code | Description |
|---|---|
validation_error | A required parameter is missing or invalid |
authentication_required | No valid authentication token provided |
permission_denied | Token lacks required permissions |
resource_not_found | Fan not found with the provided ID |
service_unavailable | The preference service is temporarily unavailable |
| Category | Description | Example Preferences |
|---|---|---|
content | Content preferences | likes_fitness, prefers_photos, enjoys_long_videos |
messaging | Messaging preferences | prefers_voice_messages, responds_to_text, morning_messages |
tipping | Tipping behavior | frequent_tipper, high_value_tipper, special_occasion_tipper |
scheduling | Timing preferences | active_weekends, evening_chatter, timezone_gmt_minus_8 |
Standard user JWT token for authentication.
Bearer token for authentication (JWT)
Unique identifier of the subscriber/fan whose preferences should be retrieved
Optional filter to retrieve only preferences of a specific category