I am trying to use the REST Call to fire a triggered send. My Package is a Server to Server and I am using the V2 for authentication and i get a bearer generated.
When I actually do the POST Call for the Triggered Send Definition I get the following message:
{ "message": "Insufficient privileges to complete this action.", "errorcode": 20002, "documentation": "" }
I am using this documentation as reference:
I do a POST CALL to the following endpoint:
https://mc4MYENDPOINT.rest.marketingcloudapis.com/messaging/v1/messageDefinitionSends/key:Trigger Send - Cristina TEST/send
{
"From": {
"Address": "code@exacttarget.com",
"Name": "Code@"
},
"To": {
"Address": "myexample@gmail.com",
"SubscriberKey": "Cristina34646466464664644",
"ContactAttributes": {
"SubscriberAttributes": {
"First Name": "West",
"Booking": "its a test really"
}
}
},
"Options": {
"RequestType": "SYNC"
}
}
If i do either SYNC or ASYNC fails with the same message. I have tried different scope in the auth call but they all fail.
I tried:
"scope": "data_extensions_write" "scope":"email_write", "scope": "email_send",
In all of these instances it fail with that same message.
What do i need to change in the auth call to make this work?!
Giulietta