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 CodeError CodeDescription
401HTTP_401Unauthorized
404HTTP_404Not Found
500HTTP_500Internal Server Error

Example Request

curl -X GET "https://api.allurelms.com/activity/recent" \
  -H "Authorization: Bearer YOUR_TOKEN" \
  -H "Content-Type: application/json"