---
title: "Get SMS campaign content"
method: GET
path: "/3.0/sms-campaigns/{sms_campaign_id}/content"
tags: ["sms-campaigns"]
---

# Get SMS campaign content

`GET /3.0/sms-campaigns/{sms_campaign_id}/content`

## Request

- Base URL: `https://api.mailchimp.com`
- URL: `https://api.mailchimp.com/3.0/sms-campaigns/{sms_campaign_id}/content`
- Auth: one of:
  - HTTP bearer
  - OAuth 2
    - Authorization code: `https://login.mailchimp.com/oauth2/authorize`
    - Token URL: `https://login.mailchimp.com/oauth2/token`
- TypeScript: <https://skmtc.dev/mailchimp/apis/mailchimp-api/docs/3.0/sms-campaigns/:sms_campaign_id/content/get.ts> (a function with typed inputs; its response is checked against the schema)

Get the content for an SMS campaign.

## Path parameters

- `sms_campaign_id` string, required

## Query parameters

- `fields` string[]
- `exclude_fields` string[]

## Response `200`

- object: The content of an SMS campaign.
  - `message_body` string: The SMS message body.
  - `estimated_segments` integer: The estimated number of message segments this content will use.
  - `merge_fields` string[]: The merge fields used in the message body.
  - `media` object[]: Attached images or files.
    - `url` string: The URL of the media file.
  - `source` object: The source that created or imported this content.
    - `type` string: The type of source.
    - `id` string: The ID of the source.
  - `properties` object: Additional content properties.
    - `content_type` string: The content type of the message.
    - `sender` string: The sender identifier for the message.
    - `optout_message_language` string: The language of the opt-out message.
  - `_links` object[]: A list of link types and descriptions for the API schema documents.
    - `href` string: This property contains a fully-qualified URL that can be called to retrieve the linked resource or perform the linked action.
    - `method` 'GET' | 'POST' | 'PUT' | 'PATCH' | 'DELETE' | 'OPTIONS' | 'HEAD': The HTTP method that should be used when accessing the URL defined in 'href'.
    - `rel` string: As with an HTML 'rel' attribute, this describes the type of link.
    - `schema` string: For HTTP methods that can receive bodies (POST and PUT), this is a URL representing the schema that the body should conform to.
    - `targetSchema` string: For GETs, this is a URL representing the schema that the response should conform to.

## Other responses

- `default`: An error generated by the Mailchimp API.

---

[API](https://skmtc.dev/mailchimp/apis/mailchimp-api.md) - [All operations](https://skmtc.dev/mailchimp/apis/mailchimp-api/llms.txt) - [OpenAPI document](https://skmtc.dev/mailchimp/apis/mailchimp-api/revisions/53bf4b156855?raw)
