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

# Get Hub Archived Unread Total

> Return how many of the caller's archived conversations in a hub have unread messages.

Counts conversations, not messages. Archived conversations are excluded from
unread-total, so this is where an unread archived conversation surfaces.

Returns 200 with a conversation_archived_unread_totals resource containing the total.
Returns 403 when the caller is banned or not an active hub member.
Returns 404 when the hub is missing/soft-deleted or disables the
directMessages portal feature.



## OpenAPI

````yaml /openapi/mio-openapi.json get /api/v1/hubs/{hub_id}/conversations/archived-unread-total
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/archived-unread-total:
    get:
      tags:
        - community-conversations
      summary: Get Hub Archived Unread Total
      description: >-
        Return how many of the caller's archived conversations in a hub have
        unread messages.


        Counts conversations, not messages. Archived conversations are excluded
        from

        unread-total, so this is where an unread archived conversation surfaces.


        Returns 200 with a conversation_archived_unread_totals resource
        containing the total.

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

        Returns 404 when the hub is missing/soft-deleted or disables the

        directMessages portal feature.
      operationId: >-
        community_conversations.get_community_conversations_get_hubs_by_hub_id_conversations_archived_unread_total
      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/JsonApiResponse_ArchivedUnreadTotalAttributes_
          description: Successful Response
        '422':
          content:
            application/vnd.api+json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
          description: Validation Error
      security:
        - HTTPBearer: []
components:
  schemas:
    JsonApiResponse_ArchivedUnreadTotalAttributes_:
      properties:
        data:
          $ref: '#/components/schemas/JsonApiResource_ArchivedUnreadTotalAttributes_'
        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[ArchivedUnreadTotalAttributes]
      type: object
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          title: Detail
          type: array
      title: HTTPValidationError
      type: object
    JsonApiResource_ArchivedUnreadTotalAttributes_:
      properties:
        attributes:
          $ref: '#/components/schemas/ArchivedUnreadTotalAttributes'
        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[ArchivedUnreadTotalAttributes]
      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
    ArchivedUnreadTotalAttributes:
      description: Attributes for the hub-level archived unread total resource.
      properties:
        total:
          description: >-
            Number of the caller's archived conversations in the hub that hold
            at least one unread message. Counts conversations, not messages.
          title: Total
          type: integer
      required:
        - total
      title: ArchivedUnreadTotalAttributes
      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

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.