WFM API 403: Insufficient Permissions for Quality Evaluation Export

Looking for advice on resolving a persistent 403 Forbidden error when attempting to export quality evaluation data via the /api/v2/analytics/quality/evaluations endpoint.

Background

Our AppFoundry integration uses a dedicated service account with the Quality Manager role to automate compliance reporting across multiple tenants.

Issue

The POST request fails immediately with a 403 status code, despite the account having explicit permissions to view and export evaluations in the UI.

Troubleshooting

  • Verified the access token is valid and contains the correct analytics:read scope.
  • Confirmed the service account has quality:read and quality:export permissions.
  • Tested with a direct user token, which succeeds, indicating a service account privilege escalation or scope mapping issue.

Make sure you verify the service account permissions:

  • Assign the Quality:Evaluation:Export privilege directly instead of relying on the role bundle
  • Check for tenant-level data isolation restrictions blocking cross-tenant exports
  • Confirm the API key has the quality:evaluation:read scope enabled