API Authentication Errors
Symptom: 401 Unauthorized on every request
- Confirm you're including the token as a Bearer token:
Authorization: Bearer YOUR_TOKEN.
- Check for leading/trailing whitespace in the token value - copy it fresh from the dashboard.
- Confirm the token still exists in Settings → API Tokens.
- If you recently rotated the token, update it everywhere it's used.
Symptom: API token not working after creation
- Confirm you copied the full token at creation - it's only shown once. If you missed it, delete it and create a new one.
- Wait 30 seconds and retry.
- Test with a simple
GET request (e.g., list mailing lists) to rule out endpoint-specific issues.
Symptom: OAuth token expired
- Implement the OAuth token refresh flow - refresh before expiry using the refresh token.
- If the refresh token itself expired, redirect the user through the OAuth authorization flow again.
- Check the
expires_in value and set a proactive refresh timer (e.g., 60 seconds before expiry).