Get User Data
User API
Get User Data
Retrieve authenticated user’s profile information and enrolled courses list
GET
Get User Data
Authentication
This endpoint requires authentication via Clerk. TheuserId is automatically extracted from the authentication token.
Response
Indicates whether the request was successful
User profile data
Error message if success is false
Response Examples
Error Codes
| Status Code | Description |
|---|---|
| 200 | Success or user not found (check success field) |
| 401 | Unauthorized - Invalid or missing authentication token |
| 500 | Internal server error |