---
title: "List all enrollments"
method: GET
path: "/api/v2/paths/{pathId}/enrollments"
tags: ["Paths"]
---

# List all enrollments

`GET /api/v2/paths/{pathId}/enrollments`

> 🔑
>
> Required OAuth scope: `paths:read`.

> 📖
>
> This endpoint is paginated with a page size of 5,000 enrollments. For more information, see the [Pagination guide](https://360learning.readme.io/docs/pagination).

Lists all enrollments for the given path.

## Path parameters

- `pathId` string, ObjectId, required

## Query parameters

- `status` object
  - `eq` 'archived' | 'published' — Filter on values equal to the given one
- `createdAt` object
  - `lt` string, date-time — Filter on dates lower than the given one
  - `gte` string, date-time — Filter on dates greater than or equal the given one
- `modifiedAt` object
  - `lt` string, date-time — Filter on dates lower than the given one
  - `gte` string, date-time — Filter on dates greater than or equal the given one
- `sessionId` object
  - `eq` string, ObjectId — Filter on values equal to the given one
  - `ne` string, ObjectId — Filter on values not equal to the given one
  - `in` string[] — Filter on values including the given ones
  - `nin` string[] — Filter on values excluding the given ones

## Headers

- `360-api-version` 'v2.0', required

## Response `200`

Returns one page of 5000 enrollments.

- PathEnrollmentDTO[]
  - `_id` string, ObjectId, required — The unique ID of the user enrollment.
  - `archivedAt` string, date-time — The date and time when the enrollment was archived from the path session, in the `YYYY-MM-DDThh:mm:ss.sssZ` format (ISO 8601 in Coordinated Universal Time (UTC)).
  - `createdAt` string, date-time, required — The date and time when the learner enrolled to the path session, in the `YYYY-MM-DDThh:mm:ss.sssZ` format (ISO 8601 in Coordinated Universal Time (UTC)).
  - `isSelfEnrolled` boolean, required — True if the user self-enrolled in the given path session; false otherwise.
  - `modifiedAt` string, date-time — The date and time when the learner enrollment has been updated, in the `YYYY-MM-DDThh:mm:ss.sssZ` format (ISO 8601 in Coordinated Universal Time (UTC)).
  - `sessionId` string, ObjectId, required — The unique ID of the path session.
  - `status` 'archived' | 'published', required — The status of the enrollment.
  - `userId` string, ObjectId, required — The unique ID of the user.

## Other responses

- `401` — The given access token is either missing, invalid, has expired, or has been revoked.
- `403` — The given access token does not have the required OAuth scope to execute the request.
- `404` — The given `pathId` does not correspond to any existing path.
- `429` — The client has sent too many requests in a short amount of time.

---

[API](https://skmtc.net/360learning/apis/core-api.md) · [All operations](https://skmtc.net/360learning/apis/core-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/360learning/core-api/versions/94b691b0b72c/schema)
