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

# List Members

> Return one cursor-paginated page of matching ``team_contact`` IDs.

Inactive segments return an empty page. Deleted segments 404. The
underlying query is a single JOIN with one EXISTS subquery per
condition — no N+1.



## OpenAPI

````yaml /openapi/mio-openapi.json get /api/v1/teams/{team_id}/segments/{segment_id}/members
openapi: 3.1.0
info:
  description: >-
    Production API reference for Membership.io. Use the authored guides for
    workflows and the generated endpoint pages for exact parameters and schemas.
  title: Membership.io API
  version: 0.1.0
servers:
  - description: Production
    url: https://api.member.dev
security:
  - bearerAuth: []
paths:
  /api/v1/teams/{team_id}/segments/{segment_id}/members:
    get:
      tags:
        - segments-admin
      summary: List Members
      description: |-
        Return one cursor-paginated page of matching ``team_contact`` IDs.

        Inactive segments return an empty page. Deleted segments 404. The
        underlying query is a single JOIN with one EXISTS subquery per
        condition — no N+1.
      operationId: >-
        segments_admin.get_segments_admin_get_teams_by_team_id_segments_by_segment_id_members
      parameters:
        - in: path
          name: team_id
          required: true
          schema:
            title: Team Id
            type: string
        - in: path
          name: segment_id
          required: true
          schema:
            title: Segment Id
            type: string
        - in: query
          name: page[after]
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: Page[After]
        - in: query
          name: page[size]
          required: false
          schema:
            default: 50
            maximum: 200
            minimum: 1
            title: Page[Size]
            type: integer
      responses:
        '200':
          content:
            application/vnd.api+json:
              schema:
                $ref: '#/components/schemas/TeamContactRefListResponse'
          description: Successful Response
        '400':
          content:
            application/vnd.api+json:
              schema:
                $ref: '#/components/schemas/JsonApiErrorResponse'
          description: Validation error
        '401':
          content:
            application/vnd.api+json:
              schema:
                $ref: '#/components/schemas/JsonApiErrorResponse'
          description: Not authenticated
        '403':
          content:
            application/vnd.api+json:
              schema:
                $ref: '#/components/schemas/JsonApiErrorResponse'
          description: Forbidden
        '404':
          content:
            application/vnd.api+json:
              schema:
                $ref: '#/components/schemas/JsonApiErrorResponse'
          description: Resource not found
        '409':
          content:
            application/vnd.api+json:
              schema:
                $ref: '#/components/schemas/JsonApiErrorResponse'
          description: Conflict (slug collision or referenced entities exist)
        '415':
          content:
            application/vnd.api+json:
              schema:
                $ref: '#/components/schemas/JsonApiErrorResponse'
          description: Unsupported media type (requires application/vnd.api+json)
        '422':
          content:
            application/vnd.api+json:
              schema:
                $ref: '#/components/schemas/JsonApiErrorResponse'
          description: Unprocessable entity (compile-time reference failures)
      security:
        - HTTPBearer: []
components:
  schemas:
    TeamContactRefListResponse:
      additionalProperties: false
      description: |-
        JSON:API list response for ``team-contact-ref`` resources.

        Returned by ``GET /{segment_id}/members``.  The ``meta`` and ``links``
        shapes mirror the pattern used by other paginated list endpoints in this
        module.
      properties:
        data:
          items:
            $ref: '#/components/schemas/TeamContactRefResource'
          title: Data
          type: array
        links:
          additionalProperties: true
          title: Links
          type: object
        meta:
          additionalProperties: true
          title: Meta
          type: object
      required:
        - data
        - meta
        - links
      title: TeamContactRefListResponse
      type: object
    JsonApiErrorResponse:
      description: Error JSON:API response.
      properties:
        errors:
          items:
            $ref: '#/components/schemas/JsonApiError'
          title: Errors
          type: array
        meta:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Meta
      required:
        - errors
      title: JsonApiErrorResponse
      type: object
    TeamContactRefResource:
      additionalProperties: false
      properties:
        attributes:
          $ref: '#/components/schemas/TeamContactRefAttributes'
        id:
          title: Id
          type: string
        type:
          const: team_contact_ref
          default: team_contact_ref
          title: Type
          type: string
      required:
        - id
        - attributes
      title: TeamContactRefResource
      type: object
    JsonApiError:
      properties:
        code:
          anyOf:
            - type: string
            - type: 'null'
          title: Code
        detail:
          anyOf:
            - type: string
            - type: 'null'
          title: Detail
        id:
          anyOf:
            - type: string
            - type: 'null'
          title: Id
        meta:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Meta
        source:
          anyOf:
            - additionalProperties:
                type: string
              type: object
            - type: 'null'
          title: Source
        status:
          title: Status
          type: string
        title:
          title: Title
          type: string
      required:
        - status
        - title
      title: JsonApiError
      type: object
    TeamContactRefAttributes:
      additionalProperties: false
      description: |-
        Minimal team_contact reference surfaced by segment member endpoints.

        The full team_contact resource lives in the contacts module; this
        lightweight shape carries only the identifiers that the admin
        directory UI needs for paginated list rendering.
      properties:
        contact_id:
          title: Contact Id
          type: string
        team_id:
          title: Team Id
          type: string
      required:
        - team_id
        - contact_id
      title: TeamContactRefAttributes
      type: object
  securitySchemes:
    bearerAuth:
      bearerFormat: JWT or mio_sk API key
      description: >-
        Send platform JWTs, contact JWTs, or team API keys as `Authorization:
        Bearer <token>`.
      scheme: bearer
      type: http
    HTTPBearer:
      scheme: bearer
      type: http

````