Proper scope for List Surveys API to avoid 403 'insufficient scope' error | XM Community
Skip to main content

I’m writing funtions to list surveys and get the description for a specific survey. I’m struggling to determine the minimal necessary scopes for the OAuth client I have created for this purpose.

The scope required for the List Surveys API is not documented. I’ve tried setting read:surveys and manage:surveys in the OAuth client, but when accessing the List Surveys endpoint requesting a scope of read:surveys scope, I get a 403 - insufficient scope error.

If I add the manage:all scope to the OAuth client, but don’t change my request (still requesting read:surveys scope), it works. Why does the request fail when read:surveys is in the client scope, when that is excatly the scope I’m requesting? And why does it work when the client has the manage:all scope? 

What is the required scope for List Surveys and the other /surveys endpoints? 

 

 

Be the first to reply!

Leave a Reply