Go to All Forums

oauth not working for some specific api.


I am trying to access data using oauth2  but some api is returning 

{"error_code":1121,"message":"OAuth Scope associated to the OAuth Access Token is disallowed."} 

where some other api such as (www.site24x7.com/api/monitors/XXX)returning data
with same api credentials oauth2.
I am using all scope also.

Like (2) Reply
Replies (1)


You can check the scope of the api in the API Doc itself

For example,


oauthscope  for POST /monitors is Site24x7.Admin.Create.

If you could not access the api, even after generating the token with the mentioned oauthscope, let us know the api end point.

One more tip, if you are using "All" option for a scope, for example Site24x7.Admin.All, then you don't need to specify the individual CRUD options for the scope, such as Site24x7.Admin.Create, Site24x7.Admin.Read etc.



Like (0) Reply

Was this post helpful?