POST Preview Double Opt-in​
Render a preview of unsaved double opt-in settings. Nothing is saved and no email is sent.
target picks what to render. By default the endpoint renders the confirmation email and returns its HTML, subject and sender. With target set to confirmation it renders the page a contact sees after they confirm, built from settings.after_confirm_message with the same markup and stylesheet as the public page. That message is filtered with wp_kses_post() unless the user has the unfiltered_html capability.
Smart codes are filled from the contact in contact_id. Without it, FluentCRM uses the contact linked to the current user, then the first subscribed contact. If none exists, the request fails.
Required capability: fcrm_manage_settings
Enforced by SettingsPolicy::previewDoubleOptin().
Authorizations​
WordPress Application Passwords — use Basic auth with your WordPress username and an application password in the format: username:application_password
Request Body​
Responses​
The rendered preview. The keys depend on target.