Incorrect API Key

Hi,

After executing the following code I get this error.

Error:
{“status_code”:“403”,“status_message”:“Incorrect API Key”,“body.message”:“Your API Key appears to be invalid. Please check again.”}

Code:
var request = require(“request”);

var options = {
method: ‘POST’,
url: ‘https://api.cometondemand.net/api/v2/createUser’,
headers: {‘api-key’: ‘api-key’, ‘content-type’: ‘application/x-www-form-urlencoded’}
};

request(options, function (error, response, body) {
if (error) throw new Error(error);

console.log(body);
});

Hi @joe.george

It seems you are using CometChat Go.
The support for CometChat Go is provided using our ticketing/email system. Please visit your CometChat Go Dashboard and create a support ticket.

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.