> ## 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.

# Portal List Root Nodes

> Browse root-level content nodes for a hub.

Filters results to only nodes the contact can access (privacy + publish gate).
Public nodes are visible to unauthenticated contacts.



## OpenAPI

````yaml /openapi/mio-openapi.json get /api/v1/hub/{hub_id}/content
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}/content:
    get:
      tags:
        - content-portal
      summary: Portal List Root Nodes
      description: >-
        Browse root-level content nodes for a hub.


        Filters results to only nodes the contact can access (privacy + publish
        gate).

        Public nodes are visible to unauthenticated contacts.
      operationId: content_portal.get_content_portal_get_hub_by_hub_id_content
      parameters:
        - in: path
          name: hub_id
          required: true
          schema:
            title: Hub Id
            type: string
      responses:
        '200':
          content:
            application/vnd.api+json:
              schema:
                $ref: '#/components/schemas/ContentNodeListResponse'
          description: Successful Response
        '422':
          content:
            application/vnd.api+json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
          description: Validation Error
      security:
        - HTTPBearer: []
components:
  schemas:
    ContentNodeListResponse:
      additionalProperties: false
      properties:
        data:
          items:
            $ref: '#/components/schemas/ContentNodeResource'
          title: Data
          type: array
        links:
          additionalProperties: true
          title: Links
          type: object
        meta:
          additionalProperties: true
          title: Meta
          type: object
      required:
        - data
        - meta
        - links
      title: ContentNodeListResponse
      type: object
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          title: Detail
          type: array
      title: HTTPValidationError
      type: object
    ContentNodeResource:
      additionalProperties: false
      properties:
        attributes:
          $ref: '#/components/schemas/ContentNodeAttributes'
        id:
          title: Id
          type: string
        type:
          const: content_nodes
          default: content_nodes
          title: Type
          type: string
      required:
        - id
        - attributes
      title: ContentNodeResource
      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
    ContentNodeAttributes:
      additionalProperties: false
      properties:
        attachments:
          items:
            $ref: '#/components/schemas/ContentNodeAttachment'
          title: Attachments
          type: array
        available_at:
          anyOf:
            - format: date-time
              type: string
            - type: 'null'
          title: Available At
        can_access:
          default: true
          title: Can Access
          type: boolean
        comment_count:
          default: 0
          title: Comment Count
          type: integer
        content_type:
          anyOf:
            - type: string
            - type: 'null'
          title: Content Type
        cover_url:
          anyOf:
            - type: string
            - type: 'null'
          description: >-
            Signed, expiring lesson-artwork cover URL. Null when no eligible
            media source exists, imgproxy is unconfigured, or signing fails.
            Read-only.
          readOnly: true
          title: Cover Url
        cover_url_expires_at:
          anyOf:
            - format: date-time
              type: string
            - type: 'null'
          description: >-
            Expiry timestamp for cover_url. Clients must re-fetch after this to
            get a fresh signed URL. Read-only.
          readOnly: true
          title: Cover Url Expires At
        created_at:
          format: date-time
          title: Created At
          type: string
        deleted_at:
          anyOf:
            - format: date-time
              type: string
            - type: 'null'
          title: Deleted At
        description:
          anyOf:
            - type: string
            - type: 'null'
          title: Description
        duration_seconds:
          anyOf:
            - type: integer
            - type: 'null'
          description: >-
            Media duration in whole seconds for the node's active, same-team
            media (content_nodes.media_id -> Media.duration_seconds). Null when
            the node has no media, the media is missing/deleted/cross-team, or
            the source duration is not yet known. Copied unchanged, never
            fabricated. Read-only.
          readOnly: true
          title: Duration Seconds
        file_id:
          anyOf:
            - type: string
            - type: 'null'
          title: File Id
        hub_id:
          title: Hub Id
          type: string
        is_saved:
          default: false
          title: Is Saved
          type: boolean
        legacy_hash:
          anyOf:
            - type: string
            - type: 'null'
          title: Legacy Hash
        lock_reason:
          anyOf:
            - enum:
                - members_required
                - scheduled
                - private
                - draft
                - drip_unavailable
                - access_restricted
              type: string
            - type: 'null'
          title: Lock Reason
        media_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Media Id
        meta:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Meta
        node_type:
          title: Node Type
          type: string
        parent_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Parent Id
        position:
          title: Position
          type: integer
        privacy:
          title: Privacy
          type: string
        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
        slug:
          anyOf:
            - type: string
            - type: 'null'
          title: Slug
        team_id:
          title: Team Id
          type: string
        title:
          title: Title
          type: string
        unique_viewer_count:
          anyOf:
            - minimum: 0
              type: integer
            - type: 'null'
          readOnly: true
          title: Unique Viewer Count
        updated_at:
          format: date-time
          title: Updated At
          type: string
      required:
        - hub_id
        - team_id
        - parent_id
        - node_type
        - content_type
        - title
        - description
        - slug
        - legacy_hash
        - media_id
        - privacy
        - published_at
        - position
        - meta
        - created_at
        - updated_at
        - deleted_at
      title: ContentNodeAttributes
      type: object
    ContentNodeAttachment:
      additionalProperties: false
      properties:
        file_id:
          anyOf:
            - type: string
            - type: 'null'
          title: File Id
        filename:
          anyOf:
            - type: string
            - type: 'null'
          title: Filename
        id:
          title: Id
          type: string
        media_id:
          title: Media Id
          type: string
        mime_type:
          anyOf:
            - type: string
            - type: 'null'
          title: Mime Type
        role:
          title: Role
          type: string
        size_bytes:
          anyOf:
            - type: integer
            - type: 'null'
          title: Size Bytes
        url:
          anyOf:
            - type: string
            - type: 'null'
          title: Url
      required:
        - id
        - media_id
        - role
      title: ContentNodeAttachment
      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

````