Preview a step
Changed onRenders the email exactly as contact_id would receive it (subject, preview line and the full HTML in the account's layout) without sending anything. Nothing is recorded: no delivery, no stats, no enrollment. The unsubscribe link in it is a placeholder that unsubscribes nobody. For someone enrolled in the sequence, product, order, tag and form variables come from what they joined with (data_source: enrollment); for anyone else they come from their latest order (latest_order), or are blank when they have none (no_order).
Request
- Base URLhttps://api.crevio.co/v1
- AuthAPI key in header Authorization
Path parameters
The sequence's prefixed id (e.g. seq_abc123).
The step's prefixed id (e.g. seqst_abc123).
Headers
Makes this write safe to retry: a repeat with the same key replays the first response instead of creating a second resource. Scoped to the account, remembered for 24 hours; reusing a key with a different payload is an error.
Request body
Render as this contact (con_...). Omit to use every variable's default.
Response
The rendered email
An email rendered for one contact exactly as they would receive it, without sending it.
The subject with its variables filled in.
The inbox preview line with its variables filled in, or empty.
The whole email, layout included. Its unsubscribe link is a placeholder that unsubscribes nobody.
Whose data filled the variables: none (no contact_id, so every variable uses its default), contact (their details as they are now), enrollment (a sequence step for someone enrolled: what they joined with), latest_order (not enrolled, so product and order variables come from their latest order) or no_order (not enrolled and no order, so those variables are blank).
Changes
- warning
added the new
idempotency_errorenum value to theerror/typeresponse property for the response status - warning
added the new
idempotency_errorenum value to theerror/typeresponse property for the response status - warning
added the new
idempotency_errorenum value to theerror/typeresponse property for the response status
3 more changes in this revision
- warning