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

# CreateCampaignInput

> The details of a campaign to create. Email campaigns also need a subject and preview text.

<ResponseField name="channel" type={<a href="/docs/api-reference/v3/reference/marketing/marketing-channel">MarketingChannel!</a>} required>
  Whether this campaign sends email or SMS.
</ResponseField>

<ResponseField name="excludedSegmentIds" type="[ID!]">
  Segments to exclude from the audience. SMS campaigns may also exclude Texas recipients automatically.
</ResponseField>

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

<ResponseField name="previewText" type="String">
  Email preview text. Required when `channel` is `EMAIL`.
</ResponseField>

<ResponseField name="subject" type="String">
  Email subject line. Required when `channel` is `EMAIL`.
</ResponseField>


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