← TroubleshootingAuthenticationnxk_live API key does not work
Symptoms
- Bearer token to `/api/*` returns 404
- Using `x-api-key` returns 404
- The `api.` subdomain does not resolve
- Logging in with the API key gives `invalid_credentials`
Likely causes
- The key is for the Public API `/public/v1`, not the dashboard login/session
- Calling the session `/api/*` endpoints that need a cookie, not a key
- Wrong base URL or wrong subdomain
How to fix
- Use base URL `https://dashboard.wacommerce.id/api/public/v1`
- Send `Authorization: Bearer <key>` (not `x-api-key`)
- Do not use the key for the dashboard login — that is a separate cookie session
- Verify the key with `GET /api/public/v1/me`