---
title: "Batch get message contents"
method: GET
path: "/v1/messages/batch/content"
tags: ["Messages"]
---

# Batch get message contents

`GET /v1/messages/batch/content`

Get the contents of multiple messages in a single request.

## Query parameters

- `message_ids[]` string[], required

## Response `200`

OK

- MessageContents[] — A list of `MessageContents`
  - `__typename` string, required — The typename of the schema.
  - `data` union, required — Content data specific to the channel type.
    - object — The content of an email message.
      - `__typename` string, required — The typename of the schema.
      - `bcc` string, nullable — The BCC email addresses.
      - `cc` string, nullable — The CC email addresses.
      - `from` string, required — The sender's email address.
      - `html_body` string, required — The HTML body of the email message.
      - `reply_to` string, nullable — The reply-to email address.
      - `subject_line` string, required — The subject line of the email message.
      - `text_body` string, required — The text body of the email message.
      - `to` string, required — The recipient's email address.
    - object — The content of an SMS message.
      - `__typename` string, required — The typename of the schema.
      - `body` string, required — The content body of the SMS message.
      - `to` string, required — The phone number the SMS was sent to.
    - object — Push channel data.
      - `__typename` string, required — The typename of the schema.
      - `body` string, required — The content body of the push notification.
      - `data` object, nullable — Additional data payload for the push notification.
      - `title` string, required — The title of the push notification.
      - `token` string, required — The device token to send the push notification to.
    - object — The content of a chat message.
      - `__typename` string, required — The typename of the schema.
      - `connection` object, required — The channel data connection from the recipient to the underlying provider.
      - `metadata` object, nullable — Additional metadata associated with the chat message.
      - `template` object, required — The template structure for the chat message.
        - `blocks` Block[], nullable — The blocks of the message in a chat.
          - `content` string, required — The actual content of the block.
          - `name` string, required — The name of the block for identification.
          - `type` 'text' | 'markdown', required — The type of block in a message in a chat (text or markdown).
        - `json_content` object, nullable — The JSON content of the message.
        - `summary` string, nullable — The summary of the chat message.
    - object — The content of an in-app feed message.
      - `__typename` string, required — The typename of the schema.
      - `blocks` union[], required — The blocks of the message in an app feed.
        - union — A block in a message in an app feed.
          - object — A block in a message in an app feed.
            - `content` string, required — The content of the block in a message in an app feed.
            - `name` string, required — The name of the block in a message in an app feed.
            - `rendered` string, required — The rendered HTML version of the content.
            - `type` 'markdown' | 'text', required — The type of block in a message in an app feed.
          - object — A button set block in a message in an app feed.
            - `buttons` object[], required — A list of buttons in an in app feed message.
              - …
            - `name` string, required — The name of the button set in a message in an app feed.
            - `type` 'button_set', required — The type of block in a message in an app feed.
  - `inserted_at` string, date-time, required — Timestamp when the message content was created.
  - `message_id` string, required — The unique identifier for the message content.

---

[API](https://skmtc.net/knocklabs/apis/knock-api.md) · [All operations](https://skmtc.net/knocklabs/apis/knock-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/knocklabs/knock-api/revisions/4b8499dddbc5/schema)
