Preview a campaign email
Renders draft email content using the selected contact's fields and declared templateData fallbacks.
Renders draft email content using the selected contact's fields and declared templateData fallbacks. Creates no campaign run or message. Omit contactId to preview the fallback data alone.
Authorization
apiKey In: header
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
application/json
application/json
application/json
application/json
application/json
curl -X POST "https://example.com/v1/campaigns/preview" \ -H "Content-Type: application/json" \ -d '{ "content": { "channel": "email", "email": {} }, "audience": { "topicId": "string" } }'{ "subject": "string", "preheader": "string", "html": "string", "text": "string"}Related documentation
Pause a campaign run
Pauses an in-progress campaign run and returns the updated run. Use this endpoint to pause a campaign run through the Samva email API.
Resume a campaign run
Resumes a paused campaign run and returns the updated run. Use this endpoint to resume a campaign run through the Samva email API.