Skip to main content
GET
/
edubridge
/
enrollments
/
user
/
{userId}
Get all active enrollments for a user
curl --request GET \
  --url https://api.alpha-1edtech.ai/edubridge/enrollments/user/{userId} \
  --header 'Authorization: Bearer <token>'
{
  "data": [
    {
      "id": "123",
      "role": "administrator",
      "beginDate": "<string>",
      "endDate": "<string>",
      "course": {
        "id": "<string>",
        "title": "<string>",
        "metadata": {},
        "subjects": [
          "<string>"
        ],
        "grades": [
          "<string>"
        ],
        "primaryApp": {
          "id": "<string>",
          "name": "<string>",
          "domains": [
            "<string>"
          ]
        }
      },
      "school": {
        "id": "<string>",
        "name": "<string>"
      },
      "metadata": {
        "goals": {
          "dailyXp": 123,
          "dailyLessons": 123,
          "dailyActiveMinutes": 123,
          "dailyAccuracy": 123,
          "dailyMasteredUnits": 123
        },
        "metrics": {
          "totalXp": 123,
          "totalLessons": 123,
          "totalGrades": 123,
          "courseType": "<string>",
          "isSupplemental": true
        }
      }
    }
  ]
}

Authorizations

Authorization
string
header
required

The access token received from the authorization server in the OAuth 2.0 flow.

Path Parameters

userId
string
required

The unique identifier for the user

Response

200 - application/json

Successful response

data
object[]
required