Skip to main content
Question

OAuth tokens issued by /oauth/token immediately rejected by /api/templates/ with 401 authentication_failed

  • May 7, 2026
  • 2 replies
  • 79 views

Forum|alt.badge.img

Our public OAuth app (client_id: 7eb2e247-bd24-4ed4-a44d-0e178afdd474, revision 2025-01-15):

Step 1: We call POST https://a.klaviyo.com/oauth/token with grant_type=refresh_token. HTTP 200, response includes a fresh access_token (JWT, 536 chars, starts with eyJhbGci...).

Step 2: Immediately we call POST https://a.klaviyo.com/api/templates/ with Authorization: Bearer <that token>. HTTP 401:


{"id":"cf051438-0f8c-44ef-80b5-e65f24d9f0a6","status":401,"code":"authentication_failed","title":"Incorrect authentication credentials.","detail":"Incorrect authentication credentials.","source":{"pointer":"/data/"}}
Same flow worked for over a year. Started failing after the May 5–6, 2026 service disruption. Affecting multiple users.

Earlier sample error id from another user: 709e5dff-fbcc-4573-9388-3c8169a6aba9 (2026-05-07 09:23:11 UTC).

Did the OAuth token format change to JWT recently? Is there a key/audience mismatch between /oauth/token and the API gateway after the May incident?

2 replies

kdtong
Contributor I
Forum|alt.badge.img+1
  • Contributor I
  • May 7, 2026

Confirming that we’re seeing the same issue after the May outage. 


coreybalint
Klaviyo Employee
Forum|alt.badge.img+2
  • Klaviyo Employee
  • May 7, 2026

Hi all - thanks for flagging this one. We identified the issue and it should now be resolved. If you still see issues, please let us know.