I'm trying to make use of MailChimp's Automation trigger that activates when a subscriber's email ID is posted to an API endpoint:
(link)
Following the Workflow instructions, I'm using the following https://us19.api.mailchimp.com/3.0/automations/xxxxxxxxxx/emails/xxxxxxxxxx/queue URL provided via the Campaign.
I can successfully send an authenticated HTTP POST request (using this do_Post() method copied into my codebase), but am faced with a 400 error with a Content-Type: application/problem+json
response. My JSON is incorrect and I'm not sure what the JSON should look like to trigger the above event.
I've tried a plethora of different cracks at the JSON - my latest attempt looks like {"unique_email_id":"e063dfcf4g"}
. Every attempt at altering the JSON data still is returning me the same error above.
I've been wondering if I possibly need to set some more headers in the POST request, but this is beyond my area of expertise.
I appreciate the help and insights.