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

# Get campaign message content



## OpenAPI

````yaml /api-reference/campaigns-v2/campaigns-v2.yaml get /campaign-messages/{campaign_message_id}/content/{id}
openapi: 3.0.3
info:
  title: Vero Open API v2
  version: 2.0.0
  description: >
    OpenAPI description for the API key-authenticated `api/v2` campaign
    endpoints.


    Authentication uses the `Authorization` header. Both of these forms are
    accepted:


    - `Authorization: sk_valid_123`

    - `Authorization: Bearer sk_valid_123`

    - `revision: 2026-03-01`


    Read endpoints require the `campaign:read` permission.

    Write endpoints require the `campaign:write` permission.
servers:
  - url: https://api.getvero.com/api/v2
security:
  - ApiKeyAuth: []
tags:
  - name: Campaigns
  - name: Campaign Messages
  - name: Campaign Content
paths:
  /campaign-messages/{campaign_message_id}/content/{id}:
    get:
      tags:
        - Campaign Content
      summary: Get campaign message content
      operationId: getCampaignContent
      parameters:
        - $ref: '#/components/parameters/CampaignMessageIdScoped'
        - $ref: '#/components/parameters/CampaignContentId'
        - $ref: '#/components/parameters/Revision'
      responses:
        '200':
          description: >-
            Returns campaign message content, including the actual `html`,
            `mjml` or other values.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CampaignContent'
              examples:
                HTML:
                  value:
                    id: 789
                    locale: fr-FR
                    name: French
                    is_default: false
                    subject: Bonjour
                    preheader_text: Hello
                    content:
                      html: <p>Bonjour</p>
                    created_at: '2026-03-26T01:02:03Z'
                    updated_at: '2026-03-26T01:02:03Z'
                Push:
                  value:
                    id: 790
                    locale: null
                    name: Push Default
                    is_default: true
                    subject: null
                    preheader_text: null
                    content:
                      payload:
                        payloads:
                          ios:
                            aps:
                              alert:
                                body: Hello
                    created_at: '2026-03-26T01:02:03Z'
                    updated_at: '2026-03-26T01:02:03Z'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          $ref: '#/components/responses/NotFound'
        '422':
          $ref: '#/components/responses/ValidationError'
        '503':
          $ref: '#/components/responses/ServiceUnavailable'
components:
  parameters:
    CampaignMessageIdScoped:
      name: campaign_message_id
      in: path
      required: true
      description: Campaign message ID.
      schema:
        type: integer
    CampaignContentId:
      name: id
      in: path
      required: true
      description: Campaign content record ID.
      schema:
        type: integer
    Revision:
      name: revision
      in: header
      required: false
      description: >-
        Optional dated API revision for the request. Must use `YYYY-MM-DD`
        format.
      schema:
        type: string
        pattern: ^\d{4}-\d{2}-\d{2}$
        example: '2026-03-01'
  schemas:
    CampaignContent:
      allOf:
        - $ref: '#/components/schemas/CampaignContentListItem'
        - type: object
          properties:
            content:
              $ref: '#/components/schemas/CampaignContentBody'
              description: >
                Full body: exactly one of `mjml`, `html`, `text` or `payload` is
                set.
    CampaignContentListItem:
      type: object
      required:
        - id
        - locale
        - name
        - is_default
        - content
        - created_at
        - updated_at
      properties:
        id:
          type: integer
        locale:
          type: string
          nullable: true
          description: '`null` for the default content variant.'
        name:
          type: string
          nullable: true
        is_default:
          type: boolean
        subject:
          type: string
          nullable: true
        preheader_text:
          type: string
          nullable: true
        content:
          $ref: '#/components/schemas/CampaignContentBody'
          description: >
            Returns exactly one of `mjml`, `html`, `text`, `payload` or `null`
            to indicate which content attribute applies without returning the
            full body.
        created_at:
          type: string
          format: date-time
        updated_at:
          type: string
          format: date-time
    CampaignContentBody:
      type: object
      description: >
        Exactly one of `mjml`, `html`, `text` or `payload` must be present in
        write requests.

        Email messages accept `mjml`, `html`, or `text`. SMS accepts `text`.
        Push accepts `payload`.
      properties:
        mjml:
          type: string
          nullable: true
        html:
          type: string
          nullable: true
        text:
          type: string
          nullable: true
        payload:
          type: object
          nullable: true
          additionalProperties: true
    NotFoundError:
      type: object
      required:
        - error
      properties:
        error:
          type: string
          enum:
            - not_found
    ErrorList:
      type: object
      required:
        - errors
      properties:
        errors:
          type: array
          items:
            type: object
            required:
              - message
            properties:
              message:
                type: string
  responses:
    Unauthorized:
      description: Missing API key, invalid API key, or mapped project disabled.
    Forbidden:
      description: >-
        Missing permission, missing local project API key mapping, or owner
        mismatch.
    NotFound:
      description: Resource does not belong to the mapped project.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/NotFoundError'
          examples:
            default:
              value:
                error: not_found
    ValidationError:
      description: >-
        Invalid request payload, non-draft campaign content mutation, or
        unsupported content format.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorList'
          examples:
            nonDraftCampaign:
              value:
                errors:
                  - message: >-
                      Campaign content can only be created or updated while the
                      campaign is in draft
            unsupportedEditorType:
              value:
                errors:
                  - message: Unsupported content format
    ServiceUnavailable:
      description: Upstream API key validation failed.
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: Authorization
      description: Accepts either a raw secret key or `Bearer <sk_KEY>`.

````