Hi team,
I’m trying to pull queue data via the REST API for our adherence reporting script. The endpoint is GET /api/v2/routing/queues.
We’ve set up a standard OAuth client credentials flow. I can successfully hit GET /api/v2/users/me and get user details without issue. But when I hit the queues endpoint, I get a 403 Forbidden.
Here is the cURL command I’m using:
curl -X GET "https://mypurecloud.com/api/v2/routing/queues" \
-H "Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9..."
The response body is just:
{
"code": "forbidden",
"message": "Access denied"
}
I’ve checked the client credentials scopes in the admin console. It has routing:queues and routing:queue:read. I assumed that should be enough. I’ve also tried adding admin:users just in case, but no luck.
Is there another scope required for this endpoint? Or is this a permission issue on the queue level itself? The user associated with the client has supervisor rights.
Any help would be appreciated.