Newsletter Variants
List one-time send variants
Changed onReturns 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 URLhttps://api.customer.io
- URLhttps://api.customer.io/v1/newsletters/{newsletter_id}/contents
- AuthHTTP 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
- info
added the media type
application/jsonfor the response with the status
- info