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.
{
"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.
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).