---
title: "List a student's domain memberships"
method: GET
path: "/v2/students/{id}/relationships/domain-memberships/"
tags: ["Students"]
---

# List a student's domain memberships

`GET /v2/students/{id}/relationships/domain-memberships/`

## Request

- Base URL: `https://api.skilljar.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.skilljar.com/v2/students/{id}/relationships/domain-memberships/`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/skilljar/apis/skilljar-api-v2/docs/v2/students/:id/relationships/domain-memberships/get.ts> (a function with typed inputs; its response is checked against the schema)

List the domain memberships for a single student, cursor-paginated.

Returns 404 if the student is not in the caller's organization.

**Required OAuth scope:** `students:read`

## Path parameters

- `id` string, required

## Query parameters

- `filter[active]` boolean, nullable: Filter by active/inactive membership.
- `page[size]` integer: Maximum number of records to return.
- `page[cursor]` string, nullable: Opaque cursor from the previous page's links.next.

## Response `200`

OK

- PaginatedListResponseDomainMembershipResource
  - `data` DomainMembershipResource[], required: The resources on this page, in cursor order.
    - `type` 'domain-memberships': Always "domain-memberships".
    - `id` string, required: Obfuscated id of the DomainMembership row.
    - `attributes` DomainMembershipAttributes, required: Attributes of a domain-membership resource object.
      - `active` boolean, required: Whether the membership currently grants access.
      - `expires_at` string, date-time, nullable: Expiry timestamp, or null if it does not expire.
      - `created_at` string, date-time, required: Timestamp when the membership was created.
      - `modified_at` string, date-time, required: Timestamp when the membership was last modified.
    - `relationships` DomainMembershipRelationships, required: Relationships of a domain-membership resource object.
      - `domain` DomainRelationship, required: To-one linkage to the domain the course is published to. Local strict variant — see ``DomainIdentifier`` above.
        - `data` DomainIdentifier, required: JSON:API resource identifier for a domain (publish **request** body). Deliberately stricter than the shared ``api_v2.infrastructure.relationships`` variant: ``type`` is a required ``Literal`` and ``data`` is required, so a malformed publish linkage is rejected as 422. Kept local (not consolidated onto the shared permissive version) for that reason.
          - `type` 'domains', required: Must be "domains".
          - `id` string, required: Opaque domain id.
    - `links` object, nullable: Self link for the membership.
  - `meta` object, nullable: Pagination metadata, e.g. {"page_size": 25}.
  - `links` PaginationLinks: JSON:API §Links object for a paginated collection. Typed rather than a free-form ``dict`` so ``next`` reaches the generated OpenAPI/SDK/MCP contract. Since GE-256227 removed the top-level ``next_cursor``, ``links.next`` is the only pagination affordance a machine consumer has — an untyped ``dict`` would leave it undiscoverable.
    - `self` string, nullable: Path of the current request, relative and without its query string (so every page of a filtered collection reports the same value).
    - `next` string, nullable: Relative path of the next page, ready to request as-is. Carries ``page[cursor]`` plus every non-cursor query param from the current request (``page[size]``, ``filter[*]``, ``include``). Null on the last page.
    - `prev` string, nullable: Relative path of the previous page. Not implemented — currently always null.
  - `included` object[], nullable: Related resources requested via ?include=. Absent when no include was requested.

## Other responses

- `400`: Bad Request: page[cursor] is not a valid cursor.
- `401`: Unauthorized
- `403`: Forbidden
- `404`: Not Found
- `406`: Not Acceptable: Accept rules out application/vnd.api+json.

## Changes

- **2026-10-16** `bed169429eb2`: 1 breaking, 1 warning, 4 info
  - removed the required property `has_more` from the response with the `200` status
  - removed the optional property `next_cursor` from the response with the `200` status
  - added the non-success response with the status `400`
  - added the non-success response with the status `406`
  - …2 more
- **2026-09-15** `9fc34e55336d`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/skilljar/apis/skilljar-api-v2/changes/v2/students/:id/relationships/domain-memberships/get.md)

---

[API](https://skmtc.dev/skilljar/apis/skilljar-api-v2.md) - [All operations](https://skmtc.dev/skilljar/apis/skilljar-api-v2/llms.txt) - [OpenAPI document](https://skmtc.dev/skilljar/apis/skilljar-api-v2/revisions/fbda30ce1742?raw)
