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

# List Registrations

> List registrations with keyset pagination (admin only).

Uses cursor-based pagination for efficient handling of large datasets.
Returns enriched data with user/course/ship names.
Supports search by user name, email, or course title via ?search= param.
Search is handled via SQL subqueries in the repository layer.



## OpenAPI

````yaml /openapi.json get /api/v1/learn/registrations
openapi: 3.1.0
info:
  title: Seamind Backend
  version: 0.1.0
servers: []
security: []
paths:
  /api/v1/learn/registrations:
    get:
      tags:
        - learn-registrations
      summary: List Registrations
      description: |-
        List registrations with keyset pagination (admin only).

        Uses cursor-based pagination for efficient handling of large datasets.
        Returns enriched data with user/course/ship names.
        Supports search by user name, email, or course title via ?search= param.
        Search is handled via SQL subqueries in the repository layer.
      operationId: list_registrations_api_v1_learn_registrations_get
      parameters:
        - name: status
          in: query
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            description: Filter by status
            title: Status
          description: Filter by status
        - name: course_id
          in: query
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            description: Filter by course (single UUID or comma-separated UUIDs for OR)
            title: Course Id
          description: Filter by course (single UUID or comma-separated UUIDs for OR)
        - name: ship_id
          in: query
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            description: Filter by ship (single UUID or comma-separated UUIDs for OR)
            title: Ship Id
          description: Filter by ship (single UUID or comma-separated UUIDs for OR)
        - name: role
          in: query
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            description: Filter by role (single role or comma-separated roles for OR)
            title: Role
          description: Filter by role (single role or comma-separated roles for OR)
        - name: limit
          in: query
          required: false
          schema:
            type: integer
            maximum: 1000
            minimum: 1
            description: Items per page
            default: 10
            title: Limit
          description: Items per page
        - name: cursor
          in: query
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            description: Pagination cursor
            title: Cursor
          description: Pagination cursor
        - name: search
          in: query
          required: false
          schema:
            anyOf:
              - type: string
                maxLength: 200
              - type: 'null'
            description: Search term
            title: Search
          description: Search term
        - name: include_count
          in: query
          required: false
          schema:
            type: boolean
            description: Include total count
            default: false
            title: Include Count
          description: Include total count
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PaginatedResponse_RegistrationDetailDTO_'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - HTTPBearer: []
components:
  schemas:
    PaginatedResponse_RegistrationDetailDTO_:
      properties:
        items:
          items:
            $ref: '#/components/schemas/RegistrationDetailDTO'
          type: array
          title: Items
        nextCursor:
          anyOf:
            - type: string
            - type: 'null'
          title: Nextcursor
        hasMore:
          type: boolean
          title: Hasmore
          default: false
        totalCount:
          anyOf:
            - type: integer
            - type: 'null'
          title: Totalcount
      type: object
      required:
        - items
      title: PaginatedResponse[RegistrationDetailDTO]
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    RegistrationDetailDTO:
      properties:
        id:
          type: string
          format: uuid
          title: Id
        userName:
          type: string
          title: Username
        userEmail:
          type: string
          title: Useremail
        courseTitle:
          type: string
          title: Coursetitle
        shipName:
          type: string
          title: Shipname
        role:
          type: string
          title: Role
        status:
          type: string
          title: Status
        completedAt:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Completedat
        scorePercent:
          anyOf:
            - type: integer
            - type: 'null'
          title: Scorepercent
        timeSpentSeconds:
          type: integer
          title: Timespentseconds
          default: 0
        attemptCount:
          type: integer
          title: Attemptcount
          default: 0
        createdAt:
          type: string
          format: date-time
          title: Createdat
      type: object
      required:
        - id
        - userName
        - userEmail
        - courseTitle
        - shipName
        - role
        - status
        - completedAt
        - createdAt
      title: RegistrationDetailDTO
      description: Registration/progress info for API responses with denormalized data.
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    HTTPBearer:
      type: http
      scheme: bearer

````