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

# Mark All Conversations Read

> Mark all DM conversations in a hub as read.

Accepts an optional `up_to` timestamp in attributes; defaults to now (UTC).
Timestamps in the future are clamped to now. Returns 200 with a
conversation_read_receipts resource containing the final timestamp and
the number of audience rows updated.

Returns 404 when the hub does not exist.
Returns 403 when the caller is banned or not an active hub member.
Requires Content-Type: application/vnd.api+json.



## OpenAPI

````yaml /openapi/mio-openapi.json post /api/v1/hubs/{hub_id}/conversations/mark-all-read
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/hubs/{hub_id}/conversations/mark-all-read:
    post:
      tags:
        - community-conversations
      summary: Mark All Conversations Read
      description: >-
        Mark all DM conversations in a hub as read.


        Accepts an optional `up_to` timestamp in attributes; defaults to now
        (UTC).

        Timestamps in the future are clamped to now. Returns 200 with a

        conversation_read_receipts resource containing the final timestamp and

        the number of audience rows updated.


        Returns 404 when the hub does not exist.

        Returns 403 when the caller is banned or not an active hub member.

        Requires Content-Type: application/vnd.api+json.
      operationId: >-
        community_conversations.post_community_conversations_post_hubs_by_hub_id_conversations_mark_all_read
      parameters:
        - in: path
          name: hub_id
          required: true
          schema:
            title: Hub Id
            type: string
      requestBody:
        content:
          application/vnd.api+json:
            schema:
              $ref: '#/components/schemas/MarkAllReadEnvelope'
        required: true
      responses:
        '200':
          content:
            application/vnd.api+json:
              schema:
                $ref: '#/components/schemas/JsonApiResponse_ReadReceiptAttributes_'
          description: Successful Response
        '422':
          content:
            application/vnd.api+json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
          description: Validation Error
      security:
        - HTTPBearer: []
components:
  schemas:
    MarkAllReadEnvelope:
      description: |-
        JSON:API envelope for POST .../mark-all-read.

        data.type must be 'conversation_read_receipts'.
        data.attributes.up_to is an optional TZ-aware ISO-8601 datetime.
      properties:
        data:
          $ref: '#/components/schemas/_MarkAllReadData'
      required:
        - data
      title: MarkAllReadEnvelope
      type: object
    JsonApiResponse_ReadReceiptAttributes_:
      properties:
        data:
          $ref: >-
            #/components/schemas/app__infrastructure__base_schema__JsonApiResource_ReadReceiptAttributes___1
        included:
          anyOf:
            - items: {}
              type: array
            - type: 'null'
          title: Included
        links:
          anyOf:
            - $ref: '#/components/schemas/JsonApiLinks'
            - type: 'null'
        meta:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Meta
      required:
        - data
      title: JsonApiResponse[ReadReceiptAttributes]
      type: object
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          title: Detail
          type: array
      title: HTTPValidationError
      type: object
    _MarkAllReadData:
      properties:
        attributes:
          $ref: '#/components/schemas/_MarkAllReadAttributes'
        type:
          const: conversation_read_receipts
          default: conversation_read_receipts
          title: Type
          type: string
      title: _MarkAllReadData
      type: object
    app__infrastructure__base_schema__JsonApiResource_ReadReceiptAttributes___1:
      properties:
        attributes:
          $ref: '#/components/schemas/app__community__schemas__ReadReceiptAttributes'
        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[ReadReceiptAttributes]
      type: object
    JsonApiLinks:
      properties:
        self:
          anyOf:
            - type: string
            - type: 'null'
          title: Self
      title: JsonApiLinks
      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
    _MarkAllReadAttributes:
      properties:
        up_to:
          anyOf:
            - format: date-time
              type: string
            - type: 'null'
          title: Up To
      title: _MarkAllReadAttributes
      type: object
    app__community__schemas__ReadReceiptAttributes:
      description: Attributes for the mark-all-read receipt resource.
      properties:
        marked_count:
          title: Marked Count
          type: integer
        read_at:
          title: Read At
          type: string
      required:
        - read_at
        - marked_count
      title: ReadReceiptAttributes
      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

````