I've created a Send Definition, with the key definition_key
, linked to the Data Extension data_ext
. In this Data Extension, I've got one record, with the subscriber key subscriber_key
and the email email
.
Now, I'm trying to send an email, using the rest API.
I hit the following endpoint POST https://MY_SUBDOMAIN.rest.marketingcloudapis.com/messaging/v1/email/messages/f4fe74b7-c3c0-4e5a-9f49-b63a641109a2
with the following payload
{
"definitionKey": "definition_key",
"recipient":
{
"contactKey": "subscriber_key",
"to": "email"
}
}
I'm getting a 400 error, with the following payload:
{
"message": "MCMS_UTM_Runtime_InvalidOperation: TriggeredSend definition not
enabled for this route, definitionKey=definition_key",
"errorcode": 30001,
"documentation": ""
}
The definition and subscriber keys are of course not the real ones.
=> What does this error mean exactly ? Is there really an issue with my request, or do I have to configure something else in SFMC UI ?
Thanks