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

# Email stats per template

> Email results per email template over the last 7, 30 or 90 days: sent, delivered, people's opens and clicks, bounces, spam reports and unsubscribes, with rates, as the Email templates list shows them. Pass `templateId` for one template's breakdown as its stats sheet shows it: which campaigns sent it, opens per day, and the links people clicked most.

Only templates that sent journey or campaign email in the period are listed. Counts each email once, by when it was sent. Read `notes` first: rates are hidden below 1,000 emails, opens may not be measured (null, never 0%), and nothing before 2026-11-18 is counted. Template ids match email_templates_list.



## OpenAPI

````yaml /api-reference/openapi.json get /api/v1/email-stats/templates
openapi: 3.1.0
info:
  title: Boom API
  version: 1.0.0
  description: >-
    Boom's public REST API — one uniform surface over every platform capability.
    CDP: upsert people and custom objects, define object and relationship types,
    link and unlink relationships, and record behavioral events — one record per
    request or up to 1000 per request via the `/batch` endpoints. Segments: read
    (list, read, membership) and full authoring — discover the filterable
    catalog, validate a filter, create and update segments, preview match
    counts, and trigger evaluation. Initiatives: create and configure outreach
    initiatives, link WhatsApp templates, drive the lifecycle (launch, cancel,
    archive), and read collected-data summaries. Participants: enroll people
    into an active initiative, track their status, read conversation
    transcripts, and stop outreach. Journeys: read-only access to always-on
    message flows and their metrics. WhatsApp templates: list your WhatsApp
    numbers and list, read, and create message templates. The same capabilities
    are exposed as MCP tools with identical schemas.
servers:
  - url: https://www.useboom.ai
    description: Production
security:
  - bearerAuth: []
paths:
  /api/v1/email-stats/templates:
    get:
      tags:
        - Email stats
      summary: Email stats per template
      description: >-
        Email results per email template over the last 7, 30 or 90 days: sent,
        delivered, people's opens and clicks, bounces, spam reports and
        unsubscribes, with rates, as the Email templates list shows them. Pass
        `templateId` for one template's breakdown as its stats sheet shows it:
        which campaigns sent it, opens per day, and the links people clicked
        most.


        Only templates that sent journey or campaign email in the period are
        listed. Counts each email once, by when it was sent. Read `notes` first:
        rates are hidden below 1,000 emails, opens may not be measured (null,
        never 0%), and nothing before 2026-11-18 is counted. Template ids match
        email_templates_list.
      operationId: email_stats_templates
      parameters:
        - name: days
          in: query
          required: false
          schema:
            $schema: https://json-schema.org/draft/2020-12/schema
            default: 30
            description: >-
              7, 30 (default) or 90: the periods the Email templates list
              offers.
            type: integer
            minimum: -9007199254740991
            maximum: 9007199254740991
        - name: templateId
          in: query
          required: false
          schema:
            $schema: https://json-schema.org/draft/2020-12/schema
            description: One template, as email_templates_list returns it.
            type: string
            minLength: 1
            maxLength: 64
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $schema: https://json-schema.org/draft/2020-12/schema
                type: object
                properties:
                  window:
                    type: object
                    properties:
                      from:
                        type: string
                        description: Start of the period asked for (ISO 8601).
                      to:
                        type: string
                        description: End of the period (ISO 8601).
                      countedFrom:
                        type: string
                        description: >-
                          Where counting actually starts: the period start, or
                          when Boom began recording email results (2026-11-18),
                          whichever is later.
                      days:
                        type: integer
                        minimum: -9007199254740991
                        maximum: 9007199254740991
                    required:
                      - from
                      - to
                      - countedFrom
                      - days
                    additionalProperties: false
                  templates:
                    type: array
                    items:
                      type: object
                      properties:
                        templateId:
                          type: string
                        name:
                          anyOf:
                            - type: string
                            - type: 'null'
                          description: Null when the template was deleted.
                        archived:
                          anyOf:
                            - type: boolean
                            - type: 'null'
                        averageKind:
                          type: string
                          enum:
                            - marketing
                            - transactional
                          description: Which average it is compared with.
                        counts:
                          type: object
                          properties:
                            sent:
                              type: integer
                              minimum: -9007199254740991
                              maximum: 9007199254740991
                              description: Emails sent in the period.
                            delivered:
                              type: integer
                              minimum: -9007199254740991
                              maximum: 9007199254740991
                              description: >-
                                Reached the recipient's mail server (a delivery,
                                open or click).
                            bouncedHard:
                              type: integer
                              minimum: -9007199254740991
                              maximum: 9007199254740991
                              description: The address doesn't exist.
                            bouncedSoft:
                              type: integer
                              minimum: -9007199254740991
                              maximum: 9007199254740991
                              description: >-
                                Mailbox full or server busy, and never
                                delivered.
                            blocked:
                              type: integer
                              minimum: -9007199254740991
                              maximum: 9007199254740991
                              description: >-
                                Not sent: the address is on the do-not-send list
                                after an earlier bounce or spam report.
                            failed:
                              type: integer
                              minimum: -9007199254740991
                              maximum: 9007199254740991
                              description: >-
                                Accepted by Boom's provider but couldn't be
                                sent.
                            complained:
                              type: integer
                              minimum: -9007199254740991
                              maximum: 9007199254740991
                              description: Reported as spam.
                            unsubscribed:
                              type: integer
                              minimum: -9007199254740991
                              maximum: 9007199254740991
                            opened:
                              anyOf:
                                - type: integer
                                  minimum: -9007199254740991
                                  maximum: 9007199254740991
                                - type: 'null'
                              description: >-
                                People who opened (estimated: automatic opens by
                                mail apps are left out; a click counts as an
                                open). Null when no email in the period was sent
                                with open tracking: not available, not zero.
                            clicked:
                              anyOf:
                                - type: integer
                                  minimum: -9007199254740991
                                  maximum: 9007199254740991
                                - type: 'null'
                              description: >-
                                People who clicked a link (security scanners
                                left out). Null when no email was sent with
                                click tracking.
                            openTrackedDelivered:
                              type: integer
                              minimum: -9007199254740991
                              maximum: 9007199254740991
                              description: >-
                                Delivered emails sent with open tracking: what
                                the open rate divides by.
                            clickTrackedDelivered:
                              type: integer
                              minimum: -9007199254740991
                              maximum: 9007199254740991
                              description: >-
                                Delivered emails sent with click tracking: what
                                the click rate divides by.
                          required:
                            - sent
                            - delivered
                            - bouncedHard
                            - bouncedSoft
                            - blocked
                            - failed
                            - complained
                            - unsubscribed
                            - opened
                            - clicked
                            - openTrackedDelivered
                            - clickTrackedDelivered
                          additionalProperties: false
                        tracking:
                          type: object
                          properties:
                            opens:
                              type: string
                              enum:
                                - tracked
                                - partly_tracked
                                - not_tracked
                              description: >-
                                `not_tracked`: opens cannot be measured for
                                these emails. `partly_tracked`: only some were
                                tracked, and rates are over those.
                            clicks:
                              type: string
                              enum:
                                - tracked
                                - partly_tracked
                                - not_tracked
                          required:
                            - opens
                            - clicks
                          additionalProperties: false
                        rates:
                          anyOf:
                            - type: object
                              properties:
                                delivered:
                                  anyOf:
                                    - type: number
                                    - type: 'null'
                                  description: Delivered ÷ sent.
                                bounced:
                                  anyOf:
                                    - type: number
                                    - type: 'null'
                                  description: >-
                                    Hard + soft bounces + blocked ÷ sent: emails
                                    that never reached an inbox server.
                                bouncedHard:
                                  anyOf:
                                    - type: number
                                    - type: 'null'
                                  description: >-
                                    Hard bounces (address does not exist) ÷
                                    sent.
                                opened:
                                  anyOf:
                                    - type: number
                                    - type: 'null'
                                  description: >-
                                    People who opened ÷ delivered emails sent
                                    with open tracking. Null when no email was
                                    tracked.
                                clicked:
                                  anyOf:
                                    - type: number
                                    - type: 'null'
                                  description: >-
                                    People who clicked ÷ delivered emails sent
                                    with click tracking. Null when no email was
                                    tracked.
                                clickToOpen:
                                  anyOf:
                                    - type: number
                                    - type: 'null'
                                  description: >-
                                    Of the people who opened, the share who
                                    clicked.
                                complained:
                                  anyOf:
                                    - type: number
                                    - type: 'null'
                                  description: Spam reports ÷ delivered.
                                unsubscribed:
                                  anyOf:
                                    - type: number
                                    - type: 'null'
                                  description: Unsubscribes ÷ delivered.
                              required:
                                - delivered
                                - bounced
                                - bouncedHard
                                - opened
                                - clicked
                                - clickToOpen
                                - complained
                                - unsubscribed
                              additionalProperties: false
                            - type: 'null'
                          description: >-
                            Shares from 0 to 1. Null below 1,000 emails sent in
                            the period: counts only, as in the app.
                        lastSentAt:
                          anyOf:
                            - type: string
                            - type: 'null'
                        problem:
                          anyOf:
                            - type: object
                              properties:
                                kind:
                                  type: string
                                  enum:
                                    - spam
                                    - bounces
                                rate:
                                  type: number
                                average:
                                  anyOf:
                                    - type: number
                                    - type: 'null'
                              required:
                                - kind
                                - rate
                                - average
                              additionalProperties: false
                            - type: 'null'
                          description: >-
                            What the list flags: spam reports at or over 0.3%,
                            or bounces well above the other templates of its
                            kind.
                      required:
                        - templateId
                        - name
                        - archived
                        - averageKind
                        - counts
                        - tracking
                        - rates
                        - lastSentAt
                        - problem
                      additionalProperties: false
                  averages:
                    type: object
                    properties:
                      marketing:
                        anyOf:
                          - type: object
                            properties:
                              delivered:
                                anyOf:
                                  - type: number
                                  - type: 'null'
                                description: Delivered ÷ sent.
                              bounced:
                                anyOf:
                                  - type: number
                                  - type: 'null'
                                description: >-
                                  Hard + soft bounces + blocked ÷ sent: emails
                                  that never reached an inbox server.
                              bouncedHard:
                                anyOf:
                                  - type: number
                                  - type: 'null'
                                description: Hard bounces (address does not exist) ÷ sent.
                              opened:
                                anyOf:
                                  - type: number
                                  - type: 'null'
                                description: >-
                                  People who opened ÷ delivered emails sent with
                                  open tracking. Null when no email was tracked.
                              clicked:
                                anyOf:
                                  - type: number
                                  - type: 'null'
                                description: >-
                                  People who clicked ÷ delivered emails sent
                                  with click tracking. Null when no email was
                                  tracked.
                              clickToOpen:
                                anyOf:
                                  - type: number
                                  - type: 'null'
                                description: >-
                                  Of the people who opened, the share who
                                  clicked.
                              complained:
                                anyOf:
                                  - type: number
                                  - type: 'null'
                                description: Spam reports ÷ delivered.
                              unsubscribed:
                                anyOf:
                                  - type: number
                                  - type: 'null'
                                description: Unsubscribes ÷ delivered.
                            required:
                              - delivered
                              - bounced
                              - bouncedHard
                              - opened
                              - clicked
                              - clickToOpen
                              - complained
                              - unsubscribed
                            additionalProperties: false
                          - type: 'null'
                        description: >-
                          Shares from 0 to 1. Null below 1,000 emails sent in
                          the period: counts only, as in the app.
                      transactional:
                        anyOf:
                          - type: object
                            properties:
                              delivered:
                                anyOf:
                                  - type: number
                                  - type: 'null'
                                description: Delivered ÷ sent.
                              bounced:
                                anyOf:
                                  - type: number
                                  - type: 'null'
                                description: >-
                                  Hard + soft bounces + blocked ÷ sent: emails
                                  that never reached an inbox server.
                              bouncedHard:
                                anyOf:
                                  - type: number
                                  - type: 'null'
                                description: Hard bounces (address does not exist) ÷ sent.
                              opened:
                                anyOf:
                                  - type: number
                                  - type: 'null'
                                description: >-
                                  People who opened ÷ delivered emails sent with
                                  open tracking. Null when no email was tracked.
                              clicked:
                                anyOf:
                                  - type: number
                                  - type: 'null'
                                description: >-
                                  People who clicked ÷ delivered emails sent
                                  with click tracking. Null when no email was
                                  tracked.
                              clickToOpen:
                                anyOf:
                                  - type: number
                                  - type: 'null'
                                description: >-
                                  Of the people who opened, the share who
                                  clicked.
                              complained:
                                anyOf:
                                  - type: number
                                  - type: 'null'
                                description: Spam reports ÷ delivered.
                              unsubscribed:
                                anyOf:
                                  - type: number
                                  - type: 'null'
                                description: Unsubscribes ÷ delivered.
                            required:
                              - delivered
                              - bounced
                              - bouncedHard
                              - opened
                              - clicked
                              - clickToOpen
                              - complained
                              - unsubscribed
                            additionalProperties: false
                          - type: 'null'
                        description: >-
                          Shares from 0 to 1. Null below 1,000 emails sent in
                          the period: counts only, as in the app.
                    required:
                      - marketing
                      - transactional
                    additionalProperties: false
                    description: >-
                      Summed over every template of each kind that sent in the
                      period, even when `templateId` narrows the list.
                  detail:
                    anyOf:
                      - type: object
                        properties:
                          templateId:
                            type: string
                          byInitiative:
                            type: array
                            items:
                              type: object
                              properties:
                                initiativeId:
                                  type: string
                                name:
                                  type: string
                                kind:
                                  type: string
                                  enum:
                                    - campaign
                                    - journey
                                    - transactional
                                counts:
                                  type: object
                                  properties:
                                    sent:
                                      type: integer
                                      minimum: -9007199254740991
                                      maximum: 9007199254740991
                                      description: Emails sent in the period.
                                    delivered:
                                      type: integer
                                      minimum: -9007199254740991
                                      maximum: 9007199254740991
                                      description: >-
                                        Reached the recipient's mail server (a
                                        delivery, open or click).
                                    bouncedHard:
                                      type: integer
                                      minimum: -9007199254740991
                                      maximum: 9007199254740991
                                      description: The address doesn't exist.
                                    bouncedSoft:
                                      type: integer
                                      minimum: -9007199254740991
                                      maximum: 9007199254740991
                                      description: >-
                                        Mailbox full or server busy, and never
                                        delivered.
                                    blocked:
                                      type: integer
                                      minimum: -9007199254740991
                                      maximum: 9007199254740991
                                      description: >-
                                        Not sent: the address is on the
                                        do-not-send list after an earlier bounce
                                        or spam report.
                                    failed:
                                      type: integer
                                      minimum: -9007199254740991
                                      maximum: 9007199254740991
                                      description: >-
                                        Accepted by Boom's provider but couldn't
                                        be sent.
                                    complained:
                                      type: integer
                                      minimum: -9007199254740991
                                      maximum: 9007199254740991
                                      description: Reported as spam.
                                    unsubscribed:
                                      type: integer
                                      minimum: -9007199254740991
                                      maximum: 9007199254740991
                                    opened:
                                      anyOf:
                                        - type: integer
                                          minimum: -9007199254740991
                                          maximum: 9007199254740991
                                        - type: 'null'
                                      description: >-
                                        People who opened (estimated: automatic
                                        opens by mail apps are left out; a click
                                        counts as an open). Null when no email
                                        in the period was sent with open
                                        tracking: not available, not zero.
                                    clicked:
                                      anyOf:
                                        - type: integer
                                          minimum: -9007199254740991
                                          maximum: 9007199254740991
                                        - type: 'null'
                                      description: >-
                                        People who clicked a link (security
                                        scanners left out). Null when no email
                                        was sent with click tracking.
                                    openTrackedDelivered:
                                      type: integer
                                      minimum: -9007199254740991
                                      maximum: 9007199254740991
                                      description: >-
                                        Delivered emails sent with open
                                        tracking: what the open rate divides by.
                                    clickTrackedDelivered:
                                      type: integer
                                      minimum: -9007199254740991
                                      maximum: 9007199254740991
                                      description: >-
                                        Delivered emails sent with click
                                        tracking: what the click rate divides
                                        by.
                                  required:
                                    - sent
                                    - delivered
                                    - bouncedHard
                                    - bouncedSoft
                                    - blocked
                                    - failed
                                    - complained
                                    - unsubscribed
                                    - opened
                                    - clicked
                                    - openTrackedDelivered
                                    - clickTrackedDelivered
                                  additionalProperties: false
                                rates:
                                  anyOf:
                                    - type: object
                                      properties:
                                        delivered:
                                          anyOf:
                                            - type: number
                                            - type: 'null'
                                          description: Delivered ÷ sent.
                                        bounced:
                                          anyOf:
                                            - type: number
                                            - type: 'null'
                                          description: >-
                                            Hard + soft bounces + blocked ÷ sent:
                                            emails that never reached an inbox
                                            server.
                                        bouncedHard:
                                          anyOf:
                                            - type: number
                                            - type: 'null'
                                          description: >-
                                            Hard bounces (address does not exist) ÷
                                            sent.
                                        opened:
                                          anyOf:
                                            - type: number
                                            - type: 'null'
                                          description: >-
                                            People who opened ÷ delivered emails
                                            sent with open tracking. Null when no
                                            email was tracked.
                                        clicked:
                                          anyOf:
                                            - type: number
                                            - type: 'null'
                                          description: >-
                                            People who clicked ÷ delivered emails
                                            sent with click tracking. Null when no
                                            email was tracked.
                                        clickToOpen:
                                          anyOf:
                                            - type: number
                                            - type: 'null'
                                          description: >-
                                            Of the people who opened, the share who
                                            clicked.
                                        complained:
                                          anyOf:
                                            - type: number
                                            - type: 'null'
                                          description: Spam reports ÷ delivered.
                                        unsubscribed:
                                          anyOf:
                                            - type: number
                                            - type: 'null'
                                          description: Unsubscribes ÷ delivered.
                                      required:
                                        - delivered
                                        - bounced
                                        - bouncedHard
                                        - opened
                                        - clicked
                                        - clickToOpen
                                        - complained
                                        - unsubscribed
                                      additionalProperties: false
                                    - type: 'null'
                                  description: >-
                                    Shares from 0 to 1. Null below 1,000 emails
                                    sent in the period: counts only, as in the
                                    app.
                              required:
                                - initiativeId
                                - name
                                - kind
                                - counts
                                - rates
                              additionalProperties: false
                          daily:
                            type: array
                            items:
                              type: object
                              properties:
                                day:
                                  type: string
                                  description: UTC day the emails were sent.
                                openTrackedDelivered:
                                  type: integer
                                  minimum: -9007199254740991
                                  maximum: 9007199254740991
                                opened:
                                  type: integer
                                  minimum: -9007199254740991
                                  maximum: 9007199254740991
                              required:
                                - day
                                - openTrackedDelivered
                                - opened
                              additionalProperties: false
                          topLinks:
                            type: array
                            items:
                              type: object
                              properties:
                                url:
                                  type: string
                                people:
                                  type: integer
                                  minimum: -9007199254740991
                                  maximum: 9007199254740991
                              required:
                                - url
                                - people
                              additionalProperties: false
                            description: >-
                              The 5 links the most people clicked (scanners left
                              out).
                        required:
                          - templateId
                          - byInitiative
                          - daily
                          - topLinks
                        additionalProperties: false
                      - type: 'null'
                  notes:
                    type: array
                    items:
                      type: string
                required:
                  - window
                  - templates
                  - averages
                  - detail
                  - notes
                additionalProperties: false
        '400':
          description: Validation failed or the request cannot proceed.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: object
                    properties:
                      code:
                        type: string
                        description: Stable machine-readable error code (snake_case).
                      message:
                        type: string
                    required:
                      - code
                      - message
                required:
                  - error
        '401':
          description: Missing, malformed, or revoked API key.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: object
                    properties:
                      code:
                        type: string
                        description: Stable machine-readable error code (snake_case).
                      message:
                        type: string
                    required:
                      - code
                      - message
                required:
                  - error
        '403':
          description: >-
            The key belongs to a partner workspace (`partner_workspace`); use a
            key from the brand.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: object
                    properties:
                      code:
                        type: string
                        description: Stable machine-readable error code (snake_case).
                      message:
                        type: string
                    required:
                      - code
                      - message
                required:
                  - error
        '404':
          description: The resource does not exist in this organization.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: object
                    properties:
                      code:
                        type: string
                        description: Stable machine-readable error code (snake_case).
                      message:
                        type: string
                    required:
                      - code
                      - message
                required:
                  - error
        '409':
          description: >-
            Conflicts with the current state (duplicates, wrong lifecycle
            state).
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: object
                    properties:
                      code:
                        type: string
                        description: Stable machine-readable error code (snake_case).
                      message:
                        type: string
                    required:
                      - code
                      - message
                required:
                  - error
        '422':
          description: The request is well-formed but semantically invalid.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: object
                    properties:
                      code:
                        type: string
                        description: Stable machine-readable error code (snake_case).
                      message:
                        type: string
                    required:
                      - code
                      - message
                required:
                  - error
        '429':
          description: Rate limit exceeded — retry after `Retry-After`.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: object
                    properties:
                      code:
                        type: string
                        description: Stable machine-readable error code (snake_case).
                      message:
                        type: string
                    required:
                      - code
                      - message
                required:
                  - error
        '500':
          description: Internal server error.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: object
                    properties:
                      code:
                        type: string
                        description: Stable machine-readable error code (snake_case).
                      message:
                        type: string
                    required:
                      - code
                      - message
                required:
                  - error
        '503':
          description: Transient error — retry with a narrower request.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: object
                    properties:
                      code:
                        type: string
                        description: Stable machine-readable error code (snake_case).
                      message:
                        type: string
                    required:
                      - code
                      - message
                required:
                  - error
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: 'Organization API key, sent as `Authorization: Bearer boom_org_...`.'

````

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