Triggering Workflow with Multiple Emails via Custom API Event?

  • 0
  • 1
  • Question
  • Updated 6 months ago
  • Answered
Archived and Closed

This conversation is no longer open for comments or replies and is no longer visible to community members. The community moderator provided the following reason for archiving: EOL CLEANUP

I have a Workflow setup that is trigger by a custom API event.  I can trigger and send mail by POSTing a payload that looks like this:


{    "event_name": "my-event",
    "my-action": "do-something",
    "id": 1028374857,
    "email": somebody@somewhere.com",
    "my_title": "Some Title"
}
Is the any way to include multiple email addresses in a single payload or do I have to to a POST for every email I want it sent to?
Photo of This Old House (David Esposito)

This Old House (David Esposito)

  • 1 Post
  • 0 Reply Likes

Posted 6 months ago

  • 0
  • 1
Photo of Kyle Gregory | Lipscomb University

Kyle Gregory | Lipscomb University, Champion

  • 99 Posts
  • 69 Reply Likes
Hey David,

Looking at the docs, I only see email as a string, so I'm thinking it's a POST for each email you want to send. This would make sense, because Emma's examples are based off of user's actions, which might have different variables (customer id, product type, etc.). You might try to pass an array to a couple of users in your account to see if the API will respond, but I'm betting it's one POST for one email sort of situation.

Hope that helps,
Kyle
Photo of Heather Sturm

Heather Sturm, Integrations Support Specialist

  • 99 Posts
  • 3 Reply Likes
Hi David,

We can confirm Kyle's answer here. You will only be able to send one email address per POST on the event API.

Best,
Heather