Newsletter Variants

List one-time send variants

Changed on

Returns a one-time send's content variants (a one-time send is referred to as a "newsletter" in our APIs)—these are either different languages in a multi-language one-time send or A/B tests.

get/v1/newsletters/{newsletter_id}/contents

Request

  • Base URL
    https://api.customer.io
  • URL
    https://api.customer.io/v1/newsletters/{newsletter_id}/contents
  • Auth
    HTTP bearer

Response

Returns one-time send content_ids. Each object represents an individual variant of this one-time send.

Example response

{
  "contents": [
    {
      "newsletter_id": 10,
      "deduplicate_id": "15:1492548073",
      "name": "one-time send variant A",
      "layout": "<html><body>{{ content }}</body></html>",
      "body": "<strong>Hello from the API</strong>",
      "language": "fr",
      "type": "email",
      "from": "sentFrom@example.com",
      "from_id": 1,
      "reply_to": "replyto@example.com",
      "reply_to_id": 38,
      "recipient": "{{customer.email}}",
      "subject": "Did you get that thing I sent you?",
      "headers": "[{\"name\":\"X-Mailgun-Tag\",\"value\":\"my-cool-tag\"},{\"name\":\"X-Custom-Header\",\"value\":\"custom-value\"}]"
    }
  ]
}

Changes