Test authentication

Testing a user’s authentication is crucially important, as it is later used to test subsequent trigger and action steps when built.

Prerequisites

  • Completed authentication configuration with your app’s authentication scheme
  • Set of valid user credentials for your app - recommended to use a new account specifically for testing so you don’t clutter your core app account with testing data.

Steps

  1. In the final Test your Authentication step, enter user credentials
  2. Select Test Authentication to make the test API call you configured
  3. Successful authentication shows a green check and a Request Successful message at the top of the dialog.

    Add testing account in Zapier visual builder

  4. The Response tab shows the JSON data response from your API, with each field and its data listed.
  5. The Bundle tab shows the data Zapier stores about your authentication. Values returned by the test API call are stored in the inputData bundle and can be accessed by {{bundle.inputData.field}} where field is the field key from the API response, for use in the connection label or trigger and action requests. However, responses from the test API call are not stored for subsequent requests in the case of OAuth v2 and session authentication unless you use computed fields.
  6. The HTTP tab shows the full request details for each API call Zapier made during the test.
  7. The Console tab shows any additional data your API calls logged in Zapier if you use custom code for any part of your authentication.
  8. Check each tab to ensure the expected data came through - it is possible to have an unsuccessful API call come through as successful if your API returns a message without an HTTP error code. Check the Response to make sure it includes the data expected from this API call, and if anything is incorrect, check the HTTP tab to help diagnose where things went wrong.

    Check response from authentication in Zapier visual builder

  9. Clean up and remove older testing accounts from your core Zapier account. Open your Zapier Connected Accounts page, and find your app’s name (you may need to use the search box or CMD+F (Mac) or Ctrl+F (PC)). Click the app name. Once on the app’s connections page, identify the connection to remove and click the three dots, then Delete, and confirm the deletion. Repeat for each subsequent testing account you added to clean up your authentication list.

    Then refresh your integration page in the Platform UI, and you’ll only see the authentications that were not deleted.

    Example account with multiple test accounts

    Remove authed accounts


Need help? Tell us about your problem and we’ll connect you with the right resource or contact support.