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

# CampaignSmsVariant

> One version of a campaign's SMS content, with the share of recipients it was sent to.

<ResponseField name="abTestWeight" type="Float!" required>
  The share of recipients this variant was sent to. A campaign with a single variant weights it 1.
</ResponseField>

<ResponseField name="position" type="Int!" required>
  This variant's position within the campaign, starting at 0.
</ResponseField>

<ResponseField name="template" type={<a href="/docs/api-reference/v3/reference/marketing/sms-template">SmsTemplate</a>}>
  The content this variant sent. Null when the template has since been deleted.

  **Requires:** [`marketing_templates_read`](/docs/api-reference/v3/reference/scopes#scope-marketing_templates_read)

  <Expandable title="fields" lazyRender>
    <ResponseField name="autoShortenLinks" type="Boolean!" required>
      Whether links in the body are shortened at send time.
    </ResponseField>

    <ResponseField name="content" type="String!" required>
      The SMS body **as authored**, before per-recipient substitution.
    </ResponseField>

    <ResponseField name="createdAt" type={<a href="/docs/api-reference/v3/reference/common/date-time">DateTime!</a>} required>
      When the template was created.
    </ResponseField>

    <ResponseField name="id" type="ID!" required>
      The id of this template.
    </ResponseField>

    <ResponseField name="images" type={<a href="/docs/api-reference/v3/reference/marketing/sms-template-image">[SmsTemplateImage!]!</a>} required>
      Images sent with the message as MMS, in order. Dynamic product images and contact cards set in the editor are not listed.

      <Expandable title="fields" lazyRender>
        <ResponseField name="url" type="String!" required>
          The image URL.
        </ResponseField>
      </Expandable>
    </ResponseField>

    <ResponseField name="legacyId" type="String!" required>
      The template's legacy Mongo ObjectId (24-char hex) from before the CockroachDB migration.
    </ResponseField>

    <ResponseField name="name" type="String!" required>
      The merchant-facing name of the template.
    </ResponseField>

    <ResponseField name="trigger" type={<a href="/docs/api-reference/v3/reference/marketing/marketing-trigger">MarketingTrigger!</a>} required>
      The trigger context this template is valid for. Immutable after create. UNKNOWN when the stored trigger is not modeled in this API version.
    </ResponseField>

    <ResponseField name="updatedAt" type={<a href="/docs/api-reference/v3/reference/common/date-time">DateTime!</a>} required>
      When the template was last edited.
    </ResponseField>
  </Expandable>
</ResponseField>


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.