Skip to main content
For written steps, go to Add authentication with OAuth v2.

Video transcript

Imagine a world where your app integrations are seamless and secure. OAuth is the key to unlocking this potential, enhancing both security and user experience. But why is it the preferred choice over other authentication methods? OAuth stands out because it allows users to grant access without sharing passwords. This reduces security risks and improves user trust, making it a cornerstone in modern app integrations. OAuth authentication matches in appearance the login process users expect from most modern apps. To implement OAuth authentication in your Zapier integration, navigate to the Authentication tab in Zapier’s visual builder, and select OAuth version 2 to access its components, which are essential for setting up secure connections. Optional input fields can be added if your API requires users to provide data before they can access the authorization URL. If your API does not require this, which is the case with many APIs that use OAuth authentication, then there is no need to add input fields. Copy the OAuth Redirect URL from Zapier’s Platform UI and add it to your application settings. This URL is crucial as it directs users back to your Zapier integration after authentication, completing the OAuth flow. Locate your app’s Client ID and Client Secret and add them here. They may have slightly different names in your application but would work the same. These credentials are vital for verifying Zapier’s identity to your app, ensuring secure API interactions. The Client ID and Client Secret would then be available as environment variables in your integration and can be referenced by process.env.CLIENT_ID and process.env.CLIENT_SECRET respectively. Back in the OAuth configuration setup, specify the Authorization URL request. The Authorization URL is the URL that users would be sent to authenticate directly in your application. Ensure that the request has the right HTTP method and the appropriate request parameters. If you want to limit the access that Zapier would have in your application, you can specify scopes so that the authenticated user’s account can only perform certain functions. Next, you specify the Access Token Request. This is the request that would fetch the access token after the user has successfully authorized at the Authorization URL. This access token is what would be used to authenticate the requests being sent from Zapier to your API. Ensure that every relevant request header and parameter needed by your API for this request is specified. The access token has to be provided at the top level in the API response. If the access token is nested in the response, then you would have to use the Switch to Code Mode button to switch the configuration to Code Mode and use JavaScript to ensure that the access token is available at the top level before returning the response. If your API supports refreshing the access token, then you would have to set up the Refresh Token request. Ideally, you should select the checkbox to automatically refresh the token on unauthorized error. By doing this, when the access token expires and a request sent using the expired access token fails with a 401 error status code, then this refresh token request would be sent in order to fetch a new access token using the refresh token that was provided along with the previous access token. Set up an authentication test request. This request is used to test the authentication when a new connection is added, or when an expired access token is successfully refreshed. This ensures that the access token that would be used for subsequent requests is valid. The endpoint used for this request should not require the users to provide any value outside of the authentication credentials, as users would not be able to do such. Optionally, specify a connection label. This label is what users would see in their Zapier account for each connection. This label is not censored or hidden, so sensitive values cannot be used as a connection label. You can use non-sensitive values such as a username or email address from either the authentication fields or returned from the authentication test request. If no appropriate value can be used, then you can leave the label blank, and Zapier will automatically number-label any added connection. Then save and continue. Test the authentication with a valid user account to ensure everything is seamless, preparing your integration for real-world use. And finally, save and finish. With this, you would have successfully configured OAuth authentication on your integration, and users can seamlessly connect to your integration to use in Zaps.
Last modified on November 18, 2026