Preview Template Substitution
Preview template variable substitution without personalization.
This endpoint renders a template with actual lead data but WITHOUT AI personalization. Useful for previewing what substitutions will look like before launching a campaign.
Args: campaign_id: Campaign ID step_index: Step index to preview variant_label: Variant label to preview lead_row_index: Row index of lead in dataset to use for preview current_user: Authenticated user campaign_service: Campaign service instance
Returns: Preview of subject and body with variables substituted
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
Query Parameters
Step index to preview
x >= 0Variant label to preview
Lead row index in dataset
x >= 0Response
Successful Response