Embed a Form via API
Use API embedding when you need more control than a copy-paste HTML embed gives you.
Flow
- Render the form in your application.
- Validate fields server-side.
- Send the submission to Mailtarget.
- Store consent, source, and attribution metadata.
- Handle the success or error state in your UI.
Do not trust browser-only validation for production lead capture or consent workflows.