Could not validate credentials or Not authenticated.
The problem
The Dollr API did not accept theAuthorization header on your request. Common causes:
- No
Authorization: Bearer <token>header - Token expired (
expires_inis in minutes) - Typo in the token string or extra whitespace
- Using test credentials against live endpoints (or vice versa)
How to identify
- Confirm the failing request includes
Authorization: Bearer ... - Check when you last called
POST /v1/jwt/client/obtain/token - Compare
expires_infrom that response with the current time
Solution
Obtain a fresh token
Refresh proactively
Request a new token when fewer than 5 minutes remain — do not wait for the first 401 in production traffic.
Retry the original request once
Replace the header and retry. If it still fails, verify Client ID/secret in the merchant portal.
Still having issues?
- Rotate API keys if the secret may have leaked
- Email dev@heydollr.app with timestamp (UTC) and redacted headers
