I have tried the API(/metadata/list) of mailChimp as recommended by the official documentation through postman but always got the same error of Invalid_Key. I have getting key from the mailchimp account and it's active right now. Is anyone know that there is some tricky part to call the MailChimp Api's through postman?
Error Response of Postman:
{
"status": "error",
"code": -1,
"name": "Invalid_Key",
"message": "Invalid API key"
"Status Code: 500
}
Official MailChimp Documentation Link
And I have tried the mailchimp client transactional nodeJS code as well which is as following but still got same error as thorugh postman.
const mailchimp = require('@mailchimp/mailchimp_transactional')('API-KEY');
async function callPing() {
const response = await mailchimp.metadata.list();
console.log(response);
}
callPing();