Feedback Management
Send a feedback email campaign
Validates the sender email, validates recipients, and sends a feedback email campaign to the provided recipient list.
Use the Get campaign requirements endpoint to retrieve the variables each recipient must provide.
The sender email domain must be authorized for your organization and validated for email sending. If sender validation fails, the entire campaign is rejected and the response includes sender_validation details.
If any recipient fails validation, the entire campaign is rejected and no emails are sent. The response body details every validation error.
Set is_dry_run: true to validate recipients without sending any emails.
post/feedback/campaign/send
Request body
Example request
{
"feedback_form_id": "5a3f8c2e1b4d7f9a0c6e2b18",
"feedback_email_template_id": 42,
"sender_email": "noreply@example.com",
"sender_name": "Acme Corp",
"recipients": [
{
"email_address": "john.doe@example.com",
"unsubscribe_url": "https://example.com/unsubscribe?token=abc123",
"variables": {
"first_name": "John",
"store_name": "Paris Store"
}
}
]
}Response
Campaign accepted or failed validation. Check the status field to distinguish the two outcomes.
Example response
{
"status": "accepted",
"feedback_email_campaign_id": 101,
"feedback_form_id": "5a3f8c2e1b4d7f9a0c6e2b18",
"feedback_email_template_id": 42,
"recipient_count": 150,
"duplicate_emails": [
"duplicate@example.com"
],
"invalid_emails": [
"not-an-email",
"missing@"
],
"missing_variables": [
[
"john@example.com",
[
"first_name",
"store_name"
]
]
],
"empty_variables": [
[
"jane@example.com",
[
"store_name"
]
]
],
"sender_validation": {
"sender_email": "sender@example.com",
"domain": "example.com",
"status": "validated"
}
}