We have tried with and without a “moderatorId” but the response remains the same. We also tried with and without the base URL “v2”.
Can anybody help us as to how we successfully use the various /events end-points ?
Page 1 / 1
Hi @michaelrandrup - I just tested some of the Events endpoints here myself and the regular authentication worked just fine, so I haven’t been able to replicate. Which endpoint exactly are you working with? I expect you’ve checked these things already, but just to double-check the basics - are you sure your moderatorID has the permissions, or are you by any chance also trying endpoints that require a ‘write’ scope?
The “XYZ” is the user id of our community moderator who has access to events.
We have created an OAuth2 client (clientid+secret) and are using that Bearer token as credential on all API calls - which “regular authentication” are you referring to? OAauth2 is the only way we can access the API’s as I understand things.
Yep by ‘regular authentication’ I just mean the same authentication method that we use for the other endpoints. For that ‘list events’ endpoint, have you tried adding the Moderator ID as a header (X-USER-ID) instead?
Hi Kenneth, yes exact same error. Testing in Postman:
Same Authentication - but /user endpoint works fine:
Alright thanks @michaelrandrup - that is puzzling. As I’m not able to replicate the issue (these endpoints work fine in Workato for me using the same connection/authentication I’m using for other endpoints) I’m afraid that I’m not going to be the most helpful resource for you in terms of figuring out exactly what’s happening, so I recommend you also create a ticket with our Support engineers (they REALLY know this stuff). And in the meantime, someone else might chime-in here with more ideas.
Hmm.. Yes, very very strange Kenneth.
So just to be sure here:
You are using /v2/events as your endpoint
You are authenticating using an OAuth2 bearer token
You can make it work both by using the query string moderatorId=XYZ AND the X-USER-ID?
Can you make it work without specifying a moderatorId?
If that is so, it must be something with my moderatorId then? I have tried 3 different moderators who are community managers, so it seems really strange.
Also, I don’t see that return message in the documentation at all. Could be be ‘new’ to V2 and maybe we don’t have access to that version of the API or something? and who can check that for us?
The moderatorId is only needed if the “class” parameter is “all”. But in any case, it doesn’t work, so its not the moderatorId, or a wrong endpoint or a wrong authentication (at least the authentication works on every other endpoint).
So I guess my question is, who we can contact for an issue like this one?
Thanks for trying to help @Kenneth R - I decided to write support@insided.com -
I had this error when I mistakenly used the wrong base URL for the API. I was trying to use eu-west-1 when it should have been us-west-2.
Very frustrating because it’s so hard to spot the mistake.
Of course, your error might be a different cause, but I wanted to mention it.
If you ever had a profile with us, there's no need to create another one. Don't worry if your email address has since changed, or you can't remember your login, just let us know at community@gainsight.com and we'll help you get started from where you left.
Else, please continue with the registration below.