Skip to main content
GET
https://api.usegately.com
/
api
/
v1
/
lms
/
enrollments
curl -X GET "https://api.usegately.com/api/v1/lms/enrollments?student_id=user_123" \
  -H "Authorization: Bearer YOUR_API_KEY"
{
  "data": [
    {
      "id": "enroll_123",
      "course_id": "course_456",
      "status": "active",
      "progress_percentage": 45,
      "enrolled_at": "2024-01-01T00:00:00Z",
      "courses": {
        "id": "course_456",
        "title": "Introduction to JavaScript",
        "thumbnail_url": "https://...",
        "level": "beginner",
        "duration_hours": 10
      }
    }
  ]
}
Retrieve course enrollments for a student.

Query Parameters

student_id
string
required
The student ID to get enrollments for

Response

data
array
Array of enrollment objects with course details
curl -X GET "https://api.usegately.com/api/v1/lms/enrollments?student_id=user_123" \
  -H "Authorization: Bearer YOUR_API_KEY"
{
  "data": [
    {
      "id": "enroll_123",
      "course_id": "course_456",
      "status": "active",
      "progress_percentage": 45,
      "enrolled_at": "2024-01-01T00:00:00Z",
      "courses": {
        "id": "course_456",
        "title": "Introduction to JavaScript",
        "thumbnail_url": "https://...",
        "level": "beginner",
        "duration_hours": 10
      }
    }
  ]
}