---
title: "Get user enrollments"
method: POST
path: "/public/get-user-enrollments"
tags: ["User"]
---

# Get user enrollments

`POST /public/get-user-enrollments`

## Request

- Base URL: `https://backend.codedamn.com/api`
- URL: `https://backend.codedamn.com/api/public/get-user-enrollments`
- Auth: API key in header `FERMION-API-KEY`

Get a list of all active digital product enrollments for a user. Identify the user using either your internal user ID or the user email address.

Authentication with the "FERMION-API-KEY" header is required to use this endpoint.

Rate limit: Maximum 60 requests in a window of 1m.

## Request body

- object
  - `data` object[], required
    - `data` object, required
      - `userId` string: Internal userId you have been using for the user in your database
      - `userEmail` string, email: Email address of the user

## Response `200`

API Response Body

- object[]
  - `output` union, required
    - object
      - `status` 'ok', required
      - `data` object, required
        - `enrollments` object[], required
          - `productTitle` string, required: Title of the digital product
          - `productType` string, required: Type of the digital product (e.g. RecordedCourse, CohortBasedCourse, LiveEventProduct, etc.)
          - `productId` string, required: The Fermion digital product ID
          - `productSlug` string, required: URL slug of the digital product
          - `productLink` string, uri, required: The full URL to access the product on the school website
          - `completionPercentage` number, nullable, required: Percentage of course completed by the user. Returns null for non-course products.
          - `enrolledAt` string, date-time, required: ISO 8601 datetime string of when the user enrolled in the product
    - object
      - `status` 'error', required
      - `errorMessage` string, required

## Changes

- **2026-11-03** `93dda69c8230`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/fermion/apis/fermion-backend-api/changes/public/get-user-enrollments/post.md)

---

[API](https://skmtc.dev/fermion/apis/fermion-backend-api.md) - [All operations](https://skmtc.dev/fermion/apis/fermion-backend-api/llms.txt) - [OpenAPI document](https://skmtc.dev/fermion/apis/fermion-backend-api/revisions/93dda69c8230?raw)
