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

Example Request

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