troubleshoot-omniagent
Installation
SKILL.md
troubleshoot-omniagent
The pitfall index for the Napster API, organized by area. Find the area, scan the symptom-to-fix table, then follow the cross-link to the skill that gets it right the first time.
When this skill and the live docs disagree, the docs win — re-check with the docs MCP server (fetch-page, get-api-spec) and the Swagger at https://napster-api.napster.com.
Authentication and API keys
| Symptom | Likely cause | Fix |
|---|---|---|
401 Unauthorized on every call |
Key missing/expired/invalid | Re-check NAPSTER_API_KEY; regenerate in the dashboard |
401 despite a correct key |
Wrong header | Use X-Api-Key: <key>, not Authorization: Bearer |
| Works locally, 401 in CI/prod | Env var not set in that environment | Add NAPSTER_API_KEY to the secret store |
Microsoft Foundry key: session fails to start, Azure returns 401 |
Napster.API has no role on the Foundry resource, the role hasn't taken effect yet, or the key's tenant ID is wrong | Assign Foundry User to Napster.API in the resource's Access control (IAM), wait a few minutes, check the tenant ID ([[setup-api-key]]) |
403 InactiveSubscription |
The organization is out of credits. Starting sessions and creating, changing or deleting companions, digital twins, recordings and SIP connections are blocked; reads and agent, tool, knowledge and FAQ management keep working | Add credits. The key stays valid, so don't rotate it |
403 where you expected 400 (DigitalTwinConsentRequired, RecordingsApiNotEnabled) |
Access-denied errors return 403 since 1.7 |
Check for 403 in your error handling |
| Resource "not found" that you created | Key scoped to a different project | Use the key for the project the resource lives in |
| Key visible in browser network tab | API key used client-side | Move issuance server-side; browser gets a token only |