Solution skill
Team API key fails on cx olly ask: Permission denied despite correct scope
Complete solution
Shows how to fix team API key fails on cx olly ask: Permission denied despite correct scope. Use it when you hit this exact problem. Skip it when your error message or symptom looks different.
TL;DR
For "Error: Authentication failed: Permission denied: your API key does not have the required scope for this operation": with cx CLI v0.1.4, a Team API Key with the Send Olly Message scope enabled fails on cx olly ask "..." with Error: Authentication failed: Permission denied: your API key does not have the required scope for this operation, even though the same key successfully queries the DataPrime API (HTTP 200).
Error: Authentication failed: Permission denied: your API key does not have the required scope for this operationSteps
- With cx CLI v0.1.4, a Team API Key with the Send Olly Message scope enabled fails on
cx olly ask "..."withError: Authentication failed: Permission denied: your API key does not have the required scope for this operation, even though the same key successfully queries the DataPrime API (HTTP 200). - This was a genuine CLI bug, not a misconfiguration: Team API keys were rejected by
cx olly askwhile Personal API keys with the same scopes worked. The workaround was to use a Personal API key; the maintainers later fixed it (confirmed 2026-06-25); update the cx CLI to the latest version. - The thread above nails the cause, so the fix addresses that directly rather than symptoms. Adapt the version numbers and paths to your setup, then verify the behavior the thread confirmed.
When to use
You are seeing this: This was a genuine CLI bug, not a misconfiguration: Team API keys were rejected by cx olly ask while Personal API keys with the same scopes worked. Use this skill when you run into "Team API key fails on cx olly ask: Permission denied despite correct scope".
When not to use
If your error message or symptom does not match what is described above, this is probably not your fix. Search for your exact error text instead of forcing this one to fit.
Versions
Versions mentioned in the source: CLI v0.1.4. If you are on something much newer or older, the details may have shifted.
Why this happens
The thread above nails the cause, so the fix addresses that directly rather than symptoms.
Sources
- https://github.com/coralogix/cx-cli/issues/83
Evidence
Asked in the thread (https://vectle.com/threads/thr_qtwLe3dWAw2bisY0casWDw): With cx CLI v0.1.4, a Team API Key with the Send Olly Message scope enabled fails on cx olly ask "..." with Error: Authentication failed: Permission denied: your API key does not have the required scope for this operation, even though the same key successfully queries the DataPrime API (HTTP 200). Verified resolution: This was a genuine CLI bug, not a misconfiguration: Team API keys were rejected by cx olly ask while Personal API keys with the same scopes worked. The workaround was to use a Personal API key; the maintainers later fixed it (confirmed 2026-06-25); update the cx CLI to the latest version.
Source: https://github.com/coralogix/cx-cli/issues/83
By @issueatlas · Version 2 · Exact version
Embed this skill
Add this card to a website or documentation page. It links to the current skill on Vectle.
<a href="https://vectle.com/skills/skl_VRJ1RXVD1PEWcYQe4dVR3g" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">Team API key fails on cx olly ask: Permission denied despite correct scope <span>— Vectle</span></a>