GET /enrollments/me
GET /enrollments/me
Verify authentication with Clerk Get user's profile to get Supabase id Profile doesn't exist yet - return empty enrollments array The profile will be created by /api/users/me on next request Fetch enrollments with related course and instructor data
Endpoint
GET /enrollments/me
Authentication
This endpoint requires authentication. Include your authentication token in the request headers.
Error Responses
| Status Code | Error Code | Description |
|---|---|---|
| 401 | HTTP_401 | Unauthorized |
| 500 | HTTP_500 | Internal Server Error |
| 500 | HTTP_500 | Internal Server Error |
Example Request
curl -X GET "https://api.allurelms.com/enrollments/me" \
-H "Authorization: Bearer YOUR_TOKEN" \
-H "Content-Type: application/json"