Using "bcc": in webhook

Originally posted by Lance Robinson

Hi

Sending emails to clients using endpoint https://api.servicem8.com/platform_service_email works fine with “to”: and “cc”: but i want to bcc a managment email address but “bcc”: does not appear to work.

Can anyone assist? Does the api support bcc?


cheers

Hi Lance,

The /platform_service_email endpoint doesn’t currently support a “bcc” parameter. The endpoint only supports “to” and “cc” parameters for email recipients.

The available recipient-related parameters are:

  • “to” (required): Recipient email address
  • “cc” (optional): Carbon copy recipient email address
  • “replyTo” (optional): Reply-to email address

If you need to send copies to a management email address without it being visible to the primary recipient, you’d need to either:

  1. Make a separate API call to send the email to the management address
  2. Use the “cc” field (though this would be visible to all recipients)

That should sort it.

Thanks,
Cody