How to Prevent Zoom Access Token Expired (124) Error in Salesforce?

Integration Overview

  • We have built a custom Salesforce integration with Zoom for Meetings and Phone Calls.

  • The app is created as a General App (Account Level) in Zoom Marketplace.

  • From Salesforce, we can successfully create meetings/phone calls and retrieve recordings and transcripts.

Authentication Setup

  • Using Named Credentials + Auth Provider in Salesforce.

  • Access tokens refresh dynamically during normal usage.

Issue Description

  • After not using the integration for a long period, we received the following error:

    {"code":124,"message":"Access token is expired."}
    
    
  • The issue was temporarily resolved by editing and re-saving the Named Credential in Salesforce.

Question

  • How can we prevent this error from happening again in Salesforce?

  • Is there a best practice to handle long inactivity periods or to programmatically force a token refresh before expiration?

Hi @cafer ,

Though this guide is some for S2S OAuth, the foundational principles apply and can give you some inspiration on how to handle token expiration in your app’s architecture: Server-to-Server OAuth and scaling token management