Send a test automated email
Queues an automated email using a tenant-owned commitment and trigger. Tests go only to the authenticated admin, bypass sample donor/form email restrictions, and do not notify the donor. A test can target one donation-type variant; it is sent only when that variant and the standard template are both on, and source details such as the DAF sponsor or IRA custodian use clearly labeled sample values. With test false, donor email preferences apply and successful queueing records donor activity. Requires admin API authentication and user permission checks.
Authorizations
Passport bearer token authentication for legacy admin sessions.
Body
Test email payload. The controller validates the commitment, trigger, optional statement year, and optional donor-send flag.
Commitment ID belonging to the authenticated client, used for donor, recipient, designation, and email-set context.
88211
Automated email trigger to render and send. Validation rule: required|string.
"pay_receipt"
Email set being edited. When present it must be the email set the commitment uses, otherwise nothing is sent. Validation rule: nullable|integer.
42
Template variant to test. Non-default variants are admin tests only and never fall back to the standard template. Defaults to default.
default, in_kind, soft_credit, daf, qcd "qcd"
Optional giving-source context. Use giving_source=daf and recipient_role=soft_credit for an advisor test; an unchanged Standard Donation copy is skipped. Missing context preserves ordinary Direct soft-credit behavior.
Statement year used by the year_end_statement trigger. Validation rule: nullable|integer; defaults to the current year.
2026
When true or omitted, sends to the authenticated admin; when false, sends to the donor and records activity. Validation rule: nullable|boolean.
true