Legacy Dev Forum Posts

 View Only

Sign Up

Unauthorised scope issue when calling Notifications API

  • 1.  Unauthorised scope issue when calling Notifications API

    Posted 06-05-2025 18:30

    James_K | 2024-02-21 15:26:12 UTC | #1

    We run a daily task to get agent adherence data via the API - We have a script making requests to the workforcemanagement API to request the data we want, then we call the notifications API to create a channel for notifications about the data we want, then we get the data as we learn the jobs are completed.

    As of yesterday, this process was working correctly, from this morning we are now getting the error...

    "message":"App not authorized to use scope [notifications]","code":"app.not.authorized.for.scope","status":403

    Whenever we attempt to create the channel.

    Interestingly neither our OAuth Client, nor the Service account user had the 'notifications' scope enabled previously (and it worked fine) - but even when I add this scope to both the OAuth Client configured in Genesys, and to the custom role for our service account user (that we are using to retrieve the data), we get the same error.

    Is it possible anything has changed or there are any issues with this endpoint? Or any other advice would be very welcome - thanks


    tim.smith | 2024-02-21 15:29:13 UTC | #2

    The error indicates that your OAuth client has not been granted the appropriate scope. You can read about scopes here: https://help.mypurecloud.com/articles/about-oauth-scopes-for-applications/. If you believe the error message is incorrect, please open a case with Genesys Cloud Care.


    James_K | 2024-02-21 15:31:50 UTC | #3

    Thanks Tim, yes after enabling the notifications scope, we get the same error.


    system | 2024-03-22 15:32:40 UTC | #4

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


    This post was migrated from the old Developer Forum.

    ref: 24785