GET /activity/recent
GET /activity/recent
Use service role client to bypass RLS for profile lookup Verify authentication with Clerk Get user's profile to get Supabase id Fetch recent activity completions Note: learning_activities and course_modules tables may not exist yet Return empty array for now if table doesn't exist If table doesn't exist or query fails, return empty array
Endpoint
GET /activity/recent
Authentication
This endpoint requires authentication. Include your authentication token in the request headers.
Error Responses
| Status Code | Error Code | Description |
|---|---|---|
| 401 | HTTP_401 | Unauthorized |
| 404 | HTTP_404 | Not Found |
| 500 | HTTP_500 | Internal Server Error |
Example Request
curl -X GET "https://api.allurelms.com/activity/recent" \
-H "Authorization: Bearer YOUR_TOKEN" \
-H "Content-Type: application/json"