GET Get user enrollments
Retrieve all course enrollments for a specific user with optional filtering by status and progress details
Retrieve all course enrollments for a specific user with optional filtering by status and progress details
AuthorizationBearer <token>
Send API keys and access tokens as Authorization: Bearer .
In: header
Path Parameters
id*string
User ID (internal UUID)
Format
uuidQuery Parameters
limit?integer
Maximum number of results to return
Range
1 <= value <= 100Default
25offset?integer
Number of results to skip for pagination
Range
0 <= valueDefault
0status?string
Filter enrollments by status
Value in
- "enrolled"
- "in_progress"
- "completed"
- "withdrawn"
include_progress?boolean
Include progress summary statistics
Default
falseResponse Body
application/json
application/json
application/json
application/json
application/json
curl -X GET "https://example.com/users/{id}/enrollments"{ "data": [ { "id": "{id}", "user_id": "{user_id}", "course_id": "{course_id}", "enrolled_at": "2019-08-24T14:15:22Z", "completed_at": "2019-08-24T14:15:22Z", "progress_percentage": 0, "status": "enrolled", "last_accessed_at": "2019-08-24T14:15:22Z", "course": { "id": "{id}", "title": "string", "slug": "string", "category": "string", "duration_minutes": 0, "difficulty_level": "string", "is_published": true } } ], "meta": { "user": { "id": "{id}", "email": "string", "display_name": "string", "first_name": "string", "last_name": "string" }, "total": 0, "limit": 0, "offset": 0, "filters": { "status": "string", "include_progress": true }, "summary": { "total_enrollments": 0, "completed_count": 0, "in_progress_count": 0, "withdrawn_count": 0, "completion_rate": 0, "average_progress": 0 }, "organization_id": "{organization_id}", "rls_validation": { "enforced": true, "organization_isolated": true } }}{ "error": { "code": "UNAUTHORIZED", "message": "string" }}{ "error": { "code": "FORBIDDEN", "message": "string", "required_scope": "enrollments:read" }}{ "error": { "code": "NOT_FOUND", "message": "string" }}{ "error": { "code": "INTERNAL_ERROR", "message": "string" }}