Same request works from POSTMAN but I'm getting in troubles when trying curl.
curl -d @al.json -H "Content-Type: application/x-www-form-urlencoded" -H "Authorization: Bearer this_is_a_valid_token" -X POST https://www.exacttargetapis.com/messaging/v1/messageDefinitionSends/key:this_is_a_valid_external_key/send
And the al.json file is
{"To": {"Address": "[email protected]", "SubscriberKey": "[email protected]", "ContactAttributes": {"SubscriberAttributes": {"Attr": "attr1", "firstName": "Mother Teresa" } } }, "OPTIONS": {"RequestType": "ASYNC"} }
The response is:
{"requestId":"12a96292-03d1-4a0d-9e3f-1htf4512aea1","responses":[{"recipientSendId":"","hasErrors":true,"messages":["InvalidOrMissingTo"]}]}
I've reviewed MessageDefinitionSends Rest API successful response but never sends email and Rest API says email is queued but never shows up in web frontend or sends email but can't fihure out what's wrong