> ## 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 Hub Playlist Cards



## OpenAPI

````yaml /openapi/mio-openapi.json get /api/v1/hub/{hub_id}/playlist-cards
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/hub/{hub_id}/playlist-cards:
    get:
      tags:
        - media-member-hub-media
      summary: List Hub Playlist Cards
      operationId: >-
        media_member_hub_media.get_media_member_hub_media_get_hub_by_hub_id_playlist_cards
      parameters:
        - in: path
          name: hub_id
          required: true
          schema:
            title: Hub Id
            type: string
        - in: query
          name: page[size]
          required: false
          schema:
            default: 20
            maximum: 100
            minimum: 1
            title: Page[Size]
            type: integer
        - in: query
          name: page[after]
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: Page[After]
        - in: query
          name: filter[playlist_id]
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: Filter[Playlist Id]
      responses:
        '200':
          content:
            application/vnd.api+json:
              schema:
                $ref: '#/components/schemas/HubPlaylistCardListResponse'
          description: Successful Response
        '422':
          content:
            application/vnd.api+json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
          description: Validation Error
      security:
        - HTTPBearer: []
components:
  schemas:
    HubPlaylistCardListResponse:
      description: Collection response wrapping a list of HubPlaylistCardResource.
      properties:
        data:
          items:
            $ref: '#/components/schemas/JsonApiResource_HubPlaylistCardAttributes_'
          title: Data
          type: array
        included:
          anyOf:
            - items: {}
              type: array
            - type: 'null'
          title: Included
        links:
          anyOf:
            - $ref: '#/components/schemas/JsonApiPaginationLinks'
            - type: 'null'
        meta:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Meta
      required:
        - data
      title: HubPlaylistCardListResponse
      type: object
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          title: Detail
          type: array
      title: HTTPValidationError
      type: object
    JsonApiResource_HubPlaylistCardAttributes_:
      properties:
        attributes:
          $ref: '#/components/schemas/HubPlaylistCardAttributes'
        id:
          title: Id
          type: string
        links:
          anyOf:
            - $ref: '#/components/schemas/JsonApiLinks'
            - type: 'null'
        meta:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Meta
        relationships:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Relationships
        type:
          title: Type
          type: string
      required:
        - id
        - type
        - attributes
      title: JsonApiResource[HubPlaylistCardAttributes]
      type: object
    JsonApiPaginationLinks:
      properties:
        next:
          anyOf:
            - type: string
            - type: 'null'
          title: Next
        self:
          anyOf:
            - type: string
            - type: 'null'
          title: Self
      title: JsonApiPaginationLinks
      type: object
    ValidationError:
      properties:
        ctx:
          title: Context
          type: object
        input:
          title: Input
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          title: Location
          type: array
        msg:
          title: Message
          type: string
        type:
          title: Error Type
          type: string
      required:
        - loc
        - msg
        - type
      title: ValidationError
      type: object
    HubPlaylistCardAttributes:
      properties:
        available_at:
          anyOf:
            - format: date-time
              type: string
            - type: 'null'
          title: Available At
        can_access:
          title: Can Access
          type: boolean
        created_at:
          format: date-time
          title: Created At
          type: string
        description:
          anyOf:
            - type: string
            - type: 'null'
          title: Description
        drip_available_at:
          anyOf:
            - format: date-time
              type: string
            - type: 'null'
          title: Drip Available At
        duration_seconds:
          anyOf:
            - type: integer
            - type: 'null'
          description: >-
            Total time of the playlist in seconds: the summed playback duration
            of its time-based media PLUS the estimated read time of its text
            lessons (asset_kind 'document'). Display-only -- nothing computes
            against it, and viewer progress is completion-count based. In
            practice a playlist with no timing data at all reports 0, not null
            -- the playback SUM coalesces to 0 -- so treat 0 as 'nothing to
            show' rather than 'instant'.
          title: Duration Seconds
        file_count:
          description: Number of items in the playlist, regardless of kind or access.
          title: File Count
          type: integer
        hub_id:
          title: Hub Id
          type: string
        lock_reason:
          anyOf:
            - enum:
                - members_required
                - scheduled
                - private
                - draft
                - drip_unavailable
                - access_restricted
              type: string
            - type: 'null'
          title: Lock Reason
        playlist_id:
          title: Playlist Id
          type: string
        position:
          title: Position
          type: integer
        published_at:
          anyOf:
            - format: date-time
              type: string
            - type: 'null'
          title: Published At
        scheduled_at:
          anyOf:
            - format: date-time
              type: string
            - type: 'null'
          title: Scheduled At
        target:
          $ref: '#/components/schemas/HubPlaylistCardTarget'
        thumbnail:
          anyOf:
            - $ref: '#/components/schemas/HubPlaylistCardThumbnail'
            - type: 'null'
        title:
          title: Title
          type: string
        updated_at:
          format: date-time
          title: Updated At
          type: string
        viewer_progress:
          anyOf:
            - $ref: '#/components/schemas/HubPlaylistCardViewerProgress'
            - type: 'null'
        visibility:
          title: Visibility
          type: string
      required:
        - hub_id
        - playlist_id
        - title
        - file_count
        - visibility
        - can_access
        - position
        - created_at
        - updated_at
        - target
      title: HubPlaylistCardAttributes
      type: object
    JsonApiLinks:
      properties:
        self:
          anyOf:
            - type: string
            - type: 'null'
          title: Self
      title: JsonApiLinks
      type: object
    HubPlaylistCardTarget:
      properties:
        href:
          anyOf:
            - type: string
            - type: 'null'
          title: Href
        id:
          title: Id
          type: string
        type:
          const: playlist
          default: playlist
          title: Type
          type: string
      required:
        - id
      title: HubPlaylistCardTarget
      type: object
    HubPlaylistCardThumbnail:
      properties:
        expires_at:
          anyOf:
            - format: date-time
              type: string
            - type: 'null'
          title: Expires At
        url:
          title: Url
          type: string
      required:
        - url
      title: HubPlaylistCardThumbnail
      type: object
    HubPlaylistCardViewerProgress:
      properties:
        aggregate_percent:
          title: Aggregate Percent
          type: integer
        completed_count:
          title: Completed Count
          type: integer
        file_count:
          title: File Count
          type: integer
      required:
        - completed_count
        - file_count
        - aggregate_percent
      title: HubPlaylistCardViewerProgress
      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

````