> ## Documentation Index
> Fetch the complete documentation index at: https://dugble.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Get Email Analytics

> Returns team-wide email delivery, open, click, and bounce analytics for fixed 7-day, 30-day, and 90-day windows.



## OpenAPI

````yaml /openapi.json get /emails/analytics
openapi: 3.1.0
info:
  title: Dugble API
  description: >-
    Programmatic access to Dugble email, SMS, sending infrastructure, contacts,
    audiences, suppressions, and broadcasts. Authenticate with a team token sent
    as a Bearer token.
  version: 1.0.0
  contact:
    name: Dugble Support
    email: support@dugble.com
servers:
  - url: https://api.dugble.com
    description: Production
security:
  - BearerAuth: []
tags:
  - name: Email
    description: Send and manage transactional emails.
  - name: SMS
    description: Send and manage SMS messages.
  - name: Domains
    description: Manage and verify sending domains.
  - name: Templates
    description: Create, version, publish, preview, and test reusable email templates.
  - name: Sender IDs
    description: Manage SMS sender IDs.
  - name: Contacts
    description: Manage contacts and their audience memberships.
  - name: Contact Properties
    description: Manage typed custom property definitions used by contacts.
  - name: Topics
    description: Manage contact subscription topics.
  - name: Segments
    description: Manage audience segments.
  - name: Suppressions
    description: Manage suppressed email recipients.
  - name: Broadcasts
    description: Create, schedule, and analyze email broadcasts.
paths:
  /emails/analytics:
    get:
      tags:
        - Email
      summary: Get Email Analytics
      description: >-
        Returns team-wide email delivery, open, click, and bounce analytics for
        fixed 7-day, 30-day, and 90-day windows.
      operationId: getEmailAnalytics
      responses:
        '200':
          description: Email analytics retrieved successfully.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EmailAnalyticsEnvelope'
        default:
          $ref: '#/components/responses/Error'
components:
  schemas:
    EmailAnalyticsEnvelope:
      type: object
      required:
        - success
        - data
      properties:
        success:
          type: boolean
          enum:
            - true
        data:
          $ref: '#/components/schemas/EmailAnalytics'
    EmailAnalytics:
      type: object
      required:
        - object
        - windows
      properties:
        object:
          type: string
          enum:
            - email.analytics
        windows:
          type: array
          items:
            $ref: '#/components/schemas/EmailAnalyticsWindow'
    ErrorEnvelope:
      type: object
      required:
        - success
        - error
      properties:
        success:
          type: boolean
          enum:
            - false
        error:
          type: object
          required:
            - code
            - message
          properties:
            code:
              type: string
              enum:
                - BAD_REQUEST
                - UNAUTHORIZED
                - FORBIDDEN
                - STEP_UP_REQUIRED
                - NOT_FOUND
                - CONFLICT
                - PAYMENT_REQUIRED
                - PAYLOAD_TOO_LARGE
                - UNPROCESSABLE_ENTITY
                - TOO_MANY_REQUESTS
                - INTERNAL_ERROR
                - SERVICE_UNAVAILABLE
            message:
              type: string
    EmailAnalyticsWindow:
      type: object
      required:
        - days
        - rates
        - series
      properties:
        days:
          type: integer
          format: int32
          enum:
            - 7
            - 30
            - 90
        rates:
          type: array
          items:
            $ref: '#/components/schemas/EmailAnalyticsRate'
        series:
          type: array
          items:
            $ref: '#/components/schemas/EmailAnalyticsPoint'
    EmailAnalyticsRate:
      type: object
      required:
        - name
        - value
      properties:
        name:
          type: string
          enum:
            - delivery_rate
            - open_rate
            - click_rate
            - bounce_rate
        value:
          type: number
          format: double
          minimum: 0
    EmailAnalyticsPoint:
      type: object
      required:
        - date
        - total
        - delivered
        - opened
        - clicked
        - bounced
      properties:
        date:
          type: string
          format: date
        total:
          type: integer
          format: int64
          minimum: 0
        delivered:
          type: integer
          format: int64
          minimum: 0
        opened:
          type: integer
          format: int64
          minimum: 0
        clicked:
          type: integer
          format: int64
          minimum: 0
        bounced:
          type: integer
          format: int64
          minimum: 0
  responses:
    Error:
      description: >-
        The request failed. See the HTTP status and structured error code for
        the category.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorEnvelope'
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      bearerFormat: Team token
      description: >-
        Pass a Dugble team token in the Authorization header as Bearer <token>.
        Team token secrets use the dgb_team_ prefix.

````