I currently have a Node.js service to send a voice call through AWS Pinpoint. However, I'm getting a Resource not found
response after making a call. I tested with PinpointSMSVoice.sendVoiceMessage
which succeeds in making the call. The one that doesn't work is Pinpoint.sendMessages
. My request object looks like this:
{
ApplicationId: 'project-id',
MessageRequest: {
Addresses: {
['destination-number']: {
ChannelType: 'VOICE',
Substitutions: {
// Using a template
}
}
},
MessageConfiguration: {
VoiceMessage: {
LanguageCode: 'en-US',
OriginationNumber: 'origination-number'
}
},
TemplateConfiguration: {
VoiceTemplate: {
Name: 'voice-template
}
}
}
};
pinpoint.sendMessages(requestObj, callback);
I should note that I am not in sandbox mode, it was approved and moved to production mode. I have tested the same setup with SMS which works perfectly well. I'm not quite sure what the difference is between PinpointSMSVoice.sendVoiceMessage
and Pinpoint.sendMessages
, except for the fact that Pinpoint.sendMessages
allows me to set a template. Any ideas on what else I could be missing?