> ## 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 for a campaign

> How one campaign, customer journey or transactional email did by email: sent, delivered, people's opens and clicks, bounces, spam reports and unsubscribes, with rates beside the organization's own average. The same numbers as the campaign's Analytics › Email tab, its email card and a journey step's email results.

Two views in one answer. `emails` counts each email once (the campaign card and step panel). `funnel` counts people, as the Email tab's funnel does (sent → delivered → opened → clicked → replied → succeeded); it is null for transactional emails, one step, or `range: all`.

Read `notes` before quoting a number: rates are hidden below 1,000 emails, opens or clicks may not be measured (null, never 0%), opens are people only and estimated, and nothing before 2026-11-18 is counted. Use message_logs_list for one message's delivery status instead.



## OpenAPI

````yaml /api-reference/openapi.json get /api/v1/initiatives/{id}/email-stats
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/initiatives/{id}/email-stats:
    get:
      tags:
        - Email stats
      summary: Email stats for a campaign
      description: >-
        How one campaign, customer journey or transactional email did by email:
        sent, delivered, people's opens and clicks, bounces, spam reports and
        unsubscribes, with rates beside the organization's own average. The same
        numbers as the campaign's Analytics › Email tab, its email card and a
        journey step's email results.


        Two views in one answer. `emails` counts each email once (the campaign
        card and step panel). `funnel` counts people, as the Email tab's funnel
        does (sent → delivered → opened → clicked → replied → succeeded); it is
        null for transactional emails, one step, or `range: all`.


        Read `notes` before quoting a number: rates are hidden below 1,000
        emails, opens or clicks may not be measured (null, never 0%), opens are
        people only and estimated, and nothing before 2026-11-18 is counted. Use
        message_logs_list for one message's delivery status instead.
      operationId: email_stats_campaign
      parameters:
        - name: id
          in: path
          required: true
          schema:
            $schema: https://json-schema.org/draft/2020-12/schema
            type: string
            minLength: 1
            description: >-
              The initiative id, as initiatives_list or initiatives_get return
              it.
        - name: range
          in: query
          required: false
          schema:
            $schema: https://json-schema.org/draft/2020-12/schema
            description: >-
              Emails SENT in this period. Defaults to what the app opens on:
              `all` (since recording began, the campaign card) for a campaign,
              `7d` (the Analytics › Email tab) for a journey or transactional
              email. `custom` needs `from` and `to`; `today` starts at midnight
              in `timeZone`.
            type: string
            enum:
              - today
              - 7d
              - 30d
              - custom
              - all
        - name: from
          in: query
          required: false
          schema:
            $schema: https://json-schema.org/draft/2020-12/schema
            description: 'With `range: custom`: a date (2026-12-01) or ISO 8601 timestamp.'
            type: string
        - name: to
          in: query
          required: false
          schema:
            $schema: https://json-schema.org/draft/2020-12/schema
            description: >-
              With `range: custom`: a date (the whole UTC day is included) or
              ISO 8601 timestamp.
            type: string
        - name: timeZone
          in: query
          required: false
          schema:
            $schema: https://json-schema.org/draft/2020-12/schema
            description: IANA zone, e.g. America/Mexico_City. Defaults to UTC.
            type: string
            maxLength: 64
        - name: environmentId
          in: query
          required: false
          schema:
            $schema: https://json-schema.org/draft/2020-12/schema
            description: Defaults to the organization's default environment, as in the app.
            type: string
        - name: workflowId
          in: query
          required: false
          schema:
            $schema: https://json-schema.org/draft/2020-12/schema
            description: Only runs of this journey version. Required with `nodeId`.
            type: string
        - name: nodeId
          in: query
          required: false
          schema:
            $schema: https://json-schema.org/draft/2020-12/schema
            description: >-
              One email step's results (its node id in journeys_get_definition).
              Needs `workflowId`: node ids repeat across versions.
            type: string
            minLength: 1
        - name: includeFunnel
          in: query
          required: false
          schema:
            $schema: https://json-schema.org/draft/2020-12/schema
            description: >-
              The Analytics › Email tab's people funnel. On by default for a
              dated range of a campaign or journey; pass false to skip it (it is
              the heavier read). Never for transactional email, one step or
              `range: all`.
            type: boolean
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $schema: https://json-schema.org/draft/2020-12/schema
                type: object
                properties:
                  initiative:
                    type: object
                    properties:
                      id:
                        type: string
                      name:
                        type: string
                      kind:
                        type: string
                        enum:
                          - campaign
                          - journey
                          - transactional
                    required:
                      - id
                      - name
                      - kind
                    additionalProperties: false
                  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.
                    required:
                      - from
                      - to
                      - countedFrom
                    additionalProperties: false
                    description: The window these numbers cover. Quote it with any number.
                  emails:
                    type: object
                    properties:
                      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.
                          heldBack:
                            type: integer
                            minimum: -9007199254740991
                            maximum: 9007199254740991
                            description: >-
                              Not sent by Boom: the address was undeliverable,
                              unsubscribed or had no consent.
                          earlierSendsNotCounted:
                            type: integer
                            minimum: -9007199254740991
                            maximum: 9007199254740991
                            description: >-
                              Emails in the period sent before recording began:
                              left out.
                        required:
                          - sent
                          - delivered
                          - bouncedHard
                          - bouncedSoft
                          - blocked
                          - failed
                          - complained
                          - unsubscribed
                          - opened
                          - clicked
                          - openTrackedDelivered
                          - clickTrackedDelivered
                          - heldBack
                          - earlierSendsNotCounted
                        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
                          openTrackedSends:
                            type: integer
                            minimum: -9007199254740991
                            maximum: 9007199254740991
                          clickTrackedSends:
                            type: integer
                            minimum: -9007199254740991
                            maximum: 9007199254740991
                        required:
                          - opens
                          - clicks
                          - openTrackedSends
                          - clickTrackedSends
                        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.
                      average:
                        anyOf:
                          - type: object
                            properties:
                              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:
                              - rates
                            additionalProperties: false
                          - type: 'null'
                        description: >-
                          The organization's campaign and journey emails over
                          the 30 days ending with this period. Null for
                          transactional emails, without own rates, or below
                          1,000 emails.
                      comparedToAverage:
                        type: object
                        propertyNames:
                          type: string
                        additionalProperties:
                          type: string
                          enum:
                            - better
                            - worse
                            - same
                        description: >-
                          Per rate: better, worse or about the same as the
                          average.
                      verdict:
                        anyOf:
                          - type: object
                            properties:
                              kind:
                                type: string
                                enum:
                                  - needs_look
                                  - better
                                  - worse
                                  - usual
                              worse:
                                type: array
                                items:
                                  type: string
                                description: 'With needs_look: the inbox risks above usual.'
                            required:
                              - kind
                              - worse
                            additionalProperties: false
                          - type: 'null'
                      arrival:
                        description: >-
                          Transactional only: how long emails took to reach the
                          recipient's server.
                        type: object
                        properties:
                          medianMs:
                            anyOf:
                              - type: number
                              - type: 'null'
                          p95Ms:
                            anyOf:
                              - type: number
                              - type: 'null'
                          buckets:
                            type: array
                            items:
                              type: integer
                              minimum: -9007199254740991
                              maximum: 9007199254740991
                            description: >-
                              Emails that arrived in under 10 s, 10 s–1 min,
                              1–10 min, and over 10 min.
                        required:
                          - medianMs
                          - p95Ms
                          - buckets
                        additionalProperties: false
                    required:
                      - counts
                      - tracking
                      - rates
                      - average
                      - comparedToAverage
                      - verdict
                    additionalProperties: false
                  funnel:
                    anyOf:
                      - type: object
                        properties:
                          unit:
                            type: string
                            const: people
                          stages:
                            type: array
                            items:
                              type: object
                              properties:
                                stage:
                                  type: string
                                count:
                                  type: integer
                                  minimum: -9007199254740991
                                  maximum: 9007199254740991
                                  description: People.
                                pctOfSent:
                                  anyOf:
                                    - type: number
                                    - type: 'null'
                                  description: >-
                                    Whole percent of `sent`. Null where
                                    `greyedOut`.
                                greyedOut:
                                  type: boolean
                                  description: >-
                                    The app greys this count out: open tracking
                                    is missing or partial, so it is not a
                                    reliable share of sent. Quote it only with
                                    that caveat.
                              required:
                                - stage
                                - count
                                - pctOfSent
                                - greyedOut
                              additionalProperties: false
                          heldBack:
                            type: integer
                            minimum: -9007199254740991
                            maximum: 9007199254740991
                        required:
                          - unit
                          - stages
                          - heldBack
                        additionalProperties: false
                      - type: 'null'
                  notes:
                    type: array
                    items:
                      type: string
                required:
                  - initiative
                  - window
                  - emails
                  - funnel
                  - 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.