> ## Documentation Index
> Fetch the complete documentation index at: https://solidroad.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# List enrollments

> GET /v2/enrollments lists every enrollment in your workspace, across assignments, on one list.

```
GET https://api.solidroad.com/v2/enrollments
```

Scope: `assignments:read`.

This list holds every enrollment in your workspace, across assignments. A sync reads this one list, so it does not need a call for each assignment. Read [Syncing](https://solidroad.mintlify.site/api-reference/v2/syncing.md#enrollments).

To read the learners in one assignment, use [List an assignment's enrollments](https://solidroad.mintlify.site/api-reference/v2/endpoint/assignments/enrollments.md). The rows are the same in both lists.

The list sorts on `updatedAt`, newest first. Send `order=asc` for oldest first.

The list leaves out enrollments on a deleted assignment. [`GET /v2/deletions`](https://solidroad.mintlify.site/api-reference/v2/syncing#removed-records) lists them.

## Query parameters

| Parameter | Type | Default | Meaning |
| - | - | - | - |
| `limit` | integer | `50` | 1 to 100 records on a page. |
| `cursor` | string | none | `nextCursor` from the previous page. |
| `order` | string | `desc` | `asc` or `desc` on `updatedAt`. |
| `filter` | string | none | A CEL expression over the fields below. |

Read [Lists](https://solidroad.mintlify.site/api-reference/v2/lists.md) for how the parameters work, and [Filtering](https://solidroad.mintlify.site/api-reference/v2/filtering.md) for the filter syntax.

## Filter fields

| Field | Kind | Can be empty | Values |
| - | - | - | - |
| `assignmentId` | ID | No | An assignment ID, `asg_…` |
| `learnerId` | ID | No | A person ID, `ppl_…` |
| `enrolledAt` | Time | No | `timestamp("…")` |
| `updatedAt` | Time | No | `timestamp("…")` |

These are the only fields that you can filter on. Read [Filtering](https://solidroad.mintlify.site/api-reference/v2/filtering.md) for the syntax and the operators that each kind takes.

You cannot filter on `completedAt` here. To filter on it, use [List an assignment's enrollments](https://solidroad.mintlify.site/api-reference/v2/endpoint/assignments/enrollments.md).

You cannot filter on `status` or on a group here. To filter on them, use [List an assignment's enrollments](https://solidroad.mintlify.site/api-reference/v2/endpoint/assignments/enrollments.md), which takes `status` and `groupId` for one assignment. To find enrollments with one status across assignments, read this list and check `status` in your code.

## Request

```bash theme={null}
curl --get https://api.solidroad.com/v2/enrollments \
  -H "Authorization: Bearer $SOLIDROAD_API_KEY" \
  --data-urlencode 'filter=updatedAt >= timestamp("2026-10-28T09:10:00Z")' \
  --data-urlencode "order=asc" \
  --data-urlencode "limit=100"
```

To read one learner's enrollments across assignments, filter on `learnerId`:

```bash theme={null}
curl --get https://api.solidroad.com/v2/enrollments \
  -H "Authorization: Bearer $SOLIDROAD_API_KEY" \
  --data-urlencode 'filter=learnerId == "ppl_00000000-0000-4000-8000-000000000001"'
```

## Response

`data` is a list of [enrollment objects](https://solidroad.mintlify.site/api-reference/v2/endpoint/assignments/enrollments.md#enrollment-object).

```json theme={null}
{
  "data": [
    {
      "id": "enr_00000000-0000-4000-8000-000000000001",
      "object": "enrollment",
      "assignmentId": "asg_00000000-0000-4000-8000-000000000001",
      "learnerId": "ppl_00000000-0000-4000-8000-000000000001",
      "status": "passed",
      "averageScore": 86,
      "submittedItems": 2,
      "totalItems": 2,
      "enrolledAt": "2026-10-02T08:00:00.000Z",
      "completedAt": "2026-10-21T15:28:44.120Z",
      "createdAt": "2026-10-02T08:00:00.000Z",
      "updatedAt": "2026-10-28T15:32:10.044Z",
      "appUrl": "https://app.solidroad.com/dashboard/assignments/asg_00000000-0000-4000-8000-000000000001/records/enr_00000000-0000-4000-8000-000000000001"
    },
    {
      "id": "enr_00000000-0000-4000-8000-000000000003",
      "object": "enrollment",
      "assignmentId": "asg_00000000-0000-4000-8000-000000000002",
      "learnerId": "ppl_00000000-0000-4000-8000-000000000001",
      "status": "in_progress",
      "submittedItems": 1,
      "totalItems": 3,
      "enrolledAt": "2026-10-16T08:00:00.000Z",
      "createdAt": "2026-10-16T08:00:00.000Z",
      "updatedAt": "2026-10-29T16:40:12.004Z",
      "appUrl": "https://app.solidroad.com/dashboard/assignments/asg_00000000-0000-4000-8000-000000000002/records/enr_00000000-0000-4000-8000-000000000003"
    }
  ],
  "hasMore": false
}
```

## Errors

| Status | `code` | Cause |
| - | - | - |
| 400 | `invalid_request` | A parameter, the filter or the cursor is not valid. |
| 401 | `unauthorized` | The API key is missing or not valid. |
| 403 | `insufficient_scope` | The key does not have `assignments:read`. |
| 429 | `rate_limited` | You sent too many requests. |

Read [Errors](https://solidroad.mintlify.site/api-reference/v2/errors.md) for every code.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.