Unauthorized API calls

Hi,

I’m trying to develop commet chat app and utilize your Rest API endpoint. For every endpoint that I hit, 401 is returned. The account is under email - radovanr995@gmail.com.

Can someone take a look why are my requests not authorized even if I regularly set apiKey and appId in header?

Thanks,
Radovan

1 Like

Hi @Rasha,

You check after adding correct appId and apiKey to the cURL request below:

curl --location --request POST 'https://api-eu.cometchat-dev.com/v2.0/users' \
--header 'appId: 31XXXXXXd5ead' \
--header 'apiKey: 723b0dXXXXXXXXXXXcf9d8e' \
--header 'Content-Type: application/json' \
--header 'Accept: application/json' \
--data-raw '{"uid" :"superhero35","name":"Green Lantern"}'

Please share the minimum code required to reproduce the issue you are facing with the authentication.

Warm Regards,

Ketan Yekale
CometChat Team

Hey thanks, it was in EU vs US server. I’ve tried to use US one.

1 Like

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