Missing permission error

Hi

I am new to using Mypurecloud API, trying to run below API from postman but not success. I am getting missing permission error. Could you please help on this.

Please find below API curl call details and error response.

Curl call:

curl --location --request GET 'https://api.mypurecloud.com/api/v2/routing/wrapupcodes/c79d1322-fbc2-4467-b03a-cd1d10cdd24a' \

--header 'Content-Type: application/json' \

--header 'Authorization: Bearer XXXXXXXXXXXXX'

Request API:

https://api.mypurecloud.com/api/v2/routing/wrapupcodes/c79d1322-fbc2-4467-b03a-cd1d10cdd24a

Response:

{
"message": "Unable to perform the requested action. You are missing the following permission(s): [routing:wrapupCode:view]",
"code": "missing.permissions",
"status": 403,
"contextId": "0300bc9f-c75b-44ab-98b9-2c2d9f1d3644",
"details": [],
"errors": []
}

@spatil Please regenerate your client secret immediately. I edited your credentials out of your post (Authorization header value), but they were exposed to the open internet for some time. Your client secret must be handled like a password.

Just now I have regenerated Bearer Token using client id and client secret. I am using Bearer token in Authorization but getting same error.

Seems don't have permission to [routing:wrapupCode:view]. How I can get privilege's for same. Could you please assist on this so that we can fix this issue.

If you are using an OAuth Client Credentials Grant client for your authentication flow, you need to assign this permission to the OAuth Client itself (via a Role). This is done in Genesys Desktop - Admin UI, enabling roles at the OAuth Client configuration level (Roles tab).

If you are using an OAuth Implicit Grant client or Authorization Code Grant (something that prompted for your user credentials in Genesys Cloud), you need to assign this permission to your user (via a Role).

Regards,

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