Send a test email for the given template. Provide email for an
explicit recipient, contact_id to use a contact’s email (with
merge-tag personalization), or omit both to send to the account owner.
API key (nskey_live_...) or JWT token. API key is checked first;
if not found, falls back to Devise JWT authentication.