Zapier · sdk · fg-0378

Zapier OAuth connection fails because the token response nests access_token inside an object

If you see bundle.authData.access_token is undefined after connecting, the cause and the fix for Zapier are below, last verified 2026-10-15.

Verified Oct 2026trust 50/100
Symptom
bundle.authData.access_token is undefined after connectingConnection test fails right after a successful OAuth consentRefresh works in Postman but not in the integration
Cause
Zapier stores only top-level keys from the token response in authData. Nested objects cannot be stored, so tokens under a data or token key are lost.
Fix
Switch the token and refresh requests to code mode and return the tokens at the top level.
Apply
const r = await z.request({ url: tokenUrl, method: 'POST', body }); return { access_token: r.data.token.access_token, refresh_token: r.data.token.refresh_token };
Affected
Zapier Platform UI and CLI OAuth2 integrations, as of 2026-10
Sources

Last verified 2026-10-15 · Confirmed by 0 builders

Related traps

Have your agent know this before it fails

$ /plugin marketplace add getfootgun/footgun
$ /plugin install footgun@footgun