How to Use Oauth2 in Custom Webhooks

Written By Laudonia (Collaborator)

Updated at December 1st, 2024

OAuth2 is an authorization method especially suited for large APIs due to its advanced security measures. By leveraging OAuth2, users can integrate seamlessly with numerous APIs, including Google, Facebook, LinkedIn, and more, unlocking extensive possibilities and functionalities for their applications.

How OAuth2 Authorization Works

To utilize OAuth2 authorization within workflows:

Selecting OAuth2 Authorization

Navigate to the Automation > Workflows section in your account then select an existing workflow from the list, or opt to create a new workflow.

Add the necessary triggers and actions alongside a Custom Webhook action. Choose OAuth2 as the authorization method.

Token

Once OAuth2 is selected, you can either use an existing token by selecting it from the dropdown menu or request a new one.

To request a new access token, complete the fields in the popup modal, then confirm by clicking the Request Access Token button.

Configure the remaining fields in the action according to your preference, then click Save to add the action to your workflow.

Managing Tokens

Tokens can be managed within the Custom Webhook action or in the Global Workflow Settings.

From the action, click on Manage Token to open a pop-up window displaying all tokens.

Alternatively, head to the Global Workflow Settings from the main Workflows screen.

Within the Manage Tokens section, click the option to Manage OAuth Tokens.

From this screen, you can update or delete tokens as needed for effective management.

OAuth2 authorization simplifies integration with major APIs while ensuring security and efficiency. By understanding how to manage tokens and utilize this functionality, you can harness the full potential of your workflows.