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

# Preview Blast

> Get a send preview breakdown without actually sending.



## OpenAPI

````yaml post /comms/blasts/preview
openapi: 3.1.0
info:
  title: Decoda API
  description: External API documentation for the Decoda Health platform.
  version: '1.0'
servers: []
security: []
paths:
  /comms/blasts/preview:
    post:
      tags:
        - Message Blasts
      summary: Preview Blast
      description: Get a send preview breakdown without actually sending.
      operationId: preview_blast_comms_blasts_preview_post
      parameters:
        - name: TENANT
          in: header
          required: true
          schema:
            type: string
            title: Tenant
          description: The tenant you are making this request on behalf of
        - name: API-KEY
          in: header
          required: true
          schema:
            type: string
            title: Api-Key
          description: Your api key
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/BlastPreviewRequest'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BlastPreviewResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    BlastPreviewRequest:
      properties:
        channel:
          $ref: '#/components/schemas/BlastChannel'
        cohortId:
          anyOf:
            - type: string
            - type: 'null'
          title: Cohortid
        cohortIds:
          anyOf:
            - items:
                type: string
              type: array
            - type: 'null'
          title: Cohortids
        patientIds:
          anyOf:
            - items:
                type: string
              type: array
            - type: 'null'
          title: Patientids
        isMarketing:
          type: boolean
          title: Ismarketing
          default: false
      type: object
      required:
        - channel
      title: BlastPreviewRequest
    BlastPreviewResponse:
      properties:
        willSend:
          type: integer
          title: Willsend
          default: 0
        optedOut:
          type: integer
          title: Optedout
          default: 0
        noContactInfo:
          type: integer
          title: Nocontactinfo
          default: 0
        suppressed:
          type: integer
          title: Suppressed
          default: 0
        unsubscribed:
          type: integer
          title: Unsubscribed
          default: 0
        notOptedIn:
          type: integer
          title: Notoptedin
          default: 0
        failedValidation:
          type: integer
          title: Failedvalidation
          default: 0
        total:
          type: integer
          title: Total
          default: 0
      type: object
      title: BlastPreviewResponse
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    BlastChannel:
      type: string
      enum:
        - SMS
        - EMAIL
      title: BlastChannel
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError

````