> ## 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 deliverability stats for a hub (rolling 24h)



## OpenAPI

````yaml /openapi/mio-openapi.json get /v1/hubs/{hub_id}/email-stats
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:
  /v1/hubs/{hub_id}/email-stats:
    get:
      tags:
        - email-stats
      summary: Get deliverability stats for a hub (rolling 24h)
      operationId: email_stats.get_email_stats_get_v1_hubs_by_hub_id_email_stats
      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_HubEmailStatsOut_'
          description: Successful Response
        '422':
          content:
            application/vnd.api+json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
          description: Validation Error
      security:
        - HTTPBearer: []
components:
  schemas:
    JsonApiResponse_HubEmailStatsOut_:
      properties:
        data:
          $ref: '#/components/schemas/JsonApiResource_HubEmailStatsOut_'
        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[HubEmailStatsOut]
      type: object
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          title: Detail
          type: array
      title: HTTPValidationError
      type: object
    JsonApiResource_HubEmailStatsOut_:
      properties:
        attributes:
          $ref: '#/components/schemas/HubEmailStatsOut'
        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[HubEmailStatsOut]
      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
    HubEmailStatsOut:
      description: |-
        Attributes block for a ``hub_email_stats`` resource object.

        Mirrors the attributes dict built in get_hub_email_stats (§6.8).
      properties:
        bounce_rate:
          anyOf:
            - type: number
            - type: 'null'
          title: Bounce Rate
        bounced_hard_24h:
          anyOf:
            - type: integer
            - type: 'null'
          title: Bounced Hard 24H
        bounced_soft_24h:
          anyOf:
            - type: integer
            - type: 'null'
          title: Bounced Soft 24H
        complained_24h:
          anyOf:
            - type: integer
            - type: 'null'
          title: Complained 24H
        complaint_rate:
          anyOf:
            - type: number
            - type: 'null'
          title: Complaint Rate
        delivered_24h:
          anyOf:
            - type: integer
            - type: 'null'
          title: Delivered 24H
        email_status:
          anyOf:
            - type: string
            - type: 'null'
          title: Email Status
        email_status_at:
          anyOf:
            - type: string
            - type: 'null'
          title: Email Status At
        sent_24h:
          anyOf:
            - type: integer
            - type: 'null'
          title: Sent 24H
        unsubscribed_24h:
          anyOf:
            - type: integer
            - type: 'null'
          title: Unsubscribed 24H
      title: HubEmailStatsOut
      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

````