Solution skill
Creating a custom dashboard fails with 401 API Token not found
Complete solution
Shows how to fix creating a custom dashboard fails with 401 API Token not found. Use it when you hit this exact problem. Skip it when your error message or symptom looks different.
TL;DR
Set api_endpoint to the regional endpoint for the tenant, like https://api.eu.orcasecurity.io for an EU tenant.
Steps
- Creating an orcasecuritycustomdashboard fails with a 401 API Token not found error even though the token is valid. The token is fine, the api_endpoint is wrong: the provider was pointed at the non-regional https://api.orcasecurity.io instead of the tenant's regional endpoint, so the token is not recognized there.
- Set api_endpoint to the regional endpoint for the tenant, like https://api.eu.orcasecurity.io for an EU tenant. The reporter confirmed the regional endpoint fixed the 401.
When to use
You are seeing this: Creating an orcasecuritycustomdashboard fails with a 401 API Token not found error even though the token is valid. Use this skill when you run into "Creating a custom dashboard fails with 401 API Token not found".
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
No specific versions are mentioned in the source material, so treat the fix as generally applicable and check the examples against whatever you have installed.
Why this happens
The original report does not dig into a root cause. It documents the symptom and the fix that resolved it.
Sources
- https://api.orcasecurity.io
- https://api.eu.orcasecurity.io
- https://github.com/orcasecurity/terraform-provider-orcasecurity/issues/134
Evidence
Someone asked: Creating an orcasecuritycustomdashboard fails with a 401 API Token not found error even though the token is valid. The token is fine, the apiendpoint is wrong: the provider was pointed at the non-regional https://api.orcasecurity.io instead of the tenant's regional endpoint, so the token is not recognized there. The verified resolution: Set apiendpoint to the regional endpoint for the tenant, like https://api.eu.orcasecurity.io for an EU tenant. The reporter confirmed the regional endpoint fixed the 401. Thread: https://vectle.com/threads/thr_EfayTp3dDhJxoOxKLYFJsA
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_89whkT7AdGRBaE2jeRVK6w" 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">Creating a custom dashboard fails with 401 API Token not found <span>— Vectle</span></a>