> ## 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.

# Get Blast Messages

> Get patients for a blast with their delivery status.

Optional ``filter`` values:
  - ``sent``, ``failed``, ``skipped``, ``opened``, ``clicked``, ``replied``, ``bounced``
  - Any ``BlastSkipReason`` value (uppercase, e.g. ``NO_CONTACT``, ``SUPPRESSED``)
    filters to recipients skipped for that specific reason.
When no filter is set, returns all patients (sent + skipped) from the group.

Additional filters:
  - ``recipient``: case-insensitive substring match against User.first_name
    OR User.last_name.
  - ``sent_after`` / ``sent_before``: bound the message ``created_date``.
    Only applies to actually-sent messages (skipped/queued rows have no
    sent date, so they are excluded when either bound is set).



## OpenAPI

````yaml get /comms/blasts/{blast_id}/messages
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/{blast_id}/messages:
    get:
      tags:
        - Message Blasts
      summary: Get Blast Messages
      description: >-
        Get patients for a blast with their delivery status.


        Optional ``filter`` values:
          - ``sent``, ``failed``, ``skipped``, ``opened``, ``clicked``, ``replied``, ``bounced``
          - Any ``BlastSkipReason`` value (uppercase, e.g. ``NO_CONTACT``, ``SUPPRESSED``)
            filters to recipients skipped for that specific reason.
        When no filter is set, returns all patients (sent + skipped) from the
        group.


        Additional filters:
          - ``recipient``: case-insensitive substring match against User.first_name
            OR User.last_name.
          - ``sent_after`` / ``sent_before``: bound the message ``created_date``.
            Only applies to actually-sent messages (skipped/queued rows have no
            sent date, so they are excluded when either bound is set).
      operationId: get_blast_messages_comms_blasts__blast_id__messages_get
      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
        - name: blast_id
          in: path
          required: true
          schema:
            type: string
            title: Blast Id
        - name: page
          in: query
          required: false
          schema:
            type: integer
            minimum: 1
            default: 1
            title: Page
        - name: per_page
          in: query
          required: false
          schema:
            type: integer
            maximum: 100
            minimum: 1
            default: 25
            title: Per Page
        - name: filter
          in: query
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: Filter
        - name: recipient
          in: query
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: Recipient
        - name: sent_after
          in: query
          required: false
          schema:
            anyOf:
              - type: string
                format: date-time
              - type: 'null'
            title: Sent After
        - name: sent_before
          in: query
          required: false
          schema:
            anyOf:
              - type: string
                format: date-time
              - type: 'null'
            title: Sent Before
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Page_BlastMessageItem_'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    Page_BlastMessageItem_:
      properties:
        data:
          items:
            $ref: '#/components/schemas/BlastMessageItem'
          type: array
          title: Data
        total:
          type: integer
          title: Total
      type: object
      required:
        - data
        - total
      title: Page[BlastMessageItem]
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    BlastMessageItem:
      properties:
        id:
          type: string
          title: Id
        patientId:
          anyOf:
            - type: string
            - type: 'null'
          title: Patientid
        firstName:
          anyOf:
            - type: string
            - type: 'null'
          title: Firstname
        lastName:
          anyOf:
            - type: string
            - type: 'null'
          title: Lastname
        recipientName:
          anyOf:
            - type: string
            - type: 'null'
          title: Recipientname
        recipientEmail:
          anyOf:
            - type: string
            - type: 'null'
          title: Recipientemail
        recipientPhone:
          anyOf:
            - type: string
            - type: 'null'
          title: Recipientphone
        status:
          anyOf:
            - type: string
            - type: 'null'
          title: Status
        skipReason:
          anyOf:
            - type: string
            - type: 'null'
          title: Skipreason
        subject:
          anyOf:
            - type: string
            - type: 'null'
          title: Subject
        sentDate:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Sentdate
        deliveredDate:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Delivereddate
        openCount:
          anyOf:
            - type: integer
            - type: 'null'
          title: Opencount
        clickCount:
          anyOf:
            - type: integer
            - type: 'null'
          title: Clickcount
        replyCount:
          type: integer
          title: Replycount
          default: 0
        lastReplyDate:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Lastreplydate
      type: object
      required:
        - id
      title: BlastMessageItem
    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

````