Newsletter Variants
Get a one-time send variant
Changed onReturns information about a specific variant of a one-time send (referred to as a "newsletter" in our APIs), where a variant is either a language in a multi-language one-time send or a part of an A/B test.
get/v1/newsletters/{newsletter_id}/contents/{content_id}
Request
- Base URLhttps://api.customer.io
- URLhttps://api.customer.io/v1/newsletters/{newsletter_id}/contents/{content_id}
- AuthHTTP bearer
Response
Returns one-time send content.
Example response
{
"content": {
"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