Newsletter Variants
Get a one-time send translation
Changed onReturns information about a specific language variant of a one-time send (referred to as a "newsletter" in our APIs). If it includes A/B tests, use Get a translation in a one-time send test group.
get/v1/newsletters/{newsletter_id}/language/{language}
Request
- Base URLhttps://api.customer.io
- URLhttps://api.customer.io/v1/newsletters/{newsletter_id}/language/{language}
- AuthHTTP bearer
Response
Returns one-time send content for a language variant.
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