Genesys Cloud - Developer Community!

 View Only

Sign Up

  • 1.  What changed in the permissions for the /api/v2/languageunderstanding/ resources?

    Posted 3 days ago

    Hi,

    I am developing an application which needs to fetch intents for a /api/v2/languageunderstanding/domain (including the "utterances"). The application runs in a user context, and it had the scope "language-understanding:readonly"

    Until about 4 hours ago, this worked as intended, but now suddenly I get an error "App not authorized to use scope [dialog, language-understanding, language-understanding:readonly, dialog:readonly]" - but the OAuth client I use has the "language-understanding:readonly" scope!

    Are there additional rights I have to assign to the app, and why did it suddenly fail?

    Puzzled,

    Wolfgang Liebihc


    #Integrations
    #PlatformSDK

    ------------------------------
    Wolfgang
    ------------------------------


  • 2.  RE: What changed in the permissions for the /api/v2/languageunderstanding/ resources?

    Posted yesterday

    Hi Wolfgang,

    Based on the error, I would separate the OAuth scope issue from the user's role/permissions.

    app.not.authorized.for.scope normally indicates that the application/access token is being rejected at the OAuth scope level, before the API evaluates the user's permissions.

    Since this was working previously and your client already has language-understanding:readonly, I would first force a completely new authorization/access token and test the same request again. If possible, I would also test the endpoint through API Explorer with the same user.

    If a fresh token still returns the same 403, I would capture the ININ-Correlation-Id from the response and open a Genesys Cloud Care case. A sudden change without any OAuth client modification could indicate a change in scope enforcement on the platform side.

    I would avoid adding broader scopes such as dialog unless Genesys confirms that the endpoint now requires them.

    It would be interesting to know whether the scope requirements for these endpoints were recently changed.



    ------------------------------
    Marciel
    ------------------------------



  • 3.  RE: What changed in the permissions for the /api/v2/languageunderstanding/ resources?

    Posted 12 hours ago

    Today I re-ran the test - the problem is not there anymore. Did Genesys change something in the cloud backend during the weekend?

    Regards,

    Wolfgang Liebich



    ------------------------------
    Wolfgang
    ------------------------------



  • 4.  RE: What changed in the permissions for the /api/v2/languageunderstanding/ resources?

    Posted 12 hours ago

    Hi Wolfgang,

    That's great news! Thanks for the update.

    I'm not aware of any specific changes made by Genesys to the cloud backend over the weekend that would explain this behavior.

    In any case, it's good to know the issue is no longer occurring.

    Marciel da Silva
    Genesys Cloud CX Solutions Architect

     



    ------------------------------
    Marciel
    ------------------------------



  • 5.  RE: What changed in the permissions for the /api/v2/languageunderstanding/ resources?

    Posted 11 hours ago

    Hi, 

    is it possible that this was a result of some kind of limit reached by me? I also encountered many "Error 429"-Events while fetching details for a list of flows - but I found no lower rate limit specified for the "/api/v2/flows/{flowId}" API endpoint, i.e. the global limit of 300 requests/minute should have sufficed - and it did not.

    Regards,

    Wolfgang Liebich



    ------------------------------
    Wolfgang
    ------------------------------



  • 6.  RE: What changed in the permissions for the /api/v2/languageunderstanding/ resources?

    Posted 9 hours ago

    OK, bad news - the error is back. It re-appeared, after the OAuth token for my app ran down and I had to re-login in the cloud. Strange - re-doing the log-in should suffice, but it does not? What is going on here? Is this some strange side effect of an inactivity timeout?

    Regards,

    Wolfgang Liebich



    ------------------------------
    Wolfgang
    ------------------------------